From 53a501608d484cb6d021dfda2b177c657d4c6914 Mon Sep 17 00:00:00 2001 From: Guillaume Marcoux Date: Sat, 16 Dec 2023 14:24:09 -0500 Subject: [PATCH] chore: remove usage of tsconfig.seed.ts `tsx` does not need it, it was for the `ts-node` binary for esm setup --- api/package.json | 2 +- api/tsconfig.json | 2 +- api/tsconfig.seed.json | 20 -------------------- 3 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 api/tsconfig.seed.json diff --git a/api/package.json b/api/package.json index bbba2fb9..08a4e895 100644 --- a/api/package.json +++ b/api/package.json @@ -35,7 +35,7 @@ "studio": "prisma studio" }, "prisma": { - "seed": "tsx --tsconfig tsconfig.seed.json prisma/seed.ts" + "seed": "tsx prisma/seed.ts" }, "dependencies": { "@apollo/server": "4.9.3", diff --git a/api/tsconfig.json b/api/tsconfig.json index 24aefd39..ea990fed 100644 --- a/api/tsconfig.json +++ b/api/tsconfig.json @@ -19,7 +19,7 @@ "typeRoots": [ "@types", "./node_modules/@types", - "../node_modules/@types" + "../node_modules/@types", ], "outDir": "./dist", diff --git a/api/tsconfig.seed.json b/api/tsconfig.seed.json deleted file mode 100644 index f6264d70..00000000 --- a/api/tsconfig.seed.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "target": "es2019", - "module": "ES2020", - "lib": [ - "es2019" - ], - }, - "include": [ - "prisma/**/*.ts" - ], - "ts-node": { - "esm": true, - "experimentalSpecifierResolution": "node", - "moduleTypes": { - "prisma/**/*.ts": "esm", - }, - }, -} \ No newline at end of file