wip: fix server nodemon

This commit is contained in:
eneller
2026-02-28 10:18:14 +01:00
parent 6b7ef0114f
commit e251facd26
5 changed files with 16 additions and 5 deletions

1
package-lock.json generated
View File

@@ -10953,6 +10953,7 @@
"@types/express": "^5.0.6",
"@types/node": "^25.3.2",
"@types/pg": "^8.16.0",
"concurrently": "^9.2.1",
"eslint": "^10.0.2",
"nodemon": "^3.1.14",
"prettier": "^3.8.1",

6
server/nodemon.json Normal file
View File

@@ -0,0 +1,6 @@
{
"watch": ["src"],
"ext": "ts,json",
"exec": "ts-node src/index.ts"
}

View File

@@ -5,11 +5,12 @@
"license": "GPL-3.0",
"author": "",
"type": "commonjs",
"main": "index.js",
"main": "../dist/out-tsc/server/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "nodemon",
"start": "ts-node src/index.ts",
"build": "tsc",
"build": "tsc src/*",
"serve": "node ../dist/out-tsc/server/index.js"
},
"dependencies": {
@@ -24,6 +25,7 @@
"@types/express": "^5.0.6",
"@types/node": "^25.3.2",
"@types/pg": "^8.16.0",
"concurrently": "^9.2.1",
"eslint": "^10.0.2",
"nodemon": "^3.1.14",
"prettier": "^3.8.1",

View File

@@ -4,7 +4,9 @@
"outDir": "../dist/out-tsc/server",
"esModuleInterop": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"module": "nodenext"
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]

View File

@@ -5,9 +5,9 @@
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"moduleResolution": "nodenext",
"target": "ES2022",
"module": "es2022",
"module": "esnext",
"lib": ["es2022", "dom"]
},
"exclude": ["node_modules"]