We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c62d59a commit 1257b31Copy full SHA for 1257b31
package.json
@@ -26,8 +26,8 @@
26
"build": "shx rm -rf ./dist && tsc -p ./tsconfig.build.json && shx chmod +x dist/bin/lint.js",
27
"postversion": "npm install --package-lock-only --ignore-scripts --silent",
28
"tsx": "tsx",
29
- "lint": "./dist/bin/lint.js",
30
- "lintfix": "./dist/bin/lint.js --fix",
+ "lint": "test -f ./dist/bin/lint.js || npm run build && ./dist/bin/lint.js",
+ "lintfix": "sh -c 'test -f ./dist/bin/lint.js || npm run build && ./dist/bin/lint.js --fix'",
31
"lint-shell": "find ./src ./tests ./scripts -type f -regextype posix-extended -regex '.*\\.(sh)' -exec shellcheck {} +",
32
"docs": "shx rm -rf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src",
33
"test": "node ./scripts/test.mjs"
0 commit comments