From a00097399efb38f0167b8f46fc2dababcee1d5f6 Mon Sep 17 00:00:00 2001 From: Nam Chu Hoai Date: Mon, 9 Jan 2023 21:05:46 -0500 Subject: [PATCH] writeJSON with new line at the end (#1555) --- typescript/infra/src/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/infra/src/utils/utils.ts b/typescript/infra/src/utils/utils.ts index 48d4bfaad..d726fea89 100644 --- a/typescript/infra/src/utils/utils.ts +++ b/typescript/infra/src/utils/utils.ts @@ -158,7 +158,7 @@ export function writeJSON(directory: string, filename: string, obj: any) { } fs.writeFileSync( path.join(directory, filename), - JSON.stringify(obj, null, 2), + JSON.stringify(obj, null, 2) + '\n', ); }