We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f2100 commit b4eb153Copy full SHA for b4eb153
bin.js
@@ -9,9 +9,9 @@ if (a == 'init') {
9
let d = JSON.parse(f.readFileSync(p))
10
d.scripts ||= {}
11
d.scripts.prepare = 'husky'
12
- w('package.json', JSON.stringify(d, null, /\t/.test() ? '\t' : 2))
+ w('package.json', JSON.stringify(d, null, /\t/.test() ? '\t' : 2) + '\n')
13
process.stdout.write(i())
14
- 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')
15
process.exit()
16
}
17
0 commit comments