Skip to content

Commit

Permalink
fix: add missing newline when autofixing package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Nov 5, 2023
1 parent 77acefd commit 5e52efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/pkgJsonUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function readPkgJson(packagePath: string): PackageJson {
}

export function writePkgJson(packagePath: string, pkg: PackageJson): void {
writeFileSync(packagePath, JSON.stringify(pkg, null, 2));
writeFileSync(packagePath, `${JSON.stringify(pkg, null, 2)}\n`);
}

/** @internal */
Expand Down

0 comments on commit 5e52efc

Please sign in to comment.