From 0180119c69f8f3945c96c5f0e1efb92252c6d170 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 7 Sep 2020 13:13:32 +0200 Subject: [PATCH] Avoid having diffs in `monaco.d.ts` --- scripts/dts.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/dts.js b/scripts/dts.js index eb65bd8c..1d9977db 100644 --- a/scripts/dts.js +++ b/scripts/dts.js @@ -20,8 +20,7 @@ let result = [ ` * Licensed under the MIT License. See License.txt in the project root for license information.`, ` *--------------------------------------------------------------------------------------------*/`, ``, - `declare namespace monaco.languages.json {`, - `` + `declare namespace monaco.languages.json {` ]; for (let line of lines) { if (/^import/.test(line)) { @@ -31,8 +30,8 @@ for (let line of lines) { line = line.replace(/export declare/g, 'export'); if (line.length > 0) { line = `\t${line}`; + result.push(line); } - result.push(line); } result.push(`}`); result.push(``);