Skip to content

Commit 7c40adb

Browse files
author
Maël Nison
committed
Fixes resolution concurrency problem
1 parent ec720fc commit 7c40adb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/package-resolver.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,10 @@ export default class PackageResolver {
471471
this.frozen = Boolean(isFrozen);
472472
this.workspaceLayout = workspaceLayout;
473473
const activity = (this.activity = this.reporter.activity());
474-
await Promise.all(deps.map((req): Promise<void> => this.find(req)));
474+
475+
for (let req of deps) {
476+
await this.find(req);
477+
}
475478

476479
// all required package versions have been discovered, so now packages that
477480
// resolved to existing versions can be resolved to their best available version

0 commit comments

Comments
 (0)