Skip to content

Commit

Permalink
feat(deps): update dependency husky to v1 (#253)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: update husky scripts because husky@1.0.0 has breaking changes
  • Loading branch information
renovate[bot] authored and ybiquitous committed Sep 26, 2018
1 parent 99d4b33 commit d53ef7c
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 29 deletions.
2 changes: 1 addition & 1 deletion lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Init {
});

// update other keys
const keys = ["lint-staged"];
const keys = ["husky", "lint-staged"];
keys.forEach(key => {
if (!(key in packageInfo)) {
packageInfo[key] = {};
Expand Down
146 changes: 125 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@commitlint/travis-cli": "^7.0.0",
"eslint": "^5.0.1",
"fs-extra": "^7.0.0",
"husky": "^0.14.3",
"husky": "^1.0.0",
"lint-staged": "^7.0.0",
"markdownlint-cli": "^0.13.0",
"npm-run-all": "^4.1.2",
Expand All @@ -53,11 +53,15 @@
"lint:md": "markdownlint --ignore node_modules --ignore CHANGELOG.md \"**/*.md\"",
"lint:md:fix": "prettier --write \"**/*.md\"",
"lint": "npm-run-all --print-label --parallel lint:*",
"commitmsg": "commitlint -E GIT_PARAMS",
"precommit": "lint-staged",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"linters": {
"*.{js,jsx,mjs}": [
Expand Down
8 changes: 6 additions & 2 deletions test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@
"lint:md": "markdownlint --ignore node_modules --ignore CHANGELOG.md \"**/*.md\"",
"lint:md:fix": "prettier --write \"**/*.md\"",
"lint": "npm-run-all --print-label --parallel lint:*",
"commitmsg": "commitlint -E GIT_PARAMS",
"precommit": "lint-staged",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"linters": {
"*.{js,jsx,mjs}": ["eslint --fix --no-ignore", "git add"],
Expand Down
8 changes: 6 additions & 2 deletions test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@
"lint:md": "markdownlint --ignore node_modules --ignore CHANGELOG.md \"**/*.md\"",
"lint:md:fix": "prettier --write \"**/*.md\"",
"lint": "npm-run-all --print-label --parallel lint:*",
"commitmsg": "commitlint -E GIT_PARAMS",
"precommit": "lint-staged",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.css": "xyz",
"linters": {
Expand Down

0 comments on commit d53ef7c

Please sign in to comment.