fix(core): update

This commit is contained in:
2021-05-05 11:56:12 +00:00
parent af0d95f327
commit e0ccb6c076
3 changed files with 16 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ export class NpmPackage {
// lets resolve with the wanted file
done.resolve([fileArg]);
subscription.unsubscribe();
} else if(fileArg.path.startsWith(wantedFilePath)) {
} else if(!returnOnFirstArg && fileArg.path.startsWith(wantedFilePath)) {
allMatchingFiles.push(fileArg);
}
},