@expo/steps
Advanced tools
Comparing version 1.0.32 to 1.0.34
@@ -9,2 +9,3 @@ import { bunyan } from '@expo/logger'; | ||
defaultWorkingDirectory: string; | ||
buildLogsDirectory: string; | ||
runtimePlatform: BuildRuntimePlatform; | ||
@@ -18,2 +19,3 @@ staticContext: Record<string, any>; | ||
readonly defaultWorkingDirectory: string; | ||
readonly buildLogsDirectory: string; | ||
readonly runtimePlatform: BuildRuntimePlatform; | ||
@@ -42,2 +44,3 @@ readonly logger: bunyan; | ||
get defaultWorkingDirectory(): string; | ||
get buildLogsDirectory(): string; | ||
get env(): BuildStepEnv; | ||
@@ -44,0 +47,0 @@ get staticContext(): Record<string, any>; |
@@ -11,4 +11,5 @@ import { bunyan } from '@expo/logger'; | ||
readonly defaultWorkingDirectory: string; | ||
readonly buildLogsDirectory: string; | ||
private _env; | ||
constructor(logger: bunyan, runtimePlatform: BuildRuntimePlatform, projectSourceDirectory: string, projectTargetDirectory: string, defaultWorkingDirectory: string); | ||
constructor(logger: bunyan, runtimePlatform: BuildRuntimePlatform, projectSourceDirectory: string, projectTargetDirectory: string, defaultWorkingDirectory: string, buildLogsDirectory: string); | ||
get env(): BuildStepEnv; | ||
@@ -15,0 +16,0 @@ staticContext(): any; |
@@ -206,3 +206,3 @@ import assert from 'assert'; | ||
if (!inputs) { | ||
return command; | ||
return this.ctx.global.interpolate(command); | ||
} | ||
@@ -209,0 +209,0 @@ const vars = inputs.reduce((acc, input) => { |
@@ -9,2 +9,3 @@ import { bunyan } from '@expo/logger'; | ||
defaultWorkingDirectory: string; | ||
buildLogsDirectory: string; | ||
runtimePlatform: BuildRuntimePlatform; | ||
@@ -18,2 +19,3 @@ staticContext: Record<string, any>; | ||
readonly defaultWorkingDirectory: string; | ||
readonly buildLogsDirectory: string; | ||
readonly runtimePlatform: BuildRuntimePlatform; | ||
@@ -42,2 +44,3 @@ readonly logger: bunyan; | ||
get defaultWorkingDirectory(): string; | ||
get buildLogsDirectory(): string; | ||
get env(): BuildStepEnv; | ||
@@ -44,0 +47,0 @@ get staticContext(): Record<string, any>; |
@@ -25,2 +25,5 @@ import os from 'os'; | ||
} | ||
get buildLogsDirectory() { | ||
return this.provider.buildLogsDirectory; | ||
} | ||
get env() { | ||
@@ -67,2 +70,3 @@ return this.provider.env; | ||
defaultWorkingDirectory: this.provider.defaultWorkingDirectory, | ||
buildLogsDirectory: this.provider.buildLogsDirectory, | ||
runtimePlatform: this.provider.runtimePlatform, | ||
@@ -80,2 +84,3 @@ staticContext: this.provider.staticContext(), | ||
defaultWorkingDirectory: serialized.provider.defaultWorkingDirectory, | ||
buildLogsDirectory: serialized.provider.buildLogsDirectory, | ||
runtimePlatform: serialized.provider.runtimePlatform, | ||
@@ -82,0 +87,0 @@ logger, |
@@ -11,4 +11,5 @@ import { bunyan } from '@expo/logger'; | ||
readonly defaultWorkingDirectory: string; | ||
readonly buildLogsDirectory: string; | ||
private _env; | ||
constructor(logger: bunyan, runtimePlatform: BuildRuntimePlatform, projectSourceDirectory: string, projectTargetDirectory: string, defaultWorkingDirectory: string); | ||
constructor(logger: bunyan, runtimePlatform: BuildRuntimePlatform, projectSourceDirectory: string, projectTargetDirectory: string, defaultWorkingDirectory: string, buildLogsDirectory: string); | ||
get env(): BuildStepEnv; | ||
@@ -15,0 +16,0 @@ staticContext(): any; |
@@ -12,3 +12,3 @@ var _a; | ||
export class CliContextProvider { | ||
constructor(logger, runtimePlatform, projectSourceDirectory, projectTargetDirectory, defaultWorkingDirectory) { | ||
constructor(logger, runtimePlatform, projectSourceDirectory, projectTargetDirectory, defaultWorkingDirectory, buildLogsDirectory) { | ||
this.logger = logger; | ||
@@ -19,2 +19,3 @@ this.runtimePlatform = runtimePlatform; | ||
this.defaultWorkingDirectory = defaultWorkingDirectory; | ||
this.buildLogsDirectory = buildLogsDirectory; | ||
this._env = {}; | ||
@@ -33,3 +34,3 @@ } | ||
async function runAsync(configPath, relativeProjectDirectory, runtimePlatform) { | ||
const ctx = new BuildStepGlobalContext(new CliContextProvider(logger, runtimePlatform, relativeProjectDirectory, relativeProjectDirectory, relativeProjectDirectory), false); | ||
const ctx = new BuildStepGlobalContext(new CliContextProvider(logger, runtimePlatform, relativeProjectDirectory, relativeProjectDirectory, relativeProjectDirectory, relativeProjectDirectory), false); | ||
const parser = new BuildConfigParser(ctx, { | ||
@@ -36,0 +37,0 @@ configPath, |
{ | ||
"name": "@expo/steps", | ||
"type": "module", | ||
"version": "1.0.32", | ||
"version": "1.0.34", | ||
"main": "./dist_commonjs/index.cjs", | ||
@@ -66,3 +66,3 @@ "types": "./dist_esm/index.d.ts", | ||
}, | ||
"gitHead": "8c5a3b94a25d25af83fd3edd26f0aa0f92899455" | ||
"gitHead": "ad4d0b971474e48a2ed99308857534b8b54b3f09" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
529780
4636
4