aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/cli
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-05-13 10:55:00 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-05-13 10:55:00 -0700
commitb70d1d9dcac2281f2a7d76bd243ec490736f49ec (patch)
tree602dfd69d9b747a2d93cb96d3673aacacbffe9e0 /src/node/cli
parentf4b2832850e9e77dd116adbcaf4f0f24c7044a7f (diff)
Fixed include path handling
Diffstat (limited to 'src/node/cli')
-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',