Skip to content

Commit 7dcc598

Browse files
authored
chore: Use newline when restoring the manifest during build. (commontoolsinc#2162)
1 parent aaddce6 commit 7dcc598

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tasks/build-binaries.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,10 @@ async function prepareWorkspace(
331331
// Remove `compilerOptions.types`
332332
const manifest = config.manifest();
333333
delete manifest.compilerOptions.types;
334-
await Deno.writeTextFile(denoJsonPath, JSON.stringify(manifest, null, 2));
334+
await Deno.writeTextFile(
335+
denoJsonPath,
336+
`${JSON.stringify(manifest, null, 2)}\n`,
337+
);
335338
// Add a COMPILED file to toolshed. This could
336339
// contain buildargs/metadata in the future.
337340
await Deno.writeTextFile(config.toolshedEnvPath(), "");
@@ -354,7 +357,7 @@ async function revertWorkspace(config: BuildConfig): Promise<void> {
354357
// Restore the workspace manifest
355358
await Deno.writeTextFile(
356359
denoJsonPath,
357-
JSON.stringify(config.manifest(), null, 2),
360+
`${JSON.stringify(config.manifest(), null, 2)}\n`,
358361
);
359362

360363
// Remove the COMPILED env file

0 commit comments

Comments
 (0)