eas-cli 21.0.1 → 21.0.2
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.
- package/README.md +114 -114
- package/build/commands/build/inspect.d.ts +1 -0
- package/build/commands/build/inspect.js +10 -0
- package/build/graphql/generated.d.ts +7 -2
- package/build/graphql/queries/AccountQuery.js +6 -0
- package/build/graphql/queries/DeviceRunSessionQuery.js +0 -1
- package/build/utils/usage/checkForOverages.js +6 -1
- package/oclif.manifest.json +1596 -1596
- package/package.json +12 -14
|
@@ -121,6 +121,7 @@ class BuildInspect extends EasCommand_1.default {
|
|
|
121
121
|
}
|
|
122
122
|
finally {
|
|
123
123
|
await this.copyToOutputDirAsync(path_1.default.join(tmpWorkingdir, 'build'), outputDirectory);
|
|
124
|
+
await this.cleanUpTmpWorkingdirAsync(tmpWorkingdir);
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
}
|
|
@@ -149,5 +150,14 @@ class BuildInspect extends EasCommand_1.default {
|
|
|
149
150
|
throw err;
|
|
150
151
|
}
|
|
151
152
|
}
|
|
153
|
+
async cleanUpTmpWorkingdirAsync(tmpWorkingdir) {
|
|
154
|
+
try {
|
|
155
|
+
await fs_extra_1.default.remove(tmpWorkingdir);
|
|
156
|
+
}
|
|
157
|
+
catch (err) {
|
|
158
|
+
log_1.default.warn(`Failed to remove temporary directory ${tmpWorkingdir}`);
|
|
159
|
+
log_1.default.debug(err);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
152
162
|
}
|
|
153
163
|
exports.default = BuildInspect;
|
|
@@ -8086,7 +8086,8 @@ export type SentryProjectMutationDeleteSentryProjectArgs = {
|
|
|
8086
8086
|
export type ServeSimRunSessionRemoteConfig = {
|
|
8087
8087
|
__typename?: 'ServeSimRunSessionRemoteConfig';
|
|
8088
8088
|
previewUrl: Scalars['String']['output'];
|
|
8089
|
-
|
|
8089
|
+
/** @deprecated Use previewUrl instead. */
|
|
8090
|
+
streamUrl?: Maybe<Scalars['String']['output']>;
|
|
8090
8091
|
};
|
|
8091
8092
|
export type SetupConvexProjectInput = {
|
|
8092
8093
|
appId: Scalars['ID']['input'];
|
|
@@ -16439,6 +16440,11 @@ export type AccountUsageForOverageWarningQuery = {
|
|
|
16439
16440
|
__typename?: 'EstimatedOverageAndCost';
|
|
16440
16441
|
id: string;
|
|
16441
16442
|
value: number;
|
|
16443
|
+
metadata?: {
|
|
16444
|
+
__typename?: 'AccountUsageEASBuildMetadata';
|
|
16445
|
+
billingResourceClass?: EasBuildBillingResourceClass | null;
|
|
16446
|
+
platform?: AppPlatform | null;
|
|
16447
|
+
} | null;
|
|
16442
16448
|
}>;
|
|
16443
16449
|
};
|
|
16444
16450
|
};
|
|
@@ -17998,7 +18004,6 @@ export type DeviceRunSessionByIdQuery = {
|
|
|
17998
18004
|
} | {
|
|
17999
18005
|
__typename: 'ServeSimRunSessionRemoteConfig';
|
|
18000
18006
|
previewUrl: string;
|
|
18001
|
-
streamUrl: string;
|
|
18002
18007
|
} | null;
|
|
18003
18008
|
turtleJobRun?: {
|
|
18004
18009
|
__typename?: 'JobRun';
|
|
@@ -23,7 +23,12 @@ async function maybeWarnAboutUsageOveragesAsync({ graphqlClient, accountId, }) {
|
|
|
23
23
|
if (!planMetric || !subscription) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
// Count only genuine per-worker build overage rows. `overageMetrics` can also
|
|
27
|
+
// contain rows without build metadata (e.g. rollups), which must not be summed
|
|
28
|
+
// in — otherwise the displayed "N builds beyond your credits" count is inflated.
|
|
29
|
+
const overageCount = buildMetrics.overageMetrics
|
|
30
|
+
.filter(o => o.metadata?.billingResourceClass && o.metadata?.platform)
|
|
31
|
+
.reduce((sum, o) => sum + o.value, 0);
|
|
27
32
|
const overageCostCents = buildMetrics.totalCost;
|
|
28
33
|
const hasFreePlan = subscription.name === 'Free';
|
|
29
34
|
const tier = classifyUsageTier({
|