Comparing version 9.0.2 to 9.0.3
@@ -10,6 +10,7 @@ #!/usr/bin/env node | ||
let d = JSON.parse(f.readFileSync(p)) | ||
d.scripts ||= {} | ||
d.scripts.prepare = 'husky' | ||
w('package.json', JSON.stringify(d, null, /\t/.test() ? '\t' : 2)) | ||
w('package.json', JSON.stringify(d, null, /\t/.test() ? '\t' : 2) + '\n') | ||
process.stdout.write(i()) | ||
w('.husky/pre-commit', process.env.npm_config_user_agent.split('/')[0] + ' test') | ||
w('.husky/pre-commit', process.env.npm_config_user_agent.split('/')[0] + ' test\n') | ||
process.exit() | ||
@@ -16,0 +17,0 @@ } |
@@ -13,3 +13,3 @@ import c from 'child_process' | ||
let _ = (x = '') => p.join(d, '_', x) | ||
let { status: s, stderr: e } = c.spawnSync('git', ['config', 'core.hooksPath', _()]) | ||
let { status: s, stderr: e } = c.spawnSync('git', ['config', 'core.hooksPath', `${d}/_`]) | ||
if (s == null) return 'git command not found' | ||
@@ -24,2 +24,2 @@ if (s) return '' + e | ||
return '' | ||
} | ||
} |
{ | ||
"name": "husky", | ||
"version": "9.0.2", | ||
"version": "9.0.3", | ||
"description": "Modern native Git hooks", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
3648
38