add packagedDependencies flag to vsce command

This commit is contained in:
Johannes Rieken 2018-09-04 12:18:16 +02:00
parent b9a110bbdd
commit 681da55c42

View file

@ -59,7 +59,8 @@ module.exports = function (argv: string[]): void {
.command('ls')
.description('Lists all the files that will be published')
.option('--yarn', 'Use yarn instead of npm')
.action(({ yarn }) => main(ls(undefined, yarn)));
.option('--packagedDependencies <path>', 'Select packages that should be published only (includes dependencies)', (val, all) => all ? all.concat(val) : [val], undefined)
.action(({ yarn, packagedDependencies }) => main(ls(undefined, yarn, packagedDependencies)));
program
.command('package')