We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6151433 commit a4d4e1dCopy full SHA for a4d4e1d
src/features/pkg/exports.ts
@@ -124,6 +124,9 @@ export async function writeExports(
124
125
const original = readFileSync(pkg.packageJsonPath, 'utf8')
126
let contents = JSON.stringify(updatedPkg, null, detectIndentation(original))
127
+ if (original.includes('\r\n')) {
128
+ contents = contents.replaceAll('\n', '\r\n')
129
+ }
130
if (original.endsWith('\n')) contents += '\n'
131
if (contents !== original) {
132
writeFileSync(pkg.packageJsonPath, contents, 'utf8')
0 commit comments