File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -185,14 +185,12 @@ async function getYarnProductionDependencies(cwd: string, packagedDependencies?:
185
185
async function getYarnDependencies ( cwd : string , packagedDependencies ?: string [ ] ) : Promise < string [ ] > {
186
186
const result = new Set ( [ cwd ] ) ;
187
187
188
- if ( await exists ( path . join ( cwd , 'yarn.lock' ) ) ) {
189
- const deps = await getYarnProductionDependencies ( cwd , packagedDependencies ) ;
190
- const flatten = ( dep : YarnDependency ) => {
191
- result . add ( dep . path ) ;
192
- dep . children . forEach ( flatten ) ;
193
- } ;
194
- deps . forEach ( flatten ) ;
195
- }
188
+ const deps = await getYarnProductionDependencies ( cwd , packagedDependencies ) ;
189
+ const flatten = ( dep : YarnDependency ) => {
190
+ result . add ( dep . path ) ;
191
+ dep . children . forEach ( flatten ) ;
192
+ } ;
193
+ deps . forEach ( flatten ) ;
196
194
197
195
return [ ...result ] ;
198
196
}
You can’t perform that action at this time.
0 commit comments