From 5e552a439f60d5d018e96f106e1ef9b381afe4a3 Mon Sep 17 00:00:00 2001 From: Guillaume Dorce Date: Fri, 4 Nov 2022 16:03:36 +0100 Subject: [PATCH] fix ts compile server --- package.json | 2 ++ tsconfig.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6c30083..4d9ce95 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,8 @@ "scripts": { "dev": "nodemon --watch src -e js,ts,json --exec 'ts-node src/index.ts'", "build": "cd client && npm run build", + "build:neu": "cd client && npm run build:neu", + "build:server": "tsc && tsc-alias", "start": "ts-node src/index.ts", "db": "prisma studio", "db:build": "prisma generate", diff --git a/tsconfig.json b/tsconfig.json index 8945d76..67fd6c3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,15 @@ { "compilerOptions": { "baseUrl": ".", - "target": "es2017", + "target": "ES2017", "lib": [ "esnext" ], "moduleResolution": "node", + "module": "CommonJS", "esModuleInterop": true, "strict": true, "strictNullChecks": true, - "resolveJsonModule": true, "skipDefaultLibCheck": true, "emitDecoratorMetadata": true, "experimentalDecorators": true,