Skip to content

Commit

Permalink
feat(deps): bump husky from 8.0.3 to 9.0.6 (#1689)
Browse files Browse the repository at this point in the history
* build(deps): bump husky from 8.0.3 to 9.0.6

Bumps [husky](https://github.com/typicode/husky) from 8.0.3 to 9.0.6.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](typicode/husky@v8.0.3...v9.0.6)

---
updated-dependencies:
- dependency-name: husky
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* feat(husky): follow husky v9

https://github.com/typicode/husky/releases/tag/v9.0.1

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ybiquitous authored Jan 29, 2024
1 parent 9be3a06 commit f6c3e51
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 34 deletions.
3 changes: 0 additions & 3 deletions .husky/commit-msg
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
3 changes: 0 additions & 3 deletions .husky/post-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run release:dry-run
3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
12 changes: 6 additions & 6 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"eslint": "^8.56.0",
"husky": "^8.0.3",
"husky": "^9.0.6",
"lint-staged": "^15.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.4",
Expand Down Expand Up @@ -80,11 +80,11 @@
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run clean",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run",
"prepare": "husky install"
"prepare": "husky"
},
"lint-staged": {
"*.{js,jsx,cjs,mjs,ts,tsx}": "eslint --cache --fix",
"!(*.snap)": "prettier --cache --write",
"!(**/*.snap|.husky/**)": "prettier --cache --write",
"!(CHANGELOG).md": "remark --frail"
},
"standard-version": {
Expand Down
23 changes: 7 additions & 16 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports[`update "package.json" 1`] = `
"root": true,
},
"lint-staged": {
"!(*.snap)": "prettier --cache --write",
"!(**/*.snap|.husky/**)": "prettier --cache --write",
"!(CHANGELOG).md": "remark --frail",
"*.css": "xyz",
"*.{js,jsx,cjs,mjs,ts,tsx}": "eslint --cache --fix",
Expand All @@ -54,7 +54,7 @@ exports[`update "package.json" 1`] = `
"lint:styles:fix": "npm run prettier -- --write",
"lint:types": "tsc --noEmit",
"lint:types:watch": "npm run lint:types -- --watch",
"prepare": "husky install",
"prepare": "husky",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run clean",
"pretest": "npm run lint",
"prettier": "prettier --cache .",
Expand Down Expand Up @@ -100,7 +100,7 @@ exports[`update "package.json" without fields 1`] = `
"root": true,
},
"lint-staged": {
"!(*.snap)": "prettier --cache --write",
"!(**/*.snap|.husky/**)": "prettier --cache --write",
"!(CHANGELOG).md": "remark --frail",
"*.{js,jsx,cjs,mjs,ts,tsx}": "eslint --cache --fix",
},
Expand All @@ -125,7 +125,7 @@ exports[`update "package.json" without fields 1`] = `
"lint:styles:fix": "npm run prettier -- --write",
"lint:types": "tsc --noEmit",
"lint:types:watch": "npm run lint:types -- --watch",
"prepare": "husky install",
"prepare": "husky",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run clean",
"pretest": "npm run lint",
"prettier": "prettier --cache .",
Expand Down Expand Up @@ -257,26 +257,17 @@ jobs:
`;

exports[`write ".husky/commit-msg" 1`] = `
"#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no-install commitlint --edit "$1"
"npx --no-install commitlint --edit "$1"
"
`;

exports[`write ".husky/post-commit" 1`] = `
"#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run release:dry-run
"npm run release:dry-run
"
`;

exports[`write ".husky/pre-commit" 1`] = `
"#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no-install lint-staged
"npx --no-install lint-staged
"
`;

Expand Down

0 comments on commit f6c3e51

Please sign in to comment.