🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@huaiyou/hooks-git

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huaiyou/hooks-git - npm Package Compare versions

Comparing version
2.2.1
to
2.2.2
+6
-0
CHANGELOG.md
# @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 });

@@ -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 });

{
"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": {