@huaiyou/hooks-git
Advanced tools
+6
-0
| # @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")); |
+3
-3
@@ -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")); |
+1
-1
| { | ||
| "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": { |
41315
0.25%