| 14 | }); |
| 15 | |
| 16 | export class CliContextProvider implements ExternalBuildContextProvider { |
| 17 | private _env: BuildStepEnv = {}; |
| 18 | |
| 19 | constructor( |
| 20 | public readonly logger: bunyan, |
| 21 | public readonly runtimePlatform: BuildRuntimePlatform, |
| 22 | public readonly projectSourceDirectory: string, |
| 23 | public readonly projectTargetDirectory: string, |
| 24 | public readonly defaultWorkingDirectory: string, |
| 25 | public readonly buildLogsDirectory: string |
| 26 | ) {} |
| 27 | public get env(): BuildStepEnv { |
| 28 | return this._env; |
| 29 | } |
| 30 | public staticContext(): Omit<StaticJobInterpolationContext, 'steps'> { |
| 31 | return { |
| 32 | job: {} as Job, |
| 33 | metadata: {} as Metadata, |
| 34 | expoApiServerURL: 'http://api.expo.test', |
| 35 | }; |
| 36 | } |
| 37 | public updateEnv(env: BuildStepEnv): void { |
| 38 | this._env = env; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | async function runAsync( |
| 43 | configPath: string, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…