Skip to content

Commit

Permalink
fix: add linebreak after require in the generated file (#1317)
Browse files Browse the repository at this point in the history
Otherwise the generated `protos.d.ts` does not look good.
  • Loading branch information
alexander-fenster committed Aug 19, 2022
1 parent 9a58991 commit fe354ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/compileProtos.ts
Expand Up @@ -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
Expand Down

0 comments on commit fe354ac

Please sign in to comment.