Add script to check whether npm i needs to be run

and add it to the `build` command
This commit is contained in:
Michael B. Gale
2025-09-25 14:20:30 +01:00
parent 853decd26b
commit 455038c8a7
13 changed files with 19 additions and 12 deletions

2
lib/upload-lib.js generated
View File

@@ -33589,7 +33589,7 @@ var require_package = __commonJS({
description: "CodeQL action",
scripts: {
_build_comment: "echo 'Run the full build so we typecheck the project and can reuse the transpiled files in npm test'",
build: "npm run transpile && node build.mjs",
build: "./scripts/check-node-modules.sh && npm run transpile && node build.mjs",
lint: "eslint --report-unused-disable-directives --max-warnings=0 .",
"lint-ci": "SARIF_ESLINT_IGNORE_SUPPRESSED=true eslint --report-unused-disable-directives --max-warnings=0 . --format @microsoft/eslint-formatter-sarif --output-file=eslint.sarif",
"lint-fix": "eslint --report-unused-disable-directives --max-warnings=0 . --fix",