mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Add script to check whether npm i needs to be run
and add it to the `build` command
This commit is contained in:
2
lib/upload-lib.js
generated
2
lib/upload-lib.js
generated
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user