@@ -70,7 +70,9 @@ module.exports = function (argv: string[]): void {
70
70
undefined
71
71
)
72
72
. option ( '--ignoreFile <path>' , 'Indicate alternative .vscodeignore' )
73
- . option ( '--no-dependencies' , 'Disable dependency detection via npm or yarn' )
73
+ // default must remain undefined for dependencies or we will fail to load defaults from package.json
74
+ . option ( '--dependencies' , 'Enable dependency detection via npm or yarn' , undefined )
75
+ . option ( '--no-dependencies' , 'Disable dependency detection via npm or yarn' , undefined )
74
76
. action ( ( { yarn, packagedDependencies, ignoreFile, dependencies } ) =>
75
77
main ( ls ( { useYarn : yarn , packagedDependencies, ignoreFile, dependencies } ) )
76
78
) ;
@@ -102,6 +104,8 @@ module.exports = function (argv: string[]): void {
102
104
. option ( '--ignoreFile <path>' , 'Indicate alternative .vscodeignore' )
103
105
. option ( '--no-gitHubIssueLinking' , 'Disable automatic expansion of GitHub-style issue syntax into links' )
104
106
. option ( '--no-gitLabIssueLinking' , 'Disable automatic expansion of GitLab-style issue syntax into links' )
107
+ // default must remain undefined for dependencies or we will fail to load defaults from package.json
108
+ . option ( '--dependencies' , 'Enable dependency detection via npm or yarn' , undefined )
105
109
. option ( '--no-dependencies' , 'Disable dependency detection via npm or yarn' )
106
110
. option ( '--pre-release' , 'Mark this package as a pre-release' )
107
111
. option ( '--allow-star-activation' , 'Allow using * in activation events' )
@@ -185,7 +189,9 @@ module.exports = function (argv: string[]): void {
185
189
. option ( '--no-yarn' , 'Use npm instead of yarn (default inferred from lack of yarn.lock or .yarnrc)' )
186
190
. option ( '--noVerify' )
187
191
. option ( '--ignoreFile <path>' , 'Indicate alternative .vscodeignore' )
188
- . option ( '--no-dependencies' , 'Disable dependency detection via npm or yarn' )
192
+ // default must remain undefined for dependencies or we will fail to load defaults from package.json
193
+ . option ( '--dependencies' , 'Enable dependency detection via npm or yarn' , undefined )
194
+ . option ( '--no-dependencies' , 'Disable dependency detection via npm or yarn' , undefined )
189
195
. option ( '--pre-release' , 'Mark this package as a pre-release' )
190
196
. option ( '--allow-star-activation' , 'Allow using * in activation events' )
191
197
. option ( '--allow-missing-repository' , 'Allow missing a repository URL in package.json' )
0 commit comments