1 | import execa from "execa";
|
2 | type withPkg<T> = T & {
|
3 | pkg?: unknown;
|
4 | };
|
5 | export type LernaChildProcess = withPkg<execa.ExecaChildProcess<string>>;
|
6 | export type LernaReturnValue = withPkg<execa.ExecaReturnValue<string>>;
|
7 | export type LernaOptions = withPkg<execa.Options>;
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare function exec(command: string, args: string[], opts?: LernaOptions): Promise<LernaReturnValue>;
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare function execSync(command: string, args: string[], opts?: import("execa").SyncOptions): string;
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | export declare function spawn(command: string, args: string[], opts?: LernaOptions): Promise<LernaReturnValue>;
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare function spawnStreaming(command: string, args: string[], opts?: LernaOptions, prefix?: string): Promise<LernaReturnValue>;
|
38 | export declare function getChildProcessCount(): number;
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export declare function getExitCode(result: execa.ExecaError<string> & {
|
44 | code?: string | number;
|
45 | }): number | undefined;
|
46 | export {};
|