🚀 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.1.1
to
2.1.2
+6
-0
CHANGELOG.md
# @huaiyou/hooks-git
## 2.1.2
### Patch Changes
- Fix init command - move package.json reading before dependency check
## 2.1.1

@@ -4,0 +10,0 @@

+3
-3

@@ -17,3 +17,3 @@ #!/usr/bin/env node

const version = "2.1.1";
const version = "2.1.2";

@@ -88,2 +88,4 @@ const logger = {

const pm = await getPackageManager();
const pkgPath = node_path.resolve(process.cwd(), "package.json");
const pkg = await fs__default.readJson(pkgPath);
const devDepsNeeded = [];

@@ -122,4 +124,2 @@ if (!pkg.devDependencies?.husky && !pkg.dependencies?.husky) {

logger.info("Creating configuration files...");
const pkgPath = node_path.resolve(process.cwd(), "package.json");
const pkg = await fs__default.readJson(pkgPath);
const isModule = pkg.type === "module";

@@ -126,0 +126,0 @@ const isTsProject = fs__default.existsSync(node_path.resolve(process.cwd(), "tsconfig.json"));

@@ -9,3 +9,3 @@ #!/usr/bin/env node

const version = "2.1.1";
const version = "2.1.2";

@@ -80,2 +80,4 @@ const logger = {

const pm = await getPackageManager();
const pkgPath = resolve(process.cwd(), "package.json");
const pkg = await fs.readJson(pkgPath);
const devDepsNeeded = [];

@@ -114,4 +116,2 @@ if (!pkg.devDependencies?.husky && !pkg.dependencies?.husky) {

logger.info("Creating configuration files...");
const pkgPath = resolve(process.cwd(), "package.json");
const pkg = await fs.readJson(pkgPath);
const isModule = pkg.type === "module";

@@ -118,0 +118,0 @@ const isTsProject = fs.existsSync(resolve(process.cwd(), "tsconfig.json"));

{
"name": "@huaiyou/hooks-git",
"version": "2.1.1",
"version": "2.1.2",
"description": "Git hooks configuration with Husky, Commitlint and Lint-staged",

@@ -5,0 +5,0 @@ "bin": {