From fe354ac7c23c4b9dccd2d25ceb1e0bf8cd23ae54 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 19 Aug 2022 14:08:12 -0700 Subject: [PATCH] fix: add linebreak after require in the generated file (#1317) Otherwise the generated `protos.d.ts` does not look good. --- tools/compileProtos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/compileProtos.ts b/tools/compileProtos.ts index 6d631ba41..0ccab546c 100644 --- a/tools/compileProtos.ts +++ b/tools/compileProtos.ts @@ -181,7 +181,7 @@ function fixDtsFile(dts: string): string { 'import Long = require("long");' ); if (!dts.match(/import Long = require/)) { - dts = 'import Long = require("long");' + dts; + dts = 'import Long = require("long");\n' + dts; } // 2. fix protobufjs import: we don't want the libraries to