ts-repo-utils
    Preparing search index...
    • Executes a npm script across packages in dependency order stages. Packages are grouped into stages where each stage contains packages whose dependencies have been completed in previous stages. 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 within each stage (default: 3)

      Returns Promise<void>

      A promise that resolves when all stages are complete, or rejects immediately on first failure