diff --git a/cli/pbts.js b/cli/pbts.js index a968a3421..8baced48f 100644 --- a/cli/pbts.js +++ b/cli/pbts.js @@ -151,10 +151,7 @@ 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 + ";",