diff --git a/packages/create-vite/src/index.ts b/packages/create-vite/src/index.ts index a995c47d7a5101..f3caf4d6902550 100755 --- a/packages/create-vite/src/index.ts +++ b/packages/create-vite/src/index.ts @@ -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'))