run-scripts-util
Version:
Organize npm package.json scripts into groups of easy-to-manage commands (CLI tool designed for use in npm package.json scripts)
25 lines (23 loc) • 668 B
TypeScript
//! run-scripts-util v1.3.8 ~~ https://github.com/center-key/run-scripts-util ~~ MIT License
export type Settings = {
continueOnError: boolean;
only: number | null;
quiet: boolean;
verbose: boolean;
};
export type ProcessInfo = {
group: string;
step: number;
start: number;
pid: number | null;
code: number;
ms: number;
};
declare const runScripts: {
version: string;
assertOk(ok: unknown, message: string | null): void;
exec(group: string, options?: Partial<Settings>): void;
execParallel(group: string, options?: Partial<Settings>): Promise<(ProcessInfo | null)[]>;
cli(): void;
};
export { runScripts };