@huaiyou/hooks-git
Advanced tools
+6
-0
| # @huaiyou/hooks-git | ||
| ## 2.2.2 | ||
| ### Patch Changes | ||
| - Fix hook scripts to use correct bin commands | ||
| ## 2.2.1 | ||
@@ -4,0 +10,0 @@ |
+3
-3
@@ -17,3 +17,3 @@ #!/usr/bin/env node | ||
| const version = "2.2.1"; | ||
| const version = "2.2.2"; | ||
@@ -124,7 +124,7 @@ const logger = { | ||
| const commitMsgPath = node_path.resolve(huskyDir, "commit-msg"); | ||
| const commitMsgContent = `npx --no -- @huaiyou/hooks-git/wrappers commitlint --edit \${1} | ||
| const commitMsgContent = `npx --no -- hy-hooks-commitlint commitlint --edit \${1} | ||
| `; | ||
| await fs__default.outputFile(commitMsgPath, commitMsgContent, { mode: 493 }); | ||
| const preCommitPath = node_path.resolve(huskyDir, "pre-commit"); | ||
| const preCommitContent = `npx --no -- @huaiyou/hooks-git/wrappers lint-staged | ||
| const preCommitContent = `npx --no -- hy-hooks-lint-staged lint-staged | ||
| `; | ||
@@ -131,0 +131,0 @@ await fs__default.outputFile(preCommitPath, preCommitContent, { mode: 493 }); |
+3
-3
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
| const version = "2.2.1"; | ||
| const version = "2.2.2"; | ||
@@ -116,7 +116,7 @@ const logger = { | ||
| const commitMsgPath = resolve(huskyDir, "commit-msg"); | ||
| const commitMsgContent = `npx --no -- @huaiyou/hooks-git/wrappers commitlint --edit \${1} | ||
| const commitMsgContent = `npx --no -- hy-hooks-commitlint commitlint --edit \${1} | ||
| `; | ||
| await fs.outputFile(commitMsgPath, commitMsgContent, { mode: 493 }); | ||
| const preCommitPath = resolve(huskyDir, "pre-commit"); | ||
| const preCommitContent = `npx --no -- @huaiyou/hooks-git/wrappers lint-staged | ||
| const preCommitContent = `npx --no -- hy-hooks-lint-staged lint-staged | ||
| `; | ||
@@ -123,0 +123,0 @@ await fs.outputFile(preCommitPath, preCommitContent, { mode: 493 }); |
+1
-1
| { | ||
| "name": "@huaiyou/hooks-git", | ||
| "version": "2.2.1", | ||
| "version": "2.2.2", | ||
| "description": "Git hooks configuration with Husky, Commitlint and Lint-staged", | ||
@@ -5,0 +5,0 @@ "bin": { |
52792
0.09%