Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 31c1b86

Browse files
authoredMay 10, 2018
Merge pull request #66 from Microsoft/fix_gulpfile_bug
Fix bug in package
2 parents a3689bd + b1eb0af commit 31c1b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ gulp.task('vsce-publish', function () {
141141
});
142142
gulp.task('vsce-package', function () {
143143
const usePackagePathOptionIndex = process.argv.findIndex(arg => arg === "--packagePath");
144-
const packagePath = process.argv[usePackagePathOptionIndex + 1];
144+
const packagePath = usePackagePathOptionIndex >= 0 ? process.argv[usePackagePathOptionIndex + 1] : undefined;
145145
const options = packagePath !== undefined ? { packagePath: packagePath } : {};
146146
return vsce.createVSIX(options);
147147
});

0 commit comments

Comments
 (0)
This repository has been archived.