Skip to content

Commit 7e12e5b

Browse files
committed
fix: update run-groups to v4
1 parent ae8b816 commit 7e12e5b

File tree

5 files changed

+37
-20
lines changed

5 files changed

+37
-20
lines changed

exec/build-modules/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
} from '@pnpm/types'
2121
import pDefer, { type DeferredPromise } from 'p-defer'
2222
import { pickBy } from 'ramda'
23-
import runGroups from 'run-groups'
23+
import { runGroups } from 'run-groups'
2424
import { buildSequence, type DependenciesGraph, type DependenciesGraphNode } from './buildSequence.js'
2525

2626
export type { DepsStateCache }
@@ -94,7 +94,7 @@ export async function buildModules<T extends string> (
9494
}
9595
)
9696
})
97-
await runGroups.default(getWorkspaceConcurrency(opts.childConcurrency), groups)
97+
await runGroups(getWorkspaceConcurrency(opts.childConcurrency), groups)
9898
if (opts.ignoredBuiltDependencies?.length) {
9999
// We already ignore the build of these dependencies.
100100
// No need to report them.

exec/lifecycle/src/runLifecycleHooksConcurrently.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from 'path'
55
import { fetchFromDir } from '@pnpm/directory-fetcher'
66
import { type StoreController } from '@pnpm/store-controller-types'
77
import { type ProjectManifest, type ProjectRootDir } from '@pnpm/types'
8-
import runGroups from 'run-groups'
8+
import { runGroups } from 'run-groups'
99
import { runLifecycleHook, type RunLifecycleHookOptions } from './runLifecycleHook.js'
1010

1111
export type RunLifecycleHooksConcurrentlyOptions = Omit<RunLifecycleHookOptions,
@@ -98,7 +98,7 @@ export async function runLifecycleHooksConcurrently (
9898
}
9999
)
100100
})
101-
await runGroups.default(childConcurrency, groups)
101+
await runGroups(childConcurrency, groups)
102102
}
103103

104104
async function scanDir (prefix: string, rootDir: string, currentDir: string, index: Record<string, string>): Promise<void> {

exec/plugin-commands-rebuild/src/implementation/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import * as dp from '@pnpm/dependency-path'
3939
import { safeReadPackageJsonFromDir } from '@pnpm/read-package-json'
4040
import { hardLinkDir } from '@pnpm/worker'
4141
import { loadJsonFile } from 'load-json-file'
42-
import runGroups from 'run-groups'
42+
import { runGroups } from 'run-groups'
4343
import { graphSequencer } from '@pnpm/deps.graph-sequencer'
4444
import npa from '@pnpm/npm-package-arg'
4545
import pLimit from 'p-limit'
@@ -442,7 +442,7 @@ async function _rebuild (
442442
}
443443
))
444444

445-
await runGroups.default(opts.childConcurrency || 5, groups)
445+
await runGroups(opts.childConcurrency || 5, groups)
446446

447447
if (builtDepPaths.size > 0) {
448448
// It may be optimized because some bins were already linked before running lifecycle scripts

pnpm-lock.yaml

Lines changed: 29 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ catalog:
263263
resolve-link-target: ^2.0.0
264264
rimraf: ^6.0.1
265265
root-link-target: ^3.1.0
266-
run-groups: ^3.0.1
266+
run-groups: ^4.0.0
267267
rxjs: ^7.8.2
268268
safe-buffer: 5.2.1
269269
safe-execa: ^0.2.0
@@ -342,6 +342,7 @@ minimumReleaseAgeExclude:
342342
343343
344344
345+
345346

346347
nodeVersion: 20.19.4
347348

0 commit comments

Comments
 (0)