1 |
|
2 | import { SpawnOptions } from 'child_process';
|
3 | import { Meta, PackageJson, NodeVersion, Config } from '../types';
|
4 | interface SpawnOptionsExtended extends SpawnOptions {
|
5 | prettyCommand?: string;
|
6 | }
|
7 | export declare function spawnAsync(command: string, args: string[], opts?: SpawnOptionsExtended): Promise<void>;
|
8 | export declare function execAsync(command: string, args: string[], opts?: SpawnOptionsExtended): Promise<{
|
9 | stdout: string;
|
10 | stderr: string;
|
11 | code: number;
|
12 | }>;
|
13 | export declare function spawnCommand(command: string, options?: SpawnOptions): import("child_process").ChildProcess;
|
14 | export declare function execCommand(command: string, options?: SpawnOptions): Promise<boolean>;
|
15 | export declare function getNodeBinPath({ cwd }: {
|
16 | cwd: string;
|
17 | }): Promise<string>;
|
18 | export declare function runShellScript(fsPath: string, args?: string[], spawnOpts?: SpawnOptions): Promise<boolean>;
|
19 | export declare function getSpawnOptions(meta: Meta, nodeVersion: NodeVersion): SpawnOptions;
|
20 | export declare function getNodeVersion(destPath: string, _nodeVersion?: string, _config?: Config, meta?: Meta): Promise<NodeVersion>;
|
21 | interface WalkParentDirsProps {
|
22 | |
23 |
|
24 |
|
25 |
|
26 | base: string;
|
27 | |
28 |
|
29 |
|
30 |
|
31 | start: string;
|
32 | |
33 |
|
34 |
|
35 | filename: string;
|
36 | }
|
37 | export declare function walkParentDirs({ base, start, filename, }: WalkParentDirsProps): Promise<string | null>;
|
38 | export declare function runNpmInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta): Promise<void>;
|
39 | export declare function runBundleInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta): Promise<void>;
|
40 | export declare function runPipInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta): Promise<void>;
|
41 | export declare function getScriptName(pkg: Pick<PackageJson, 'scripts'> | null | undefined, possibleNames: Iterable<string>): string | null;
|
42 | export declare function runPackageJsonScript(destPath: string, scriptNames: string | Iterable<string>, spawnOpts?: SpawnOptions): Promise<boolean>;
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | export declare const installDependencies: typeof runNpmInstall;
|
48 | export {};
|