fix ts compile server

This commit is contained in:
Guillaume Dorce 2022-11-04 16:03:36 +01:00
parent dfea794acf
commit 5e552a439f
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,8 @@
"scripts": { "scripts": {
"dev": "nodemon --watch src -e js,ts,json --exec 'ts-node src/index.ts'", "dev": "nodemon --watch src -e js,ts,json --exec 'ts-node src/index.ts'",
"build": "cd client && npm run build", "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", "start": "ts-node src/index.ts",
"db": "prisma studio", "db": "prisma studio",
"db:build": "prisma generate", "db:build": "prisma generate",

View File

@ -1,15 +1,15 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": ".", "baseUrl": ".",
"target": "es2017", "target": "ES2017",
"lib": [ "lib": [
"esnext" "esnext"
], ],
"moduleResolution": "node", "moduleResolution": "node",
"module": "CommonJS",
"esModuleInterop": true, "esModuleInterop": true,
"strict": true, "strict": true,
"strictNullChecks": true, "strictNullChecks": true,
"resolveJsonModule": true,
"skipDefaultLibCheck": true, "skipDefaultLibCheck": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,