Enable debug backend

enable debug `start:back` script
This commit is contained in:
涛之雨 2025-08-05 21:43:30 +08:00
parent 19a311987e
commit 9ab0ff5607
No known key found for this signature in database
GPG Key ID: A38E8DF826ECA7E3
2 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,15 @@
{
"watch": ["back", ".env"],
"watch": [
"back",
".env"
],
"ext": "js,ts,json",
"exec": "ts-node -P ./back/tsconfig.json ./back/app.ts"
}
"env": {
"NODE_ENV": "development",
"TS_NODE_PROJECT": "./back/tsconfig.json"
},
"verbose": true,
"execMap": {
"ts": "node --require ts-node/register"
}
}

View File

@ -2,7 +2,7 @@
"private": true,
"scripts": {
"start": "concurrently -n w: npm:start:*",
"start:back": "nodemon",
"start:back": "nodemon ./back/app.ts",
"start:front": "max dev",
"build:front": "max build",
"build:back": "tsc -p back/tsconfig.json",