MCPcopy Create free account
hub / github.com/expo/eas-cli / CliContextProvider

Class CliContextProvider

packages/steps/src/cli/cli.ts:16–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14});
15
16export 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
42async function runAsync(
43 configPath: string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…