UNPKG

1.08 kBTypeScriptView Raw
1import * as Config from '@oclif/config';
2export interface IConfig {
3 root: string;
4 gitSha: string;
5 config: Config.IConfig;
6 nodeVersion: string;
7 version: string;
8 tmp: string;
9 updateConfig: IConfig['config']['pjson']['oclif']['update'];
10 s3Config: IConfig['updateConfig']['s3'];
11 channel: string;
12 xz: boolean;
13 targets: {
14 platform: Config.PlatformTypes;
15 arch: Config.ArchTypes;
16 }[];
17 workspace(target?: {
18 platform: Config.PlatformTypes;
19 arch: Config.ArchTypes;
20 }): string;
21 dist(input: string): string;
22}
23export interface IManifest {
24 version: string;
25 channel: string;
26 gz: string;
27 xz?: string;
28 sha256gz: string;
29 sha256xz?: string;
30 baseDir: string;
31 rollout?: number;
32 node: {
33 compatible: string;
34 recommended: string;
35 };
36}
37export declare function gitSha(cwd: string, options?: {
38 short?: boolean;
39}): Promise<string>;
40export declare function buildConfig(root: string, options?: {
41 xz?: boolean;
42 targets?: string[];
43}): Promise<IConfig>;