Skip to content

Commit

Permalink
Add final newline to package-lock.json (#36813)
Browse files Browse the repository at this point in the history
This aligns the output with what npm outputs. Without this change,
Next.js causes unwanted changes in package-lock.json.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
  • Loading branch information
remcohaszing committed May 10, 2022
1 parent 482fe25 commit 8f9296c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/lib/patch-incorrect-lockfile.ts
Expand Up @@ -87,7 +87,7 @@ export async function patchIncorrectLockfile(dir: string) {

await promises.writeFile(
lockfilePath,
JSON.stringify(lockfileParsed, null, 2)
`${JSON.stringify(lockfileParsed, null, 2)}\n`
)
Log.warn(
'Lockfile was successfully patched, please run "npm install" to ensure @next/swc dependencies are downloaded'
Expand Down

0 comments on commit 8f9296c

Please sign in to comment.