@salesforce/core 8.27.1 → 8.28.1
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/lib/schema/project-scratch-def/scratchOrgDef.d.ts +1 -10
- package/lib/schema/project-scratch-def/scratchOrgDef.js +17 -10
- package/lib/schema/sfdx-project/sfdxProjectJson.d.ts +4 -0
- package/lib/schema/sfdx-project/sfdxProjectJson.js +5 -0
- package/package.json +1 -1
- package/schemas/project-scratch-def.schema.json +1 -11
- package/schemas/sfdx-project.schema.json +9 -0
|
@@ -5,16 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const ScratchOrgDefSchema: z.ZodObject<{
|
|
7
7
|
orgName: z.ZodOptional<z.ZodString>;
|
|
8
|
-
edition: z.
|
|
9
|
-
group: "group";
|
|
10
|
-
developer: "developer";
|
|
11
|
-
enterprise: "enterprise";
|
|
12
|
-
"partner-developer": "partner-developer";
|
|
13
|
-
"partner-enterprise": "partner-enterprise";
|
|
14
|
-
"partner-group": "partner-group";
|
|
15
|
-
"partner-professional": "partner-professional";
|
|
16
|
-
professional: "professional";
|
|
17
|
-
}>;
|
|
8
|
+
edition: z.ZodString;
|
|
18
9
|
country: z.ZodOptional<z.ZodString>;
|
|
19
10
|
username: z.ZodOptional<z.ZodString>;
|
|
20
11
|
adminEmail: z.ZodOptional<z.ZodString>;
|
|
@@ -18,16 +18,23 @@ exports.ScratchOrgDefSchema = zod_1.z
|
|
|
18
18
|
.object({
|
|
19
19
|
orgName: zod_1.z.string().optional().describe('The name of the scratch org.').meta({ title: 'Organization Name' }),
|
|
20
20
|
edition: zod_1.z
|
|
21
|
-
.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
.string()
|
|
22
|
+
.refine((val) => {
|
|
23
|
+
const validOptions = [
|
|
24
|
+
'developer',
|
|
25
|
+
'enterprise',
|
|
26
|
+
'group',
|
|
27
|
+
'partner developer',
|
|
28
|
+
'partner enterprise',
|
|
29
|
+
'partner group',
|
|
30
|
+
'partner professional',
|
|
31
|
+
'professional',
|
|
32
|
+
];
|
|
33
|
+
// Check if the lowercase input matches any of our valid options
|
|
34
|
+
return validOptions.includes(val.toLowerCase());
|
|
35
|
+
}, {
|
|
36
|
+
message: 'Invalid Salesforce edition. Valid options are: developer, enterprise, group, partner developer, partner enterprise, partner group, partner professional, professional.',
|
|
37
|
+
})
|
|
31
38
|
.describe('The Salesforce edition of the scratch org.'),
|
|
32
39
|
country: zod_1.z
|
|
33
40
|
.string()
|
|
@@ -47,6 +47,10 @@ export declare const ProjectJsonSchema: z.ZodObject<{
|
|
|
47
47
|
}, z.core.$strict>]>>;
|
|
48
48
|
namespace: z.ZodOptional<z.ZodString>;
|
|
49
49
|
sourceApiVersion: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
50
|
+
defaultLwcLanguage: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
javascript: "javascript";
|
|
52
|
+
typescript: "typescript";
|
|
53
|
+
}>>;
|
|
50
54
|
sfdcLoginUrl: z.ZodOptional<z.ZodString>;
|
|
51
55
|
signupTargetLoginUrl: z.ZodOptional<z.ZodString>;
|
|
52
56
|
oauthLocalPort: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -33,6 +33,11 @@ exports.ProjectJsonSchema = zod_1.z.strictObject({
|
|
|
33
33
|
.optional()
|
|
34
34
|
.meta({ title: 'Source API Version' })
|
|
35
35
|
.describe('The API version that the source is compatible with. By default it matches the API version.'),
|
|
36
|
+
defaultLwcLanguage: zod_1.z
|
|
37
|
+
.enum(['javascript', 'typescript'])
|
|
38
|
+
.optional()
|
|
39
|
+
.meta({ title: 'Default LWC Language' })
|
|
40
|
+
.describe('Default language for Lightning Web Components in this project. When set to "typescript", generates TypeScript configuration files and TypeScript-aware ESLint config. Defaults to "javascript" if not specified.'),
|
|
36
41
|
sfdcLoginUrl: zod_1.z
|
|
37
42
|
.string()
|
|
38
43
|
.optional()
|
package/package.json
CHANGED
|
@@ -9,17 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"edition": {
|
|
11
11
|
"description": "The Salesforce edition of the scratch org.",
|
|
12
|
-
"type": "string"
|
|
13
|
-
"enum": [
|
|
14
|
-
"developer",
|
|
15
|
-
"enterprise",
|
|
16
|
-
"group",
|
|
17
|
-
"partner-developer",
|
|
18
|
-
"partner-enterprise",
|
|
19
|
-
"partner-group",
|
|
20
|
-
"partner-professional",
|
|
21
|
-
"professional"
|
|
22
|
-
]
|
|
12
|
+
"type": "string"
|
|
23
13
|
},
|
|
24
14
|
"country": {
|
|
25
15
|
"description": "Dev Hub's country. If you want to override this value, enter the two-character, upper-case ISO-3166 country code (Alpha-2 code). You can find a full list of these codes at several sites, such as: https://www.iso.org/obp/ui/#search. This value sets the locale of the scratch org.",
|
|
@@ -283,6 +283,15 @@
|
|
|
283
283
|
"default": "48.0",
|
|
284
284
|
"type": "string"
|
|
285
285
|
},
|
|
286
|
+
"defaultLwcLanguage": {
|
|
287
|
+
"title": "Default LWC Language",
|
|
288
|
+
"description": "Default language for Lightning Web Components in this project. When set to \"typescript\", generates TypeScript configuration files and TypeScript-aware ESLint config. Defaults to \"javascript\" if not specified.",
|
|
289
|
+
"type": "string",
|
|
290
|
+
"enum": [
|
|
291
|
+
"javascript",
|
|
292
|
+
"typescript"
|
|
293
|
+
]
|
|
294
|
+
},
|
|
286
295
|
"sfdcLoginUrl": {
|
|
287
296
|
"title": "SFDC Login URL",
|
|
288
297
|
"description": "The login URL that the force:auth commands use. If not specified, the default is login.salesforce.com. Override the default value if you want users to authorize to a specific Salesforce instance. For example, if you want to authorize into a sandbox org, set this parameter to test.salesforce.com.",
|