From 2fe5ddaa1feb90cc79efc401c0e992166de2ac8c Mon Sep 17 00:00:00 2001 From: valon Date: Sun, 10 Nov 2024 19:58:02 -0500 Subject: [PATCH] more adjustments --- apps/backend/package.json | 7 +++++-- apps/backend/tsconfig.json | 3 ++- apps/frontend/tsconfig copy.json | 16 ---------------- 3 files changed, 7 insertions(+), 19 deletions(-) delete mode 100644 apps/frontend/tsconfig copy.json diff --git a/apps/backend/package.json b/apps/backend/package.json index d270808..643c0eb 100644 --- a/apps/backend/package.json +++ b/apps/backend/package.json @@ -6,10 +6,10 @@ "license": "ISC", "author": "", "type": "module", - "main": "index.js", + "main": "src/index.ts", "scripts": { "build": "tsc", - "dev": "ts-node-dev --respawn --transpile-only src/server.ts", + "dev": "ts-node-dev --respawn --transpile-only src/index.ts", "start": "node dist/index.js", "test": "echo \"Error: no test specified\" && exit 1" }, @@ -25,5 +25,8 @@ "prisma": "^5.22.0", "ts-node-dev": "^2.0.0", "typescript": "^5" + }, + "engines": { + "node": ">=14.16" } } diff --git a/apps/backend/tsconfig.json b/apps/backend/tsconfig.json index 248bc2c..fc362a0 100644 --- a/apps/backend/tsconfig.json +++ b/apps/backend/tsconfig.json @@ -4,8 +4,9 @@ "paths": { "@/*": ["src/*"] }, - "target": "es2020", + "target": "ES2020", "module": "ESNext", + "moduleResolution": "node", "strict": true, "esModuleInterop": true, "skipLibCheck": true, diff --git a/apps/frontend/tsconfig copy.json b/apps/frontend/tsconfig copy.json deleted file mode 100644 index 223cce1..0000000 --- a/apps/frontend/tsconfig copy.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "compilerOptions": { - "declaration": true, - "declarationMap": true, - "esModuleInterop": true, - "module": "NodeNext", - "moduleResolution": "NodeNext", - "noEmit": true, - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": true, - "strict": true, - "target": "ES2022" - }, - "include": ["src"] -}