@expo/eas-json 3.9.0 → 3.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/build/utils.d.ts +6 -0
- package/build/utils.js +13 -0
- package/package.json +3 -3
package/build/utils.d.ts
CHANGED
|
@@ -3,10 +3,16 @@ import { EasJsonAccessor } from './accessor';
|
|
|
3
3
|
import { BuildProfile } from './build/types';
|
|
4
4
|
import { SubmitProfile } from './submit/types';
|
|
5
5
|
import { EasJson } from './types';
|
|
6
|
+
interface EasJsonDeprecationWarning {
|
|
7
|
+
message: string[];
|
|
8
|
+
docsUrl?: string;
|
|
9
|
+
}
|
|
6
10
|
export declare class EasJsonUtils {
|
|
7
11
|
static getBuildProfileNamesAsync(accessor: EasJsonAccessor): Promise<string[]>;
|
|
8
12
|
static getBuildProfileAsync<T extends Platform>(accessor: EasJsonAccessor, platform: T, profileName?: string): Promise<BuildProfile<T>>;
|
|
13
|
+
static getBuildProfileDeprecationWarnings(buildProfile: BuildProfile, profileName?: string): EasJsonDeprecationWarning[];
|
|
9
14
|
static getCliConfigAsync(accessor: EasJsonAccessor): Promise<EasJson['cli'] | null>;
|
|
10
15
|
static getSubmitProfileNamesAsync(accessor: EasJsonAccessor): Promise<string[]>;
|
|
11
16
|
static getSubmitProfileAsync<T extends Platform>(accessor: EasJsonAccessor, platform: T, profileName?: string): Promise<SubmitProfile<T>>;
|
|
12
17
|
}
|
|
18
|
+
export {};
|
package/build/utils.js
CHANGED
|
@@ -14,6 +14,19 @@ class EasJsonUtils {
|
|
|
14
14
|
const easJson = await accessor.readAsync();
|
|
15
15
|
return (0, resolver_1.resolveBuildProfile)({ easJson, platform, profileName });
|
|
16
16
|
}
|
|
17
|
+
static getBuildProfileDeprecationWarnings(buildProfile, profileName) {
|
|
18
|
+
var _a;
|
|
19
|
+
const warnings = [];
|
|
20
|
+
if (((_a = buildProfile.cache) === null || _a === void 0 ? void 0 : _a.cacheDefaultPaths) !== undefined) {
|
|
21
|
+
warnings.push({
|
|
22
|
+
message: [
|
|
23
|
+
`The "build.${profileName !== null && profileName !== void 0 ? profileName : 'production'}.cache.cacheDefaultPaths" field in eas.json is deprecated and will be removed in the future.`,
|
|
24
|
+
],
|
|
25
|
+
docsUrl: 'https://docs.expo.dev/build-reference/caching/#ios-dependencies',
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return warnings;
|
|
29
|
+
}
|
|
17
30
|
static async getCliConfigAsync(accessor) {
|
|
18
31
|
var _a;
|
|
19
32
|
try {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/eas-json",
|
|
3
3
|
"description": "A library for interacting with eas.json",
|
|
4
|
-
"version": "3.9.
|
|
4
|
+
"version": "3.9.2",
|
|
5
5
|
"author": "Expo <support@expo.dev>",
|
|
6
6
|
"bugs": "https://github.com/expo/eas-cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/code-frame": "7.18.6",
|
|
9
|
-
"@expo/eas-build-job": "0.
|
|
9
|
+
"@expo/eas-build-job": "1.0.7",
|
|
10
10
|
"chalk": "4.1.2",
|
|
11
11
|
"env-string": "1.0.1",
|
|
12
12
|
"fs-extra": "10.1.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"node": "18.6.0",
|
|
52
52
|
"yarn": "1.22.19"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "7bf0493a4d23b91e6961f9dc9e248f1c87cfbe03"
|
|
55
55
|
}
|