From a90111b89c6d2fb1c857334ab22a63fb443eddd4 Mon Sep 17 00:00:00 2001 From: Yulia Cech Date: Wed, 21 Jun 2023 11:43:02 +0200 Subject: [PATCH] [Console] Add back a new line at the end of the definitions files --- packages/kbn-generate-console-definitions/package.json | 2 +- .../src/generate_console_definitions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kbn-generate-console-definitions/package.json b/packages/kbn-generate-console-definitions/package.json index 843d45e6e1370..7f79eb540a32f 100644 --- a/packages/kbn-generate-console-definitions/package.json +++ b/packages/kbn-generate-console-definitions/package.json @@ -3,4 +3,4 @@ "private": true, "version": "1.0.0", "license": "SSPL-1.0 OR Elastic License 2.0" -} \ No newline at end of file +} diff --git a/packages/kbn-generate-console-definitions/src/generate_console_definitions.ts b/packages/kbn-generate-console-definitions/src/generate_console_definitions.ts index 3c13e59043412..54eb122728200 100644 --- a/packages/kbn-generate-console-definitions/src/generate_console_definitions.ts +++ b/packages/kbn-generate-console-definitions/src/generate_console_definitions.ts @@ -156,7 +156,7 @@ export function generateConsoleDefinitions({ }; fs.writeFileSync( join(definitionsFolder, `${name}.json`), - JSON.stringify(fileContent, null, 2), + JSON.stringify(fileContent + '\n', null, 2), 'utf8' ); });