/
workspace.ts
35 lines (31 loc) 路 1.2 KB
/
workspace.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { z } from 'zod';
import { DefaultTargets } from '../shared';
const SDKsSchema = z
.object({
ANDROID_SDK: z.string().optional(),
ANDROID_NDK: z.string().optional(),
TIZEN_SDK: z.string().optional(),
WEBOS_SDK: z.string().optional(),
KAIOS_SDK: z.string().optional(),
})
.describe('Define your sdk configurations');
// ANDROID_SDK: '~/Library/Android/sdk',
// ANDROID_NDK: '~/Library/Android/sdk/ndk-bundle',
// TIZEN_SDK: '~/tizen-studio',
// WEBOS_SDK: '/opt/webOS_TV_SDK',
// KAIOS_SDK: '~/Applications/KaiosSimulators',
//LEVEl 0 (ROOT)
export const RootWorkspaceSchema = z.object({
defaultTargets: z.optional(DefaultTargets),
sdks: z.optional(SDKsSchema),
projectTemplates: z.record(z.string(), z.object({})).optional(),
disableTelemetry: z
.boolean()
.optional()
.describe('Opt-out from renative telemetry program. More info at https://renative.org/telemetry'),
appConfigsPath: z
.string()
.optional()
.describe('Enables you to define custom global appConfigs location that every project will automatically use'),
});
export type _RootWorkspaceSchemaType = z.infer<typeof RootWorkspaceSchema>;