Moved files to link with the SDK

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2020-03-11 11:21:40 +01:00
parent b36dd9046f
commit ef866401a4
31 changed files with 207 additions and 103 deletions

View File

@ -1,5 +1,5 @@
import { fetchIllustrators, illustratorToIllustratorSimple } from "../illustratorUtil"
import { IllustratorsList } from "../../sdk/dist/types/interfaces/Illustrator"
import { IllustratorsList } from "@tcgdex/sdk/interfaces/Illustrator"
import { getBaseFolder } from "../util"
import { promises as fs} from "fs"

View File

@ -1,10 +1,10 @@
import { fetchIllustrators } from "../illustratorUtil"
import { IllustratorSingle } from "../../sdk/dist/types/interfaces/Illustrator"
import { IllustratorSingle } from "@tcgdex/sdk/interfaces/Illustrator"
import { getBaseFolder, getAllCards } from "../util"
import { promises as fs} from "fs"
import Card from "../../db/interfaces/Card"
import Card from "@tcgdex/sdk/interfaces/Card"
import { isCardAvailable, cardToCardSimple } from "../cardUtil"
import { Langs } from "../../db/interfaces/LangList"
import { Langs } from "@tcgdex/sdk/interfaces/LangList"
const lang = process.env.CARDLANG as Langs || "en"
const endpoint = getBaseFolder(lang, "illustrators")

View File

@ -1,5 +1,5 @@
import { getAllCards2 } from "../util"
import Card from "../../db/interfaces/Card"
import Card from "@tcgdex/sdk/interfaces/Card"
import { promises as fs} from "fs"
import { illustratorsFile, fetchIllustrators } from "../illustratorUtil"