Add debugger support to watch task

0.0.0.0 used as IP to allow debugging from Windows to WSL2
cshd
Dragory 2020-09-23 00:02:55 +03:00
parent 7227775c27
commit 0d25e48cd5
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {
"start": "node src/index.js", "start": "node src/index.js",
"watch": "supervisor -n exit -w src src/index.js", "watch": "supervisor -n exit -w src --inspect=0.0.0.0:9229 src/index.js",
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint ./src ./db/migrations", "lint": "eslint ./src ./db/migrations",
"lint-fix": "eslint --fix ./src ./db/migrations", "lint-fix": "eslint --fix ./src ./db/migrations",