mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
fix: lifecycle buildindex sort (#6568)
This commit is contained in:
6
.changeset/twelve-ears-thank.md
Normal file
6
.changeset/twelve-ears-thank.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/lifecycle": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Build projects in a workspace in correct order [#6568](https://github.com/pnpm/pnpm/pull/6568).
|
||||
@@ -38,7 +38,7 @@ export async function runLifecycleHooksConcurrently (
|
||||
importersByBuildIndex.get(importer.buildIndex)!.push(importer)
|
||||
}
|
||||
}
|
||||
const sortedBuildIndexes = Array.from(importersByBuildIndex.keys()).sort()
|
||||
const sortedBuildIndexes = Array.from(importersByBuildIndex.keys()).sort((a, b) => a - b)
|
||||
const groups = sortedBuildIndexes.map((buildIndex) => {
|
||||
const importers = importersByBuildIndex.get(buildIndex)!
|
||||
return importers.map(({ manifest, modulesDir, rootDir, stages: importerStages, targetDirs }) =>
|
||||
|
||||
Reference in New Issue
Block a user