Skip to content

Commit b0a98fc

Browse files
committed
Automatically update dist via pre-commit hook
1 parent 5bf2205 commit b0a98fc

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
npm run package
2+
3+
git add .

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"package:watch": "npm run package -- --watch",
3535
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest",
3636
"release": "node script/release.js",
37-
"all": "npm run format:write && npm run lint && npm run test && npm run coverage && npm run package"
37+
"all": "npm run format:write && npm run lint && npm run test && npm run coverage && npm run package",
38+
"prepare": "husky"
3839
},
3940
"license": "MIT",
4041
"jest": {
@@ -107,6 +108,7 @@
107108
"eslint-plugin-jest": "^28.11.0",
108109
"eslint-plugin-jsonc": "^2.19.1",
109110
"eslint-plugin-prettier": "^5.2.3",
111+
"husky": "^9.1.7",
110112
"jest": "^29.7.0",
111113
"make-coverage-badge": "^1.2.0",
112114
"memfs": "^4.17.2",

0 commit comments

Comments
 (0)