Skip to content

Commit

Permalink
fix(create-vite): add final newline for package.json (#11906)
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Feb 13, 2023
1 parent 374b25e commit e033e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ async function init() {

pkg.name = packageName || getProjectName()

write('package.json', JSON.stringify(pkg, null, 2))
write('package.json', JSON.stringify(pkg, null, 2) + '\n')

if (isReactSwc) {
setupReactSwc(root, template.endsWith('-ts'))
Expand Down

0 comments on commit e033e49

Please sign in to comment.