Skip to content

Commit

Permalink
fix: insert final newline (#1339)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalkygames123 authored Jan 25, 2024
1 parent 31f2100 commit b4eb153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ if (a == 'init') {
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()
}

Expand Down

0 comments on commit b4eb153

Please sign in to comment.