Skip to content

Commit 1462f87

Browse files
authored
Merge pull request #18 from dysfunc/husky
🧹 upgrade to husky v6
2 parents edf6174 + 691bed3 commit 1462f87

File tree

6 files changed

+941
-1007
lines changed

6 files changed

+941
-1007
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
!.prettierignore
1515
!.prettierrc.json
1616
!.lintstagedrc
17-
!.huskyrc
17+
!.husky
1818
!.storybook
1919

2020
# generated

.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

.huskyrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"url": "https://github.com/svelte-plugins/svelte-viewable.git"
1414
},
1515
"homepage": "https://github.com/svelte-plugins/svelte-viewable",
16-
"bugs": "https://github.com/svelte-viewable/issues",
16+
"bugs": "https://github.com/svelte-plugins/svelte-viewable/issues",
1717
"keywords": [
1818
"viewability",
1919
"viewable",
@@ -36,6 +36,7 @@
3636
"import": "./lib/index.mjs"
3737
},
3838
"scripts": {
39+
"prepack": "husky install",
3940
"dev": "rollup -cw",
4041
"bundle": "rollup -c",
4142
"deploy": "npx gh-pages -d dist",
@@ -69,7 +70,7 @@
6970
"eslint-plugin-jest": "^24.3.2",
7071
"eslint-plugin-svelte3": "^3.1.2",
7172
"figlet": "^1.2.4",
72-
"husky": "^4.3.8",
73+
"husky": "^6.0.0",
7374
"jest": "^26.6.3",
7475
"jest-transform-svelte": "^2.1.1",
7576
"lint-staged": "^10.5.4",

0 commit comments

Comments
 (0)