Comparing version 9.0.6 to 9.0.7
18
bin.js
@@ -8,10 +8,10 @@ #!/usr/bin/env node | ||
if (a == 'init') { | ||
let p = 'package.json' | ||
let d = JSON.parse(f.readFileSync(p)) | ||
;(d.scripts ||= {}).prepare = 'husky' | ||
w('package.json', JSON.stringify(d, null, /\t/.test() ? '\t' : 2) + '\n') | ||
process.stdout.write(i()) | ||
try { f.mkdirSync('.husky') } catch {} | ||
w('.husky/pre-commit', process.env.npm_config_user_agent.split('/')[0] + ' test\n') | ||
process.exit() | ||
let p = 'package.json' | ||
let d = JSON.parse(f.readFileSync(p)) | ||
; (d.scripts ||= {}).prepare = 'husky' | ||
w('package.json', JSON.stringify(d, null, /\t/.test() ? '\t' : 2) + '\n') | ||
process.stdout.write(i()) | ||
try { f.mkdirSync('.husky') } catch { } | ||
w('.husky/pre-commit', process.env.npm_config_user_agent.split('/')[0] + ' test\n') | ||
process.exit() | ||
} | ||
@@ -23,2 +23,2 @@ | ||
process.stdout.write(i(a == 'install' ? undefined : a)) | ||
process.stdout.write(i(a == 'install' ? undefined : a)) |
@@ -1,1 +0,1 @@ | ||
export default function (dir?: string): string; | ||
export default function (dir?: string): string; |
@@ -23,2 +23,2 @@ import c from 'child_process' | ||
return '' | ||
} | ||
} |
{ | ||
"name": "husky", | ||
"version": "9.0.6", | ||
"version": "9.0.7", | ||
"description": "Modern native Git hooks", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3657
35