Skip to content

Commit

Permalink
fix: Import Long types
Browse files Browse the repository at this point in the history
This adds an additional import to ensure the output of `pbts` includes the `long` package.
  • Loading branch information
JustinBeckwith authored Apr 19, 2019
2 parents ca52447 + 8a85863 commit 1d98cb8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/pbts.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ exports.main = function(args, callback) {
"// DO NOT EDIT! This is a generated file. Edit the JSDoc in src/*.js instead and run 'npm run types'.",
""
);
output.push(
"import * as Long from \"long\";",
""
);
if (argv.global)
output.push(
"export as namespace " + argv.global + ";",
Expand Down

0 comments on commit 1d98cb8

Please sign in to comment.