aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/cli/service_packager.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/cli/service_packager.js')
-rw-r--r--src/node/cli/service_packager.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/node/cli/service_packager.js b/src/node/cli/service_packager.js
index 41875b5420..7fb0a8fe28 100644
--- a/src/node/cli/service_packager.js
+++ b/src/node/cli/service_packager.js
@@ -78,9 +78,12 @@ function copyFile(src_path, dest_path) {
function main(argv) {
var args = parseArgs(argv, arg_format);
var out_path = path.resolve(args.out);
- var include_dirs = _.map(_.flatten([args.include]), function(p) {
- return path.resolve(p);
- });
+ var include_dirs = [];
+ if (args.include) {
+ include_dirs = _.map(_.flatten([args.include]), function(p) {
+ return path.resolve(p);
+ });
+ }
args.grpc_version = package_json.version;
generatePackage(args, function(err, rendered) {
if (err) throw err;
@@ -93,8 +96,6 @@ function main(argv) {
copyFile(path.join(__dirname, '..', 'LICENSE'),
path.join(out_path, 'LICENSE'));
-
-
var service_stream = fs.createWriteStream(path.join(out_path,
'service.json'));
var pbjs_args = _.flatten(['node', 'pbjs',