UNPKG

631 BTypeScriptView Raw
1import defaultLogger from '@expo/logger';
2import { SpawnResult } from '@expo/turtle-spawn';
3declare type LoggerType = typeof defaultLogger;
4interface FastlaneOptions {
5 logger?: LoggerType;
6 envs?: {
7 [key: string]: string;
8 };
9 cwd?: string;
10}
11interface FastlaneResult {
12 err?: Error;
13 stdout: string;
14 stderr: string;
15}
16declare function runFastlane(fastlaneArgs: string[], { logger, envs, cwd }?: FastlaneOptions): Promise<SpawnResult>;
17declare function runFastlaneSafely(fastlaneArgs: string[], logger?: LoggerType): Promise<FastlaneResult>;
18export default runFastlane;
19export { runFastlaneSafely };