mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +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"],
|
"watch": ["dist", "swagger.yaml", "../quests", "../packages"],
|
||||||
"ext": "js,ts,yaml,yml",
|
"ext": "js,ts,yaml,yml",
|
||||||
"exec": "node dist/index.js",
|
"exec": "node -r source-map-support/register dist/index.js",
|
||||||
"delay": 200
|
"delay": 200
|
||||||
}
|
}
|
||||||
+3
-1
@@ -8,7 +8,7 @@
|
|||||||
"setup": "node dist/cli/setup.js",
|
"setup": "node dist/cli/setup.js",
|
||||||
"clean": "node dist/cli/clean.js",
|
"clean": "node dist/cli/clean.js",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"dev": "concurrently \"tsc -w\" \"nodemon\"",
|
"dev": "concurrently \"tsc -w\" \"sleep 5 && nodemon\"",
|
||||||
"build:quests": "node dist/cli/build.js"
|
"build:quests": "node dist/cli/build.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -56,10 +56,12 @@
|
|||||||
"@types/passport-jwt": "^4.0.1",
|
"@types/passport-jwt": "^4.0.1",
|
||||||
"@types/passport-local": "^1.0.38",
|
"@types/passport-local": "^1.0.38",
|
||||||
"@types/passport-oauth2": "^1.4.15",
|
"@types/passport-oauth2": "^1.4.15",
|
||||||
|
"@types/source-map-support": "^0",
|
||||||
"@types/validator": "^13.11.9",
|
"@types/validator": "^13.11.9",
|
||||||
"concurrently": "^8.2.2",
|
"concurrently": "^8.2.2",
|
||||||
"jest": "^29.6.1",
|
"jest": "^29.6.1",
|
||||||
"nodemon": "^3.0.1",
|
"nodemon": "^3.0.1",
|
||||||
|
"source-map-support": "^0.5.21",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1709,6 +1709,15 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"@types/source-map-support@npm:^0":
|
||||||
|
version: 0.5.10
|
||||||
|
resolution: "@types/source-map-support@npm:0.5.10"
|
||||||
|
dependencies:
|
||||||
|
source-map: "npm:^0.6.0"
|
||||||
|
checksum: 10c0/48aacf32e1b5a4301407123fb69001b6a79386860d19c756a76ef3b034f71375a843846fa2af2d2461a765411dfbbcb21069b0935761b3c81f8b722b1d9d581f
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"@types/ssh2@npm:*":
|
"@types/ssh2@npm:*":
|
||||||
version: 1.11.19
|
version: 1.11.19
|
||||||
resolution: "@types/ssh2@npm:1.11.19"
|
resolution: "@types/ssh2@npm:1.11.19"
|
||||||
@@ -8622,6 +8631,7 @@ __metadata:
|
|||||||
"@types/passport-jwt": "npm:^4.0.1"
|
"@types/passport-jwt": "npm:^4.0.1"
|
||||||
"@types/passport-local": "npm:^1.0.38"
|
"@types/passport-local": "npm:^1.0.38"
|
||||||
"@types/passport-oauth2": "npm:^1.4.15"
|
"@types/passport-oauth2": "npm:^1.4.15"
|
||||||
|
"@types/source-map-support": "npm:^0"
|
||||||
"@types/validator": "npm:^13.11.9"
|
"@types/validator": "npm:^13.11.9"
|
||||||
bcrypt: "npm:^5.1.1"
|
bcrypt: "npm:^5.1.1"
|
||||||
commander: "npm:^11.0.0"
|
commander: "npm:^11.0.0"
|
||||||
@@ -8648,6 +8658,7 @@ __metadata:
|
|||||||
passport-jwt: "npm:^4.0.1"
|
passport-jwt: "npm:^4.0.1"
|
||||||
passport-local: "npm:^1.0.0"
|
passport-local: "npm:^1.0.0"
|
||||||
socket.io: "npm:^4.7.1"
|
socket.io: "npm:^4.7.1"
|
||||||
|
source-map-support: "npm:^0.5.21"
|
||||||
swagger-ui-express: "npm:^5.0.0"
|
swagger-ui-express: "npm:^5.0.0"
|
||||||
typescript: "npm:^5.3.3"
|
typescript: "npm:^5.3.3"
|
||||||
validator: "npm:^13.11.0"
|
validator: "npm:^13.11.0"
|
||||||
@@ -8901,6 +8912,16 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"source-map-support@npm:^0.5.21":
|
||||||
|
version: 0.5.21
|
||||||
|
resolution: "source-map-support@npm:0.5.21"
|
||||||
|
dependencies:
|
||||||
|
buffer-from: "npm:^1.0.0"
|
||||||
|
source-map: "npm:^0.6.0"
|
||||||
|
checksum: 10c0/9ee09942f415e0f721d6daad3917ec1516af746a8120bba7bb56278707a37f1eb8642bde456e98454b8a885023af81a16e646869975f06afc1a711fb90484e7d
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"source-map@npm:^0.6.0, source-map@npm:^0.6.1":
|
"source-map@npm:^0.6.0, source-map@npm:^0.6.1":
|
||||||
version: 0.6.1
|
version: 0.6.1
|
||||||
resolution: "source-map@npm:0.6.1"
|
resolution: "source-map@npm:0.6.1"
|
||||||
|
|||||||
Reference in new issue
Block a user