Skip to content

Commit 798a93e

Browse files
committed
ensure output.config.json existence to success precommit type check
1 parent d061da3 commit 798a93e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
pnpm install
5+
pnpm configcheck
56
pnpm typecheck
67
pnpm lint
78
pnpm stylelint

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1111
"stylelint": "stylelint \"src/**/*.scss\"",
1212
"typecheck": "tsc --noEmit",
13+
"configcheck": "test -f output.config.json || cp app.config.json output.config.json",
1314
"format": "prettier --check \"./src/**/*.{js,cjs,mjs,ts,tsx,md,json}\"",
1415
"prepare": "husky install"
1516
},

0 commit comments

Comments
 (0)