Unverified Commit 1a88624f authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

next-upgrade: Reduce formatting artifacts when overrides are added (#71379)

parent 500a1b69
import * as os from 'os'
import prompts from 'prompts'
import fs from 'fs'
import semver from 'semver'
......@@ -296,7 +297,12 @@ export async function runUpgrade(
addPackageDependency(appPackageJson, dep, version, true)
}
fs.writeFileSync(appPackageJsonPath, JSON.stringify(appPackageJson, null, 2))
fs.writeFileSync(
appPackageJsonPath,
JSON.stringify(appPackageJson, null, 2) +
// Common IDE formatters would add a newline as well.
os.EOL
)
runInstallation(packageManager)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment