aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/globals.d.ts
blob: 1693a6dbb0a9f5a9211bf1ec45816d4f423a8b08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
declare module 'async-child-process';
declare module 'publish-release';
declare module 'es6-promisify';
declare module 'semver-diff';

declare module 'prompt' {
    const start: () => void;
    const get: (promptMessages: string[], callback: (err: Error, result: string) => void) => void;
}

// semver-sort declarations
declare module 'semver-sort' {
    const desc: (versions: string[]) => string[];
}

declare interface LernaPackage {
    location: string;
    package: {
        private?: boolean;
        version: string;
        name: string;
        main?: string;
        scripts?: { [command: string]: string };
        config?: {
            additionalTsTypings?: string[];
        };
    };
}
declare function lernaGetPackages(path: string): LernaPackage[];
// lerna-get-packages declarations
declare module 'lerna-get-packages' {
    export = lernaGetPackages;
}

declare module 'promisify-child-process';