@salesforce/plugin-templates 56.3.74 → 56.4.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/LICENSE.txt +1 -1
- package/README.md +12 -12
- package/lib/commands/webapp/generate.d.ts +22 -0
- package/lib/commands/webapp/generate.js +78 -0
- package/lib/commands/webapp/generate.js.map +1 -0
- package/messages/webApplication.md +53 -0
- package/oclif.manifest.json +99 -1
- package/package.json +6 -6
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
|
@@ -171,7 +171,7 @@ FLAG DESCRIPTIONS
|
|
|
171
171
|
directory.
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
_See code: [src/commands/analytics/generate/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
174
|
+
_See code: [src/commands/analytics/generate/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/analytics/generate/template.ts)_
|
|
175
175
|
|
|
176
176
|
## `sf apex generate class`
|
|
177
177
|
|
|
@@ -230,7 +230,7 @@ FLAG DESCRIPTIONS
|
|
|
230
230
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
-
_See code: [src/commands/apex/generate/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
233
|
+
_See code: [src/commands/apex/generate/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/apex/generate/class.ts)_
|
|
234
234
|
|
|
235
235
|
## `sf apex generate trigger`
|
|
236
236
|
|
|
@@ -299,7 +299,7 @@ FLAG DESCRIPTIONS
|
|
|
299
299
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
300
300
|
```
|
|
301
301
|
|
|
302
|
-
_See code: [src/commands/apex/generate/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
302
|
+
_See code: [src/commands/apex/generate/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/apex/generate/trigger.ts)_
|
|
303
303
|
|
|
304
304
|
## `sf lightning generate app`
|
|
305
305
|
|
|
@@ -354,7 +354,7 @@ FLAG DESCRIPTIONS
|
|
|
354
354
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
355
355
|
```
|
|
356
356
|
|
|
357
|
-
_See code: [src/commands/lightning/generate/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
357
|
+
_See code: [src/commands/lightning/generate/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/lightning/generate/app.ts)_
|
|
358
358
|
|
|
359
359
|
## `sf lightning generate component`
|
|
360
360
|
|
|
@@ -423,7 +423,7 @@ FLAG DESCRIPTIONS
|
|
|
423
423
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
424
424
|
```
|
|
425
425
|
|
|
426
|
-
_See code: [src/commands/lightning/generate/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
426
|
+
_See code: [src/commands/lightning/generate/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/lightning/generate/component.ts)_
|
|
427
427
|
|
|
428
428
|
## `sf lightning generate event`
|
|
429
429
|
|
|
@@ -478,7 +478,7 @@ FLAG DESCRIPTIONS
|
|
|
478
478
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
479
479
|
```
|
|
480
480
|
|
|
481
|
-
_See code: [src/commands/lightning/generate/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
481
|
+
_See code: [src/commands/lightning/generate/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/lightning/generate/event.ts)_
|
|
482
482
|
|
|
483
483
|
## `sf lightning generate interface`
|
|
484
484
|
|
|
@@ -533,7 +533,7 @@ FLAG DESCRIPTIONS
|
|
|
533
533
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
534
534
|
```
|
|
535
535
|
|
|
536
|
-
_See code: [src/commands/lightning/generate/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
536
|
+
_See code: [src/commands/lightning/generate/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/lightning/generate/interface.ts)_
|
|
537
537
|
|
|
538
538
|
## `sf lightning generate test`
|
|
539
539
|
|
|
@@ -588,7 +588,7 @@ FLAG DESCRIPTIONS
|
|
|
588
588
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
589
589
|
```
|
|
590
590
|
|
|
591
|
-
_See code: [src/commands/lightning/generate/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
591
|
+
_See code: [src/commands/lightning/generate/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/lightning/generate/test.ts)_
|
|
592
592
|
|
|
593
593
|
## `sf project generate`
|
|
594
594
|
|
|
@@ -693,7 +693,7 @@ FLAG DESCRIPTIONS
|
|
|
693
693
|
Override the api version used for api requests made by this command
|
|
694
694
|
```
|
|
695
695
|
|
|
696
|
-
_See code: [src/commands/project/generate.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
696
|
+
_See code: [src/commands/project/generate.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/project/generate.ts)_
|
|
697
697
|
|
|
698
698
|
## `sf static-resource generate`
|
|
699
699
|
|
|
@@ -755,7 +755,7 @@ FLAG DESCRIPTIONS
|
|
|
755
755
|
etc.
|
|
756
756
|
```
|
|
757
757
|
|
|
758
|
-
_See code: [src/commands/static-resource/generate.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
758
|
+
_See code: [src/commands/static-resource/generate.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/static-resource/generate.ts)_
|
|
759
759
|
|
|
760
760
|
## `sf visualforce generate component`
|
|
761
761
|
|
|
@@ -811,7 +811,7 @@ FLAG DESCRIPTIONS
|
|
|
811
811
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
812
812
|
```
|
|
813
813
|
|
|
814
|
-
_See code: [src/commands/visualforce/generate/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
814
|
+
_See code: [src/commands/visualforce/generate/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/visualforce/generate/component.ts)_
|
|
815
815
|
|
|
816
816
|
## `sf visualforce generate page`
|
|
817
817
|
|
|
@@ -861,6 +861,6 @@ FLAG DESCRIPTIONS
|
|
|
861
861
|
The name can be up to 40 characters and must start with a letter.
|
|
862
862
|
```
|
|
863
863
|
|
|
864
|
-
_See code: [src/commands/visualforce/generate/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.
|
|
864
|
+
_See code: [src/commands/visualforce/generate/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.4.1/src/commands/visualforce/generate/page.ts)_
|
|
865
865
|
|
|
866
866
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { CreateOutput } from '@salesforce/templates';
|
|
3
|
+
export default class WebAppGenerate extends SfCommand<CreateOutput> {
|
|
4
|
+
static readonly summary: string;
|
|
5
|
+
static readonly description: string;
|
|
6
|
+
static readonly examples: string[];
|
|
7
|
+
static readonly hidden = true;
|
|
8
|
+
static readonly flags: {
|
|
9
|
+
name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
template: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
label: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'output-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Resolves the default output directory by reading the project's sfdx-project.json.
|
|
17
|
+
* Returns the path to webApplications under the default package directory,
|
|
18
|
+
* or falls back to the current directory if not in a project context.
|
|
19
|
+
*/
|
|
20
|
+
private static getDefaultOutputDir;
|
|
21
|
+
run(): Promise<CreateOutput>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025, salesforce.com, inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* Licensed under the BSD 3-Clause license.
|
|
5
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
import path from 'node:path';
|
|
8
|
+
import { Flags, SfCommand, Ux } from '@salesforce/sf-plugins-core';
|
|
9
|
+
import { TemplateType } from '@salesforce/templates';
|
|
10
|
+
import { Messages, SfProject } from '@salesforce/core';
|
|
11
|
+
import { getCustomTemplates, runGenerator } from '../../utils/templateCommand.js';
|
|
12
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
13
|
+
const messages = Messages.loadMessages('@salesforce/plugin-templates', 'webApplication');
|
|
14
|
+
export default class WebAppGenerate extends SfCommand {
|
|
15
|
+
static summary = messages.getMessage('summary');
|
|
16
|
+
static description = messages.getMessage('description');
|
|
17
|
+
static examples = messages.getMessages('examples');
|
|
18
|
+
static hidden = true; // Hide from external developers until GA
|
|
19
|
+
static flags = {
|
|
20
|
+
name: Flags.string({
|
|
21
|
+
char: 'n',
|
|
22
|
+
summary: messages.getMessage('flags.name.summary'),
|
|
23
|
+
description: messages.getMessage('flags.name.description'),
|
|
24
|
+
required: true,
|
|
25
|
+
}),
|
|
26
|
+
template: Flags.string({
|
|
27
|
+
char: 't',
|
|
28
|
+
summary: messages.getMessage('flags.template.summary'),
|
|
29
|
+
description: messages.getMessage('flags.template.description'),
|
|
30
|
+
default: 'default',
|
|
31
|
+
options: ['default', 'reactbasic'],
|
|
32
|
+
}),
|
|
33
|
+
label: Flags.string({
|
|
34
|
+
char: 'l',
|
|
35
|
+
summary: messages.getMessage('flags.label.summary'),
|
|
36
|
+
description: messages.getMessage('flags.label.description'),
|
|
37
|
+
}),
|
|
38
|
+
'output-dir': Flags.directory({
|
|
39
|
+
char: 'd',
|
|
40
|
+
summary: messages.getMessage('flags.output-dir.summary'),
|
|
41
|
+
description: messages.getMessage('flags.output-dir.description'),
|
|
42
|
+
}),
|
|
43
|
+
'api-version': Flags.orgApiVersion(),
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Resolves the default output directory by reading the project's sfdx-project.json.
|
|
47
|
+
* Returns the path to webApplications under the default package directory,
|
|
48
|
+
* or falls back to the current directory if not in a project context.
|
|
49
|
+
*/
|
|
50
|
+
static async getDefaultOutputDir() {
|
|
51
|
+
try {
|
|
52
|
+
const project = await SfProject.resolve();
|
|
53
|
+
const defaultPackage = project.getDefaultPackage();
|
|
54
|
+
return path.join(defaultPackage.path, 'main', 'default', 'webApplications');
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
return '.';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
async run() {
|
|
61
|
+
const { flags } = await this.parse(WebAppGenerate);
|
|
62
|
+
const outputDir = flags['output-dir'] ?? (await WebAppGenerate.getDefaultOutputDir());
|
|
63
|
+
const flagsAsOptions = {
|
|
64
|
+
webappname: flags.name,
|
|
65
|
+
template: flags.template,
|
|
66
|
+
masterlabel: flags.label,
|
|
67
|
+
outputdir: outputDir,
|
|
68
|
+
apiversion: flags['api-version'],
|
|
69
|
+
};
|
|
70
|
+
return runGenerator({
|
|
71
|
+
templateType: TemplateType.WebApplication,
|
|
72
|
+
opts: flagsAsOptions,
|
|
73
|
+
ux: new Ux({ jsonEnabled: this.jsonEnabled() }),
|
|
74
|
+
templates: getCustomTemplates(this.configAggregator),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=generate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":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,KAAK,CAAC,QAAQ;YACxB,WAAW,EAAE,KAAK,CAAC,KAAK;YACxB,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC;SACjC,CAAC;QAEF,OAAO,YAAY,CAAC;YAClB,YAAY,EAAE,YAAY,CAAC,cAAc;YACzC,IAAI,EAAE,cAAc;YACpB,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YAC/C,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACrD,CAAC,CAAC;IACL,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Generate a web application.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Generates a web application in the specified directory or the current working directory. The web application files are created in a folder with the designated name. Web application files must be contained in a parent directory called "webApplications" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to create one or point to an existing one.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Generate a web application called MyWebApp in the current directory:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --name MyWebApp
|
|
14
|
+
|
|
15
|
+
- Generate a React-based web application:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic
|
|
18
|
+
|
|
19
|
+
- Generate the web application in the "force-app/main/default/webApplications" directory:
|
|
20
|
+
|
|
21
|
+
<%= config.bin %> <%= command.id %> --name MyWebApp --output-dir force-app/main/default/webApplications
|
|
22
|
+
|
|
23
|
+
# flags.name.summary
|
|
24
|
+
|
|
25
|
+
Name of the generated web application.
|
|
26
|
+
|
|
27
|
+
# flags.name.description
|
|
28
|
+
|
|
29
|
+
This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.
|
|
30
|
+
|
|
31
|
+
# flags.template.summary
|
|
32
|
+
|
|
33
|
+
Template to use for file creation.
|
|
34
|
+
|
|
35
|
+
# flags.template.description
|
|
36
|
+
|
|
37
|
+
Supplied parameter values or default values are filled into a copy of the template.
|
|
38
|
+
|
|
39
|
+
# flags.label.summary
|
|
40
|
+
|
|
41
|
+
Master label for the web application.
|
|
42
|
+
|
|
43
|
+
# flags.label.description
|
|
44
|
+
|
|
45
|
+
If not specified, the label is derived from the name.
|
|
46
|
+
|
|
47
|
+
# flags.output-dir.summary
|
|
48
|
+
|
|
49
|
+
Directory for saving the created files.
|
|
50
|
+
|
|
51
|
+
# flags.output-dir.description
|
|
52
|
+
|
|
53
|
+
The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json and defaults to the webApplications directory within your default package directory. When running outside a Salesforce DX project, defaults to the current directory.
|
package/oclif.manifest.json
CHANGED
|
@@ -286,6 +286,104 @@
|
|
|
286
286
|
"generate:static-resource"
|
|
287
287
|
]
|
|
288
288
|
},
|
|
289
|
+
"webapp:generate": {
|
|
290
|
+
"aliases": [],
|
|
291
|
+
"args": {},
|
|
292
|
+
"description": "Generates a web application in the specified directory or the current working directory. The web application files are created in a folder with the designated name. Web application files must be contained in a parent directory called \"webApplications\" in your package directory. Either run this command from an existing directory of this name, or use the --output-dir flag to create one or point to an existing one.",
|
|
293
|
+
"examples": [
|
|
294
|
+
"Generate a web application called MyWebApp in the current directory:\n<%= config.bin %> <%= command.id %> --name MyWebApp",
|
|
295
|
+
"Generate a React-based web application:\n<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic",
|
|
296
|
+
"Generate the web application in the \"force-app/main/default/webApplications\" directory:\n<%= config.bin %> <%= command.id %> --name MyWebApp --output-dir force-app/main/default/webApplications"
|
|
297
|
+
],
|
|
298
|
+
"flags": {
|
|
299
|
+
"json": {
|
|
300
|
+
"description": "Format output as json.",
|
|
301
|
+
"helpGroup": "GLOBAL",
|
|
302
|
+
"name": "json",
|
|
303
|
+
"allowNo": false,
|
|
304
|
+
"type": "boolean"
|
|
305
|
+
},
|
|
306
|
+
"flags-dir": {
|
|
307
|
+
"helpGroup": "GLOBAL",
|
|
308
|
+
"name": "flags-dir",
|
|
309
|
+
"summary": "Import flag values from a directory.",
|
|
310
|
+
"hasDynamicHelp": false,
|
|
311
|
+
"multiple": false,
|
|
312
|
+
"type": "option"
|
|
313
|
+
},
|
|
314
|
+
"name": {
|
|
315
|
+
"char": "n",
|
|
316
|
+
"description": "This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.",
|
|
317
|
+
"name": "name",
|
|
318
|
+
"required": true,
|
|
319
|
+
"summary": "Name of the generated web application.",
|
|
320
|
+
"hasDynamicHelp": false,
|
|
321
|
+
"multiple": false,
|
|
322
|
+
"type": "option"
|
|
323
|
+
},
|
|
324
|
+
"template": {
|
|
325
|
+
"char": "t",
|
|
326
|
+
"description": "Supplied parameter values or default values are filled into a copy of the template.",
|
|
327
|
+
"name": "template",
|
|
328
|
+
"summary": "Template to use for file creation.",
|
|
329
|
+
"default": "default",
|
|
330
|
+
"hasDynamicHelp": false,
|
|
331
|
+
"multiple": false,
|
|
332
|
+
"options": [
|
|
333
|
+
"default",
|
|
334
|
+
"reactbasic"
|
|
335
|
+
],
|
|
336
|
+
"type": "option"
|
|
337
|
+
},
|
|
338
|
+
"label": {
|
|
339
|
+
"char": "l",
|
|
340
|
+
"description": "If not specified, the label is derived from the name.",
|
|
341
|
+
"name": "label",
|
|
342
|
+
"summary": "Master label for the web application.",
|
|
343
|
+
"hasDynamicHelp": false,
|
|
344
|
+
"multiple": false,
|
|
345
|
+
"type": "option"
|
|
346
|
+
},
|
|
347
|
+
"output-dir": {
|
|
348
|
+
"char": "d",
|
|
349
|
+
"description": "The location can be an absolute path or relative to the current working directory. If not specified, the command reads your sfdx-project.json and defaults to the webApplications directory within your default package directory. When running outside a Salesforce DX project, defaults to the current directory.",
|
|
350
|
+
"name": "output-dir",
|
|
351
|
+
"summary": "Directory for saving the created files.",
|
|
352
|
+
"hasDynamicHelp": false,
|
|
353
|
+
"multiple": false,
|
|
354
|
+
"type": "option"
|
|
355
|
+
},
|
|
356
|
+
"api-version": {
|
|
357
|
+
"description": "Override the api version used for api requests made by this command",
|
|
358
|
+
"name": "api-version",
|
|
359
|
+
"hasDynamicHelp": false,
|
|
360
|
+
"multiple": false,
|
|
361
|
+
"type": "option"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"hasDynamicHelp": false,
|
|
365
|
+
"hidden": true,
|
|
366
|
+
"hiddenAliases": [],
|
|
367
|
+
"id": "webapp:generate",
|
|
368
|
+
"pluginAlias": "@salesforce/plugin-templates",
|
|
369
|
+
"pluginName": "@salesforce/plugin-templates",
|
|
370
|
+
"pluginType": "core",
|
|
371
|
+
"strict": true,
|
|
372
|
+
"summary": "Generate a web application.",
|
|
373
|
+
"enableJsonFlag": true,
|
|
374
|
+
"isESM": true,
|
|
375
|
+
"relativePath": [
|
|
376
|
+
"lib",
|
|
377
|
+
"commands",
|
|
378
|
+
"webapp",
|
|
379
|
+
"generate.js"
|
|
380
|
+
],
|
|
381
|
+
"aliasPermutations": [],
|
|
382
|
+
"permutations": [
|
|
383
|
+
"webapp:generate",
|
|
384
|
+
"generate:webapp"
|
|
385
|
+
]
|
|
386
|
+
},
|
|
289
387
|
"analytics:generate:template": {
|
|
290
388
|
"aliases": [
|
|
291
389
|
"force:analytics:template:create"
|
|
@@ -1806,5 +1904,5 @@
|
|
|
1806
1904
|
]
|
|
1807
1905
|
}
|
|
1808
1906
|
},
|
|
1809
|
-
"version": "56.
|
|
1907
|
+
"version": "56.4.1"
|
|
1810
1908
|
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-templates",
|
|
3
3
|
"description": "Commands to create metadata from a default or custom template",
|
|
4
|
-
"version": "56.
|
|
4
|
+
"version": "56.4.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/salesforcecli/plugin-templates/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@salesforce/core": "^8.24.0",
|
|
9
9
|
"@salesforce/sf-plugins-core": "^12",
|
|
10
|
-
"@salesforce/templates": "^
|
|
10
|
+
"@salesforce/templates": "^65.4.1"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@oclif/plugin-command-snapshot": "^5.3.8",
|
|
14
14
|
"@salesforce/cli-plugins-testkit": "^5.3.41",
|
|
15
15
|
"@salesforce/dev-scripts": "^11.0.4",
|
|
16
|
-
"@salesforce/plugin-command-reference": "^3.1.
|
|
16
|
+
"@salesforce/plugin-command-reference": "^3.1.79",
|
|
17
17
|
"@types/yeoman-assert": "^3.1.4",
|
|
18
18
|
"eslint-plugin-sf-plugin": "^1.20.33",
|
|
19
|
-
"oclif": "^4.22.
|
|
19
|
+
"oclif": "^4.22.63",
|
|
20
20
|
"ts-node": "^10.9.2",
|
|
21
21
|
"typescript": "^5.9.3",
|
|
22
22
|
"yeoman-assert": "^3.1.1"
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
"exports": "./lib/index.js",
|
|
251
251
|
"type": "module",
|
|
252
252
|
"sfdx": {
|
|
253
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.
|
|
254
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.
|
|
253
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.4.1.crt",
|
|
254
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.4.1.sig"
|
|
255
255
|
}
|
|
256
256
|
}
|