UNPKG

1.2 kBTypeScriptView Raw
1/// <reference types="node" />
2import type * as childProcess from 'child_process';
3export interface PkgDataInterface {
4 version: string;
5 [index: string]: unknown;
6}
7export declare function isObject(value: unknown): value is Record<string, unknown>;
8export declare function relativePath(pathStr: string): string;
9export declare function isPkgData(value: unknown): value is PkgDataInterface;
10export declare function readJSONFile(filepath: string): Promise<unknown>;
11/**
12 * @see https://github.com/nodejs/node/blob/v12.13.0/lib/child_process.js#L178-L390
13 */
14export declare function execFileAsync(...args: [string, (readonly string[])?, childProcess.SpawnOptions?]): Promise<{
15 readonly stdout: string;
16 readonly stderr: string;
17}>;
18export declare function printVerbose(message: string): void;
19export declare function endPrintVerbose(): void;
20/**
21 * @see https://github.com/mysticatea/npm-run-all/blob/v4.1.5/lib/run-task.js#L157-L174
22 */
23export declare function getNpmExecPath(): {
24 execPath: string;
25 spawnArgs: string[];
26 isYarn: boolean;
27};
28export declare function getConfig(keyMap: {
29 npm: string;
30 yarn?: string;
31}): Promise<string>;
32//# sourceMappingURL=utils.d.ts.map
\No newline at end of file