Skip to content

Commit fc447c0

Browse files
committed
feat(template): husky upgrade to ^1.0.1
All the version of the husky version that the template depends on is upgraded to ^1.0.1. The hook function such as "precommit" in the "scripts" of the package.json file will no longer take effect. Please remove it manually. BREAKING CHANGE: husky hooks in "scripts" will no longer work
1 parent fbea6d2 commit fc447c0

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hooks:
2+
pre-commit: 'npm test'

template/assist-plugin/package.json.mustache

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"clean": "rm -rf ./dist/*",
1010
"build": "npm run clean & webpack",
1111
"prepublishOnly": "npm test; npm run build",
12-
"precommit": "npm test"
1312
},
1413
"engines": {
1514
"node": ">=8.9.4"
@@ -40,7 +39,7 @@
4039
"babel-register": "^6.26.0",
4140
"css-loader": "^0.28.11",
4241
"file-loader": "^1.1.11",
43-
"husky": "^0.14.3",
42+
"husky": "^1.0.1",
4443
"mili": "{{miliVersion}}",
4544
"postcss-cssnext": "^3.1.0",
4645
"postcss-import": "^11.1.0",

template/component/.huskyrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hooks:
2+
pre-commit: 'npm test'

template/component/package.json.mustache

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"mili:upgrade": "mili upgrade",
1111
"clean": "rm -rf ./dist/*",
1212
"build": "npm run clean & rollup -c",
13-
"prepublishOnly": "npm test; npm run build",
14-
"precommit": "npm test"
13+
"prepublishOnly": "npm test; npm run build"
1514
},
1615
"engines": { "node": ">=8.9.4" },
1716
"mili": {
@@ -39,7 +38,7 @@
3938
"babel-plugin-transform-object-rest-spread": "^6.26.0",
4039
"babel-preset-env": "^1.6.1",
4140
"babel-register": "^6.26.0",
42-
"husky": "^0.14.3",
41+
"husky": "^1.0.1",
4342
"mili": "{{miliVersion}}",
4443
"rollup": "^0.58.0",
4544
"rollup-plugin-babel": "^3.0.3",

template/pwa/package.json.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"css-loader": "^0.28.11",
4545
"file-loader": "^1.1.11",
4646
"html-loader": "^0.5.5",
47-
"husky": "^0.14.3",
47+
"husky": "^1.0.1",
4848
"koa-webpack": "^5.0.2",
4949
"memory-fs": "^0.4.1",
5050
"pm2": "^2.10.4",

0 commit comments

Comments
 (0)