@expo/steps 18.2.0 → 18.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ import { bunyan } from '@expo/logger';
|
|
|
3
3
|
import { BuildRuntimePlatform } from './BuildRuntimePlatform';
|
|
4
4
|
import { BuildStep, SerializedBuildStepOutputAccessor } from './BuildStep';
|
|
5
5
|
import { BuildStepEnv } from './BuildStepEnv';
|
|
6
|
-
import {
|
|
6
|
+
import { StepMetric, StepMetricInput } from './StepMetrics';
|
|
7
7
|
interface SerializedExternalBuildContextProvider {
|
|
8
8
|
projectSourceDirectory: string;
|
|
9
9
|
projectTargetDirectory: string;
|
|
@@ -23,6 +23,7 @@ export interface ExternalBuildContextProvider {
|
|
|
23
23
|
readonly staticContext: () => Omit<StaticJobInterpolationContext, 'steps'>;
|
|
24
24
|
readonly env: BuildStepEnv;
|
|
25
25
|
updateEnv(env: BuildStepEnv): void;
|
|
26
|
+
reportStepMetric?(metric: StepMetric): void;
|
|
26
27
|
}
|
|
27
28
|
export interface SerializedBuildStepGlobalContext {
|
|
28
29
|
stepsInternalBuildDirectory: string;
|
|
@@ -39,7 +40,6 @@ export declare class BuildStepGlobalContext {
|
|
|
39
40
|
private didCheckOut;
|
|
40
41
|
private _hasAnyPreviousStepFailed;
|
|
41
42
|
private stepById;
|
|
42
|
-
private readonly _stepMetrics;
|
|
43
43
|
constructor(provider: ExternalBuildContextProvider, skipCleanup: boolean);
|
|
44
44
|
get projectSourceDirectory(): string;
|
|
45
45
|
get projectTargetDirectory(): string;
|
|
@@ -59,7 +59,6 @@ export declare class BuildStepGlobalContext {
|
|
|
59
59
|
markAsCheckedOut(logger: bunyan): void;
|
|
60
60
|
get hasAnyPreviousStepFailed(): boolean;
|
|
61
61
|
markAsFailed(): void;
|
|
62
|
-
get stepMetrics(): StepMetricsCollection;
|
|
63
62
|
addStepMetric(metric: StepMetricInput): void;
|
|
64
63
|
wasCheckedOut(): boolean;
|
|
65
64
|
hashFiles(...patterns: string[]): string;
|
package/dist/BuildStepContext.js
CHANGED
|
@@ -21,7 +21,6 @@ class BuildStepGlobalContext {
|
|
|
21
21
|
didCheckOut = false;
|
|
22
22
|
_hasAnyPreviousStepFailed = false;
|
|
23
23
|
stepById = {};
|
|
24
|
-
_stepMetrics = [];
|
|
25
24
|
constructor(provider, skipCleanup) {
|
|
26
25
|
this.provider = provider;
|
|
27
26
|
this.skipCleanup = skipCleanup;
|
|
@@ -119,11 +118,9 @@ class BuildStepGlobalContext {
|
|
|
119
118
|
markAsFailed() {
|
|
120
119
|
this._hasAnyPreviousStepFailed = true;
|
|
121
120
|
}
|
|
122
|
-
get stepMetrics() {
|
|
123
|
-
return this._stepMetrics;
|
|
124
|
-
}
|
|
125
121
|
addStepMetric(metric) {
|
|
126
|
-
|
|
122
|
+
const stepMetric = { ...metric, platform: this.runtimePlatform };
|
|
123
|
+
this.provider.reportStepMetric?.(stepMetric);
|
|
127
124
|
}
|
|
128
125
|
wasCheckedOut() {
|
|
129
126
|
return this.didCheckOut;
|
package/dist/StepMetrics.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -16,4 +16,4 @@ export * from './interpolation';
|
|
|
16
16
|
export * from './utils/shell/spawn';
|
|
17
17
|
export * from './utils/jsepEval';
|
|
18
18
|
export * from './utils/hashFiles';
|
|
19
|
-
export { StepMetric, StepMetricResult
|
|
19
|
+
export { StepMetric, StepMetricResult } from './StepMetrics';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/steps",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.4.0",
|
|
4
4
|
"bugs": "https://github.com/expo/eas-cli/issues",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Expo <support@expo.io>",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"clean": "rm -rf node_modules dist coverage *.tsbuildinfo"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@expo/eas-build-job": "18.
|
|
30
|
+
"@expo/eas-build-job": "18.4.0",
|
|
31
31
|
"@expo/logger": "18.0.1",
|
|
32
32
|
"@expo/spawn-async": "^1.7.2",
|
|
33
33
|
"arg": "^5.0.2",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=18"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "4e202db843be2dca6450af4b45ee76b226a662ea"
|
|
59
59
|
}
|