eas-cli 5.9.1 → 5.9.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 +67 -65
- package/build/build/graphql.d.ts +3 -3
- package/build/build/graphql.js +10 -14
- package/build/build/local.js +1 -1
- package/build/build/metadata.js +0 -1
- package/build/build/runBuildAndSubmit.js +5 -1
- package/build/project/customBuildConfig.d.ts +6 -1
- package/build/project/customBuildConfig.js +4 -1
- package/oclif.manifest.json +2714 -1
- package/package.json +10 -10
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { Platform } from '@expo/eas-build-job';
|
|
2
2
|
import { BuildProfile } from '@expo/eas-json';
|
|
3
|
+
import { Client } from '../vcs/vcs';
|
|
3
4
|
export interface CustomBuildConfigMetadata {
|
|
4
5
|
workflowName?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare function validateCustomBuildConfigAsync(projectDir
|
|
7
|
+
export declare function validateCustomBuildConfigAsync({ profile, projectDir, vcsClient, }: {
|
|
8
|
+
projectDir: string;
|
|
9
|
+
profile: BuildProfile<Platform>;
|
|
10
|
+
vcsClient: Client;
|
|
11
|
+
}): Promise<CustomBuildConfigMetadata | undefined>;
|
|
7
12
|
export declare function getCustomBuildConfigPath(configFilename: string): string;
|
|
@@ -6,7 +6,7 @@ const steps_1 = require("@expo/steps");
|
|
|
6
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
7
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
8
8
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
|
-
async function validateCustomBuildConfigAsync(projectDir,
|
|
9
|
+
async function validateCustomBuildConfigAsync({ profile, projectDir, vcsClient, }) {
|
|
10
10
|
if (!profile.config) {
|
|
11
11
|
return undefined;
|
|
12
12
|
}
|
|
@@ -15,6 +15,9 @@ async function validateCustomBuildConfigAsync(projectDir, profile) {
|
|
|
15
15
|
if (!(await fs_extra_1.default.pathExists(configPath))) {
|
|
16
16
|
throw new Error(`Custom build configuration file ${chalk_1.default.bold(relativeConfigPath)} does not exist.`);
|
|
17
17
|
}
|
|
18
|
+
if (await vcsClient.isFileIgnoredAsync(relativeConfigPath)) {
|
|
19
|
+
throw new Error(`Custom build configuration file ${chalk_1.default.bold(relativeConfigPath)} is ignored by your version control system. Remove it from the ignore list to successfully create custom build.`);
|
|
20
|
+
}
|
|
18
21
|
try {
|
|
19
22
|
const config = await (0, steps_1.readAndValidateBuildConfigAsync)(configPath, {
|
|
20
23
|
skipNamespacedFunctionsCheck: true,
|