Skip to content

Commit

Permalink
(maint) added a new script task
Browse files Browse the repository at this point in the history
Which calls "npm ci", if node_modules does not exist.
By calling this before the "watch" task,
the workflow of clone, start VSCode, hit F5
will "simply work".
  • Loading branch information
nils-a committed Oct 11, 2022
1 parent 64443b7 commit 3938b5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,10 @@
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"watch": "npm run ensureCi && tsc -watch -p ./",
"test": "npm run compile && node ./out/test/runTest.js",
"depcheck": "depcheck"
"depcheck": "depcheck",
"ensureCi": "node -e \"const fs=require('fs'); if (fs.existsSync('./node_modules/')) { process.exit(123); }\" && npm ci"
},
"dependencies": {
"adm-zip": "^0.5.9",
Expand Down

0 comments on commit 3938b5b

Please sign in to comment.