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

Method executeFnAsync

packages/steps/src/BuildStep.ts:418–434  ·  view source on GitHub ↗
({ signal }: { signal: AbortSignal | null })

Source from the content-addressed store, hash-verified

416 }
417
418 private async executeFnAsync({ signal }: { signal: AbortSignal | null }): Promise<void> {
419 assert(this.fn, 'Function (fn) must be defined');
420
421 await this.fn(this.ctx, {
422 inputs: Object.fromEntries(
423 Object.entries(this.inputById).map(([key, input]) => [
424 key,
425 { value: input.getValue({ interpolationContext: this.getInterpolationContext() }) },
426 ])
427 ),
428 outputs: this.outputById,
429 env: this.getScriptEnv(),
430 signal: signal ?? undefined,
431 });
432
433 this.ctx.logger.debug(`Script completed successfully`);
434 }
435
436 private interpolateInputsOutputsAndGlobalContextInTemplate(
437 template: string,

Callers 1

executeAsyncMethod · 0.95

Calls 4

getScriptEnvMethod · 0.95
getValueMethod · 0.80
debugMethod · 0.45

Tested by

no test coverage detected