@expo/config 11.0.8 → 11.0.10
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/{remoteBuildCache.d.ts → buildCacheProvider.d.ts} +26 -8
- package/build/buildCacheProvider.js +2 -0
- package/build/buildCacheProvider.js.map +1 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/package.json +4 -4
- package/build/remoteBuildCache.js +0 -2
- package/build/remoteBuildCache.js.map +0 -1
|
@@ -30,31 +30,49 @@ type IosRunOptions = {
|
|
|
30
30
|
rebundle?: boolean;
|
|
31
31
|
};
|
|
32
32
|
export type RunOptions = AndroidRunOptions | IosRunOptions;
|
|
33
|
-
export type
|
|
33
|
+
export type ResolveBuildCacheProps = {
|
|
34
34
|
projectRoot: string;
|
|
35
35
|
platform: 'android' | 'ios';
|
|
36
36
|
runOptions: RunOptions;
|
|
37
37
|
fingerprintHash: string;
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Use `ResolveBuildCacheProps` instead.
|
|
41
|
+
*/
|
|
42
|
+
export type ResolveRemoteBuildCacheProps = ResolveBuildCacheProps;
|
|
43
|
+
export type UploadBuildCacheProps = {
|
|
40
44
|
projectRoot: string;
|
|
41
45
|
buildPath: string;
|
|
42
46
|
runOptions: RunOptions;
|
|
43
47
|
fingerprintHash: string;
|
|
44
48
|
platform: 'android' | 'ios';
|
|
45
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Use `ResolveBuildCacheProps` instead.
|
|
52
|
+
*/
|
|
53
|
+
export type UploadRemoteBuildCacheProps = UploadBuildCacheProps;
|
|
46
54
|
export type CalculateFingerprintHashProps = {
|
|
47
55
|
projectRoot: string;
|
|
48
56
|
platform: 'android' | 'ios';
|
|
49
57
|
runOptions: RunOptions;
|
|
50
58
|
};
|
|
51
|
-
export type
|
|
52
|
-
plugin:
|
|
59
|
+
export type BuildCacheProvider<T = any> = {
|
|
60
|
+
plugin: BuildCacheProviderPlugin<T>;
|
|
53
61
|
options: T;
|
|
54
62
|
};
|
|
55
|
-
export type
|
|
56
|
-
resolveRemoteBuildCache(props: ResolveRemoteBuildCacheProps, options: T): Promise<string | null>;
|
|
57
|
-
uploadRemoteBuildCache(props: UploadRemoteBuildCacheProps, options: T): Promise<string | null>;
|
|
63
|
+
export type BuildCacheProviderPlugin<T = any> = {
|
|
58
64
|
calculateFingerprintHash?: (props: CalculateFingerprintHashProps, options: T) => Promise<string | null>;
|
|
59
|
-
}
|
|
65
|
+
} & ({
|
|
66
|
+
resolveBuildCache(props: ResolveBuildCacheProps, options: T): Promise<string | null>;
|
|
67
|
+
uploadBuildCache(props: UploadBuildCacheProps, options: T): Promise<string | null>;
|
|
68
|
+
} | {
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated Use `resolveBuildCache` instead.
|
|
71
|
+
*/
|
|
72
|
+
resolveRemoteBuildCache: (props: ResolveRemoteBuildCacheProps, options: T) => Promise<string | null>;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Use `uploadBuildCache` instead.
|
|
75
|
+
*/
|
|
76
|
+
uploadRemoteBuildCache: (props: UploadRemoteBuildCacheProps, options: T) => Promise<string | null>;
|
|
77
|
+
});
|
|
60
78
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildCacheProvider.js","names":[],"sources":["../src/buildCacheProvider.ts"],"sourcesContent":["type AndroidRunOptions = {\n variant?: string;\n device?: boolean | string;\n port?: number;\n bundler?: boolean;\n install?: boolean;\n buildCache?: boolean;\n allArch?: boolean;\n binary?: string;\n appId?: string;\n};\n\ntype IosRunOptions = {\n /** iOS device to target. */\n device?: string | boolean;\n /** Dev server port to use, ignored if `bundler` is `false`. */\n port?: number;\n /** Xcode scheme to build. */\n scheme?: string | boolean;\n /** Xcode configuration to build. Default `Debug` */\n configuration?: 'Debug' | 'Release';\n /** Should start the bundler dev server. */\n bundler?: boolean;\n /** Should install missing dependencies before building. */\n install?: boolean;\n /** Should use derived data for builds. */\n buildCache?: boolean;\n /** Path to an existing binary to install on the device. */\n binary?: string;\n\n /** Re-bundle JS and assets, then embed in existing app, and install again. */\n rebundle?: boolean;\n};\n\nexport type RunOptions = AndroidRunOptions | IosRunOptions;\n\nexport type ResolveBuildCacheProps = {\n projectRoot: string;\n platform: 'android' | 'ios';\n runOptions: RunOptions;\n fingerprintHash: string;\n};\n\n/**\n * @deprecated Use `ResolveBuildCacheProps` instead.\n */\nexport type ResolveRemoteBuildCacheProps = ResolveBuildCacheProps;\n\nexport type UploadBuildCacheProps = {\n projectRoot: string;\n buildPath: string;\n runOptions: RunOptions;\n fingerprintHash: string;\n platform: 'android' | 'ios';\n};\n/**\n * @deprecated Use `ResolveBuildCacheProps` instead.\n */\nexport type UploadRemoteBuildCacheProps = UploadBuildCacheProps;\n\nexport type CalculateFingerprintHashProps = {\n projectRoot: string;\n platform: 'android' | 'ios';\n runOptions: RunOptions;\n};\n\nexport type BuildCacheProvider<T = any> = {\n plugin: BuildCacheProviderPlugin<T>;\n options: T;\n};\n\nexport type BuildCacheProviderPlugin<T = any> = {\n calculateFingerprintHash?: (\n props: CalculateFingerprintHashProps,\n options: T\n ) => Promise<string | null>;\n} & (\n | {\n resolveBuildCache(props: ResolveBuildCacheProps, options: T): Promise<string | null>;\n uploadBuildCache(props: UploadBuildCacheProps, options: T): Promise<string | null>;\n }\n | {\n /**\n * @deprecated Use `resolveBuildCache` instead.\n */\n resolveRemoteBuildCache: (\n props: ResolveRemoteBuildCacheProps,\n options: T\n ) => Promise<string | null>;\n /**\n * @deprecated Use `uploadBuildCache` instead.\n */\n uploadRemoteBuildCache: (\n props: UploadRemoteBuildCacheProps,\n options: T\n ) => Promise<string | null>;\n }\n);\n"],"mappings":"","ignoreList":[]}
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -47,14 +47,14 @@ Object.keys(_Errors).forEach(function (key) {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
-
var
|
|
51
|
-
Object.keys(
|
|
50
|
+
var _buildCacheProvider = require("./buildCacheProvider");
|
|
51
|
+
Object.keys(_buildCacheProvider).forEach(function (key) {
|
|
52
52
|
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (key in exports && exports[key] ===
|
|
53
|
+
if (key in exports && exports[key] === _buildCacheProvider[key]) return;
|
|
54
54
|
Object.defineProperty(exports, key, {
|
|
55
55
|
enumerable: true,
|
|
56
56
|
get: function () {
|
|
57
|
-
return
|
|
57
|
+
return _buildCacheProvider[key];
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
});
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Config","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Config2","_getExpoSDKVersion","_Errors","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Config","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Config2","_getExpoSDKVersion","_Errors","_buildCacheProvider"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable import/export */\n\nexport * from './Config';\nexport * from './Config.types';\nexport * from './getExpoSDKVersion';\nexport * from './Errors';\nexport * from './buildCacheProvider';\n"],"mappings":";;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,QAAA,GAAAT,OAAA;AAAAC,MAAA,CAA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MAAAQ,mBAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,mBAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/config",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.10",
|
|
4
4
|
"description": "A library for interacting with the app.json",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/code-frame": "~7.10.4",
|
|
37
37
|
"@expo/config-plugins": "~10.0.2",
|
|
38
|
-
"@expo/config-types": "^53.0.
|
|
38
|
+
"@expo/config-types": "^53.0.4",
|
|
39
39
|
"@expo/json-file": "^9.1.4",
|
|
40
40
|
"deepmerge": "^4.3.1",
|
|
41
41
|
"getenv": "^1.0.0",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/require-from-string": "^1.2.1",
|
|
52
|
-
"expo-module-scripts": "^4.1.
|
|
52
|
+
"expo-module-scripts": "^4.1.7"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "49c9d53cf0a9fc8179d1c8f5268beadd141f70ca"
|
|
58
58
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remoteBuildCache.js","names":[],"sources":["../src/remoteBuildCache.ts"],"sourcesContent":["type AndroidRunOptions = {\n variant?: string;\n device?: boolean | string;\n port?: number;\n bundler?: boolean;\n install?: boolean;\n buildCache?: boolean;\n allArch?: boolean;\n binary?: string;\n appId?: string;\n};\n\ntype IosRunOptions = {\n /** iOS device to target. */\n device?: string | boolean;\n /** Dev server port to use, ignored if `bundler` is `false`. */\n port?: number;\n /** Xcode scheme to build. */\n scheme?: string | boolean;\n /** Xcode configuration to build. Default `Debug` */\n configuration?: 'Debug' | 'Release';\n /** Should start the bundler dev server. */\n bundler?: boolean;\n /** Should install missing dependencies before building. */\n install?: boolean;\n /** Should use derived data for builds. */\n buildCache?: boolean;\n /** Path to an existing binary to install on the device. */\n binary?: string;\n\n /** Re-bundle JS and assets, then embed in existing app, and install again. */\n rebundle?: boolean;\n};\n\nexport type RunOptions = AndroidRunOptions | IosRunOptions;\n\nexport type ResolveRemoteBuildCacheProps = {\n projectRoot: string;\n platform: 'android' | 'ios';\n runOptions: RunOptions;\n fingerprintHash: string;\n};\nexport type UploadRemoteBuildCacheProps = {\n projectRoot: string;\n buildPath: string;\n runOptions: RunOptions;\n fingerprintHash: string;\n platform: 'android' | 'ios';\n};\nexport type CalculateFingerprintHashProps = {\n projectRoot: string;\n platform: 'android' | 'ios';\n runOptions: RunOptions;\n};\n\nexport type RemoteBuildCacheProvider<T = any> = {\n plugin: RemoteBuildCachePlugin<T>;\n options: T;\n};\n\nexport type RemoteBuildCachePlugin<T = any> = {\n resolveRemoteBuildCache(props: ResolveRemoteBuildCacheProps, options: T): Promise<string | null>;\n uploadRemoteBuildCache(props: UploadRemoteBuildCacheProps, options: T): Promise<string | null>;\n calculateFingerprintHash?: (\n props: CalculateFingerprintHashProps,\n options: T\n ) => Promise<string | null>;\n};\n"],"mappings":"","ignoreList":[]}
|