Skip to content

Commit 1257b31

Browse files
committed
fix: changed package.json to build before running lint or lintfix in order to fix CI
1 parent c62d59a commit 1257b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"build": "shx rm -rf ./dist && tsc -p ./tsconfig.build.json && shx chmod +x dist/bin/lint.js",
2727
"postversion": "npm install --package-lock-only --ignore-scripts --silent",
2828
"tsx": "tsx",
29-
"lint": "./dist/bin/lint.js",
30-
"lintfix": "./dist/bin/lint.js --fix",
29+
"lint": "test -f ./dist/bin/lint.js || npm run build && ./dist/bin/lint.js",
30+
"lintfix": "sh -c 'test -f ./dist/bin/lint.js || npm run build && ./dist/bin/lint.js --fix'",
3131
"lint-shell": "find ./src ./tests ./scripts -type f -regextype posix-extended -regex '.*\\.(sh)' -exec shellcheck {} +",
3232
"docs": "shx rm -rf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src",
3333
"test": "node ./scripts/test.mjs"

0 commit comments

Comments
 (0)