Skip to content

Commit

Permalink
fix: ensure adding ending line to package.json (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework authored Oct 30, 2024
1 parent bb67c6b commit 5e9e512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,5 +401,5 @@ const updatePackageJson = (
pkg.name = name;
}

fs.writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, 2));
fs.writeFileSync(pkgJsonPath, `${JSON.stringify(pkg, null, 2)}\n`);
};

0 comments on commit 5e9e512

Please sign in to comment.