@react-native-harness/config 1.5.0 → 1.6.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.
- package/dist/types.d.ts +13 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +3 -0
- package/package.json +3 -3
- package/src/types.ts +3 -0
package/dist/types.d.ts
CHANGED
|
@@ -11,23 +11,26 @@ export declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
11
11
|
runner: z.ZodString;
|
|
12
12
|
cli: z.ZodOptional<z.ZodString>;
|
|
13
13
|
metroConfigEnhancer: z.ZodOptional<z.ZodString>;
|
|
14
|
+
bundlePlatform: z.ZodOptional<z.ZodString>;
|
|
14
15
|
platformId: z.ZodString;
|
|
15
16
|
getResourceLockKey: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodString, z.ZodPromise<z.ZodString>]>>>;
|
|
16
17
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
config: Record<string, any>;
|
|
18
18
|
name: string;
|
|
19
|
+
config: Record<string, any>;
|
|
19
20
|
runner: string;
|
|
20
21
|
platformId: string;
|
|
21
22
|
cli?: string | undefined;
|
|
22
23
|
metroConfigEnhancer?: string | undefined;
|
|
24
|
+
bundlePlatform?: string | undefined;
|
|
23
25
|
getResourceLockKey?: ((...args: unknown[]) => string | Promise<string>) | undefined;
|
|
24
26
|
}, {
|
|
25
|
-
config: Record<string, any>;
|
|
26
27
|
name: string;
|
|
28
|
+
config: Record<string, any>;
|
|
27
29
|
runner: string;
|
|
28
30
|
platformId: string;
|
|
29
31
|
cli?: string | undefined;
|
|
30
32
|
metroConfigEnhancer?: string | undefined;
|
|
33
|
+
bundlePlatform?: string | undefined;
|
|
31
34
|
getResourceLockKey?: ((...args: unknown[]) => string | Promise<string>) | undefined;
|
|
32
35
|
}>, "many">;
|
|
33
36
|
plugins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodType<AnyHarnessPlugin, z.ZodTypeDef, AnyHarnessPlugin>, "many">>>;
|
|
@@ -100,12 +103,13 @@ export declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
100
103
|
entryPoint: string;
|
|
101
104
|
appRegistryComponentName: string;
|
|
102
105
|
runners: {
|
|
103
|
-
config: Record<string, any>;
|
|
104
106
|
name: string;
|
|
107
|
+
config: Record<string, any>;
|
|
105
108
|
runner: string;
|
|
106
109
|
platformId: string;
|
|
107
110
|
cli?: string | undefined;
|
|
108
111
|
metroConfigEnhancer?: string | undefined;
|
|
112
|
+
bundlePlatform?: string | undefined;
|
|
109
113
|
getResourceLockKey?: ((...args: unknown[]) => string | Promise<string>) | undefined;
|
|
110
114
|
}[];
|
|
111
115
|
plugins: AnyHarnessPlugin[];
|
|
@@ -146,12 +150,13 @@ export declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
146
150
|
entryPoint: string;
|
|
147
151
|
appRegistryComponentName: string;
|
|
148
152
|
runners: {
|
|
149
|
-
config: Record<string, any>;
|
|
150
153
|
name: string;
|
|
154
|
+
config: Record<string, any>;
|
|
151
155
|
runner: string;
|
|
152
156
|
platformId: string;
|
|
153
157
|
cli?: string | undefined;
|
|
154
158
|
metroConfigEnhancer?: string | undefined;
|
|
159
|
+
bundlePlatform?: string | undefined;
|
|
155
160
|
getResourceLockKey?: ((...args: unknown[]) => string | Promise<string>) | undefined;
|
|
156
161
|
}[];
|
|
157
162
|
plugins?: AnyHarnessPlugin[] | undefined;
|
|
@@ -192,12 +197,13 @@ export declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
192
197
|
entryPoint: string;
|
|
193
198
|
appRegistryComponentName: string;
|
|
194
199
|
runners: {
|
|
195
|
-
config: Record<string, any>;
|
|
196
200
|
name: string;
|
|
201
|
+
config: Record<string, any>;
|
|
197
202
|
runner: string;
|
|
198
203
|
platformId: string;
|
|
199
204
|
cli?: string | undefined;
|
|
200
205
|
metroConfigEnhancer?: string | undefined;
|
|
206
|
+
bundlePlatform?: string | undefined;
|
|
201
207
|
getResourceLockKey?: ((...args: unknown[]) => string | Promise<string>) | undefined;
|
|
202
208
|
}[];
|
|
203
209
|
plugins: AnyHarnessPlugin[];
|
|
@@ -238,12 +244,13 @@ export declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
238
244
|
entryPoint: string;
|
|
239
245
|
appRegistryComponentName: string;
|
|
240
246
|
runners: {
|
|
241
|
-
config: Record<string, any>;
|
|
242
247
|
name: string;
|
|
248
|
+
config: Record<string, any>;
|
|
243
249
|
runner: string;
|
|
244
250
|
platformId: string;
|
|
245
251
|
cli?: string | undefined;
|
|
246
252
|
metroConfigEnhancer?: string | undefined;
|
|
253
|
+
bundlePlatform?: string | undefined;
|
|
247
254
|
getResourceLockKey?: ((...args: unknown[]) => string | Promise<string>) | undefined;
|
|
248
255
|
}[];
|
|
249
256
|
plugins?: AnyHarnessPlugin[] | undefined;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,eAAO,MAAM,kBAAkB,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAkCvC,KAAK,gBAAgB,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAOvD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8MtB,CAAC;AAEJ,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,SAAS,EAC/C,MAAK,MAAM,CAAC,UAAwB,KACnC,OAOF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iCAAiC,GAC5C,QAAQ,IAAI,CACV,MAAM,EACN,4BAA4B,GAAG,sCAAsC,CACtE,KACA,OAiBF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,GACnC,QAAQ,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,4BAA4B,CAAC,KAC3D,OAiBF,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -15,6 +15,9 @@ const RunnerSchema = z.object({
|
|
|
15
15
|
// runner. Set by a platform factory (`HarnessPlatform.metroConfigEnhancer`);
|
|
16
16
|
// imported and run by the bundler while it composes the config.
|
|
17
17
|
metroConfigEnhancer: z.string().optional(),
|
|
18
|
+
// The Metro platform the app requests when it differs from platformId
|
|
19
|
+
// (e.g. Vega apps request "kepler"). Set by the platform factory.
|
|
20
|
+
bundlePlatform: z.string().optional(),
|
|
18
21
|
platformId: z.string(),
|
|
19
22
|
// Set by the platform factories (`HarnessPlatform.getResourceLockKey`) to
|
|
20
23
|
// scope the run's resource lock — e.g. per emulator/simulator/device rather
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-harness/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"tslib": "^2.3.0",
|
|
19
19
|
"zod": "^3.25.67",
|
|
20
|
-
"@react-native-harness/tools": "1.
|
|
21
|
-
"@react-native-harness/plugins": "1.
|
|
20
|
+
"@react-native-harness/tools": "1.6.0",
|
|
21
|
+
"@react-native-harness/plugins": "1.6.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT"
|
|
24
24
|
}
|
package/src/types.ts
CHANGED
|
@@ -22,6 +22,9 @@ const RunnerSchema = z.object({
|
|
|
22
22
|
// runner. Set by a platform factory (`HarnessPlatform.metroConfigEnhancer`);
|
|
23
23
|
// imported and run by the bundler while it composes the config.
|
|
24
24
|
metroConfigEnhancer: z.string().optional(),
|
|
25
|
+
// The Metro platform the app requests when it differs from platformId
|
|
26
|
+
// (e.g. Vega apps request "kepler"). Set by the platform factory.
|
|
27
|
+
bundlePlatform: z.string().optional(),
|
|
25
28
|
platformId: z.string(),
|
|
26
29
|
// Set by the platform factories (`HarnessPlatform.getResourceLockKey`) to
|
|
27
30
|
// scope the run's resource lock — e.g. per emulator/simulator/device rather
|