From b95773b3bcdd0ba4a7b558651fcb82acc7a798e8 Mon Sep 17 00:00:00 2001 From: Contra Date: Tue, 21 Oct 2014 21:21:40 -0700 Subject: [PATCH] fix local version undefined output. closes #737 --- bin/gulp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gulp.js b/bin/gulp.js index 8e1563c5e..719ddd9dc 100755 --- a/bin/gulp.js +++ b/bin/gulp.js @@ -75,7 +75,7 @@ cli.launch({ function handleArguments(env) { if (versionFlag && tasks.length === 0) { gutil.log('CLI version', cliPackage.version); - if (env.modulePackage) { + if (env.modulePackage && typeof env.modulePackage.version !== 'undefined') { gutil.log('Local version', env.modulePackage.version); } process.exit(0);