Skip to content

Commit 3146e3f

Browse files
committed
chore(deps): husky 6.0.0
1 parent dd28d76 commit 3146e3f

File tree

4 files changed

+11
-114
lines changed

4 files changed

+11
-114
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

package-lock.json

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

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"eslint-config-prettier": "^6.11.0",
2525
"eslint-plugin-json": "^2.1.2",
2626
"eslint-plugin-prettier": "^3.1.4",
27-
"husky": "^4.2.5",
27+
"husky": "^6.0.0",
2828
"hygen": "^5.0.3",
2929
"lint-staged": "^10.2.11",
3030
"lit-html": "^1.3.0",
@@ -44,17 +44,12 @@
4444
"scripts": {
4545
"build": "rimraf dist && tsc --sourceMap false && tsc -m esnext --outDir dist/esm --sourceMap false && rollup -c rollup.config.js && terser -c -m -o dist/wokwi-elements.bundle.min.js dist/wokwi-elements.bundle.js",
4646
"lint": "eslint src/**/*.ts",
47-
"prepare": "npm run build",
47+
"prepare": "husky install && npm run build",
4848
"analyze-components": "web-component-analyzer analyze src/**/*-element.ts --outFile custom-elements.json",
4949
"storybook": "npm run analyze-components && start-storybook -p 6006",
5050
"build-storybook": "npm run analyze-components && build-storybook",
5151
"new-element": "hygen element new"
5252
},
53-
"husky": {
54-
"hooks": {
55-
"pre-commit": "lint-staged"
56-
}
57-
},
5853
"lint-staged": {
5954
"src/**/*.{ts,tsx}": [
6055
"eslint --fix",

0 commit comments

Comments
 (0)