ts-repo-utils
    Preparing search index...
    • Executes a npm script across multiple packages in parallel with a concurrency limit. Uses fail-fast behavior - stops execution immediately when any package fails.

      Parameters

      • packages: readonly Readonly<
            {
                dependencies: ReadonlyRecord<string, string>;
                name: string;
                packageJson: JsonValue;
                path: string;
            },
        >[]

        Array of Package objects to execute the script in

      • scriptName: string

        The name of the npm script to execute

      • concurrency: number = 3

        Maximum number of packages to process simultaneously (default: 3)

      Returns Promise<readonly Readonly<{ code?: number; skipped?: boolean }>[]>

      A promise that resolves to an array of execution results, or rejects immediately on first failure