Skip to content

Commit

Permalink
(maint) fix npm run watch
Browse files Browse the repository at this point in the history
This is a regression from
cake-build#731
where everything will work fine, if node_modules does
not exist. However, if it does exist the non-zero exit code
will propagate and prevent tsc from running.
By adding a second, "parallel" command to ensureCi
the exit code of that script will always be zero and thus
never prevent tsc from running.
  • Loading branch information
nils-a committed Oct 13, 2022
1 parent 2896151 commit 4bc6337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@
"watch": "npm run ensureCi && tsc -watch -p ./",
"test": "npm run compile && node ./out/test/runTest.js",
"depcheck": "depcheck",
"ensureCi": "node -e \"const fs=require('fs'); if (fs.existsSync('./node_modules/')) { process.exit(123); }\" && npm ci"
"ensureCi": "(node -e \"const fs=require('fs'); if (fs.existsSync('./node_modules/')) { process.exit(123); }\" && npm ci) & echo 'ensured.'"
},
"dependencies": {
"adm-zip": "^0.5.9",
Expand Down

0 comments on commit 4bc6337

Please sign in to comment.