Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deps): bump husky from 8.0.3 to 9.0.6 #1689

Merged
merged 2 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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