Skip to content

Commit b4eb153

Browse files
fix: insert final newline (#1339)
1 parent 31f2100 commit b4eb153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ if (a == 'init') {
99
let d = JSON.parse(f.readFileSync(p))
1010
d.scripts ||= {}
1111
d.scripts.prepare = 'husky'
12-
w('package.json', JSON.stringify(d, null, /\t/.test() ? '\t' : 2))
12+
w('package.json', JSON.stringify(d, null, /\t/.test() ? '\t' : 2) + '\n')
1313
process.stdout.write(i())
14-
w('.husky/pre-commit', process.env.npm_config_user_agent.split('/')[0] + ' test')
14+
w('.husky/pre-commit', process.env.npm_config_user_agent.split('/')[0] + ' test\n')
1515
process.exit()
1616
}
1717

0 commit comments

Comments
 (0)