File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 5
5
"description" : " CodeQL action" ,
6
6
"scripts" : {
7
7
"_build_comment" : " echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'" ,
8
- "build" : " npm run transpile && node build.mjs" ,
8
+ "build" : " ./scripts/check-node-modules.sh && npm run transpile && node build.mjs" ,
9
9
"lint" : " eslint --report-unused-disable-directives --max-warnings=0 ." ,
10
10
"lint-ci" : " SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif" ,
11
11
"lint-fix" : " eslint --report-unused-disable-directives --max-warnings=0 . --fix" ,
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Check if npm install is likely needed before proceeding
4
+ if [ ! -d node_modules ] || [ package-lock.json -nt node_modules/.package-lock.json ]; then
5
+ npm install
6
+ fi
You can’t perform that action at this time.
0 commit comments