mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
enable source map in dev mode, add delay for nodemon starting
This commit is contained in:
1 parent
e84ca12647
commit
c0ec382510
3 files changed
+25
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"watch": ["dist", "swagger.yaml", "../quests", "../packages"],
|
||||
"ext": "js,ts,yaml,yml",
|
||||
"exec": "node dist/index.js",
|
||||
"exec": "node -r source-map-support/register dist/index.js",
|
||||
"delay": 200
|
||||
}
|
||||
+3
-1
@@ -8,7 +8,7 @@
|
||||
"setup": "node dist/cli/setup.js",
|
||||
"clean": "node dist/cli/clean.js",
|
||||
"build": "tsc",
|
||||
"dev": "concurrently \"tsc -w\" \"nodemon\"",
|
||||
"dev": "concurrently \"tsc -w\" \"sleep 5 && nodemon\"",
|
||||
"build:quests": "node dist/cli/build.js"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -56,10 +56,12 @@
|
||||
"@types/passport-jwt": "^4.0.1",
|
||||
"@types/passport-local": "^1.0.38",
|
||||
"@types/passport-oauth2": "^1.4.15",
|
||||
"@types/source-map-support": "^0",
|
||||
"@types/validator": "^13.11.9",
|
||||
"concurrently": "^8.2.2",
|
||||
"jest": "^29.6.1",
|
||||
"nodemon": "^3.0.1",
|
||||
"source-map-support": "^0.5.21",
|
||||
"typescript": "^5.3.3"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user