Skip to content

Commit e033e49

Browse files
authored
fix(create-vite): add final newline for package.json (#11906)
1 parent 374b25e commit e033e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/create-vite/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ async function init() {
371371

372372
pkg.name = packageName || getProjectName()
373373

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

376376
if (isReactSwc) {
377377
setupReactSwc(root, template.endsWith('-ts'))

0 commit comments

Comments
 (0)