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,10 +1,10 @@
import { getAllExpansions, expansionToExpansionSimple } from "../expansionUtil"
import Expansion from "../../db/interfaces/Expansion"
import Expansion from "@tcgdex/sdk/interfaces/Expansion"
import { getAllSets, getBaseFolder } from "../util"
import { fetchSet } from "../setUtil"
import { promises as fs } from 'fs'
import { ExpansionList } from '../../sdk/dist/types/interfaces/Expansion'
import { Langs } from "../../db/interfaces/LangList"
import { ExpansionList } from '@tcgdex/sdk/interfaces/Expansion'
import { Langs } from "@tcgdex/sdk/interfaces/LangList"
const lang = process.env.CARDLANG as Langs || "en"
const endpoint = getBaseFolder(lang, "expansions")

View File

@ -1,5 +1,5 @@
import { getAllExpansions, fetchExpansion, expansionToExpansionSingle } from "../expansionUtil"
import { Langs } from "../../db/interfaces/LangList"
import { Langs } from "@tcgdex/sdk/interfaces/LangList"
import { getBaseFolder } from "../util"
import { promises as fs } from 'fs'