@salesforce/plugin-templates 56.18.8 → 56.18.12
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/README.md
CHANGED
|
@@ -177,7 +177,7 @@ FLAG DESCRIPTIONS
|
|
|
177
177
|
directory.
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
-
_See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
180
|
+
_See code: [src/commands/template/generate/analytics/template.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/analytics/template.ts)_
|
|
181
181
|
|
|
182
182
|
## `sf template generate apex class`
|
|
183
183
|
|
|
@@ -237,7 +237,7 @@ FLAG DESCRIPTIONS
|
|
|
237
237
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
238
238
|
```
|
|
239
239
|
|
|
240
|
-
_See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
240
|
+
_See code: [src/commands/template/generate/apex/class.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/apex/class.ts)_
|
|
241
241
|
|
|
242
242
|
## `sf template generate apex trigger`
|
|
243
243
|
|
|
@@ -307,7 +307,7 @@ FLAG DESCRIPTIONS
|
|
|
307
307
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
-
_See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
310
|
+
_See code: [src/commands/template/generate/apex/trigger.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/apex/trigger.ts)_
|
|
311
311
|
|
|
312
312
|
## `sf template generate digital-experience site`
|
|
313
313
|
|
|
@@ -361,7 +361,7 @@ FLAG DESCRIPTIONS
|
|
|
361
361
|
project, defaults to the current directory.
|
|
362
362
|
```
|
|
363
363
|
|
|
364
|
-
_See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
364
|
+
_See code: [src/commands/template/generate/digital-experience/site.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/digital-experience/site.ts)_
|
|
365
365
|
|
|
366
366
|
## `sf template generate flexipage`
|
|
367
367
|
|
|
@@ -443,7 +443,7 @@ FLAG DESCRIPTIONS
|
|
|
443
443
|
'Custom_Object__c'. This sets the `sobjectType` field in the FlexiPage metadata.
|
|
444
444
|
```
|
|
445
445
|
|
|
446
|
-
_See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
446
|
+
_See code: [src/commands/template/generate/flexipage/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/flexipage/index.ts)_
|
|
447
447
|
|
|
448
448
|
## `sf template generate lightning app`
|
|
449
449
|
|
|
@@ -501,7 +501,7 @@ FLAG DESCRIPTIONS
|
|
|
501
501
|
field in the DX project's "sfdx-project.json" file.
|
|
502
502
|
```
|
|
503
503
|
|
|
504
|
-
_See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
504
|
+
_See code: [src/commands/template/generate/lightning/app.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/lightning/app.ts)_
|
|
505
505
|
|
|
506
506
|
## `sf template generate lightning component`
|
|
507
507
|
|
|
@@ -578,7 +578,7 @@ FLAG DESCRIPTIONS
|
|
|
578
578
|
field in the DX project's "sfdx-project.json" file.
|
|
579
579
|
```
|
|
580
580
|
|
|
581
|
-
_See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
581
|
+
_See code: [src/commands/template/generate/lightning/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/lightning/component.ts)_
|
|
582
582
|
|
|
583
583
|
## `sf template generate lightning event`
|
|
584
584
|
|
|
@@ -636,7 +636,7 @@ FLAG DESCRIPTIONS
|
|
|
636
636
|
field in the DX project's "sfdx-project.json" file.
|
|
637
637
|
```
|
|
638
638
|
|
|
639
|
-
_See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
639
|
+
_See code: [src/commands/template/generate/lightning/event.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/lightning/event.ts)_
|
|
640
640
|
|
|
641
641
|
## `sf template generate lightning interface`
|
|
642
642
|
|
|
@@ -694,7 +694,7 @@ FLAG DESCRIPTIONS
|
|
|
694
694
|
field in the DX project's "sfdx-project.json" file.
|
|
695
695
|
```
|
|
696
696
|
|
|
697
|
-
_See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
697
|
+
_See code: [src/commands/template/generate/lightning/interface.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/lightning/interface.ts)_
|
|
698
698
|
|
|
699
699
|
## `sf template generate lightning test`
|
|
700
700
|
|
|
@@ -752,7 +752,7 @@ FLAG DESCRIPTIONS
|
|
|
752
752
|
field in the DX project's "sfdx-project.json" file.
|
|
753
753
|
```
|
|
754
754
|
|
|
755
|
-
_See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
755
|
+
_See code: [src/commands/template/generate/lightning/test.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/lightning/test.ts)_
|
|
756
756
|
|
|
757
757
|
## `sf template generate project`
|
|
758
758
|
|
|
@@ -878,7 +878,7 @@ FLAG DESCRIPTIONS
|
|
|
878
878
|
server-side type stripping.
|
|
879
879
|
```
|
|
880
880
|
|
|
881
|
-
_See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
881
|
+
_See code: [src/commands/template/generate/project/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/project/index.ts)_
|
|
882
882
|
|
|
883
883
|
## `sf template generate static-resource`
|
|
884
884
|
|
|
@@ -941,23 +941,23 @@ FLAG DESCRIPTIONS
|
|
|
941
941
|
etc.
|
|
942
942
|
```
|
|
943
943
|
|
|
944
|
-
_See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
944
|
+
_See code: [src/commands/template/generate/static-resource/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/static-resource/index.ts)_
|
|
945
945
|
|
|
946
946
|
## `sf template generate ui-bundle`
|
|
947
947
|
|
|
948
|
-
Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce frameworks, such as React.
|
|
948
|
+
Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce frameworks, such as React or Angular.
|
|
949
949
|
|
|
950
950
|
```
|
|
951
951
|
USAGE
|
|
952
|
-
$ sf template generate ui-bundle -n <value> [--json] [--flags-dir <value>] [-t default|reactbasic] [-l <value>]
|
|
953
|
-
[--api-version <value>]
|
|
952
|
+
$ sf template generate ui-bundle -n <value> [--json] [--flags-dir <value>] [-t default|reactbasic|angularbasic] [-l <value>]
|
|
953
|
+
[-d <value>] [--api-version <value>]
|
|
954
954
|
|
|
955
955
|
FLAGS
|
|
956
956
|
-d, --output-dir=<value> Directory into which the files are created.
|
|
957
957
|
-l, --label=<value> Master label for the UI bundle.
|
|
958
958
|
-n, --name=<value> (required) API name of the generated UI bundle.
|
|
959
959
|
-t, --template=<option> [default: default] Template to use when creating the files for a specific UI framework.
|
|
960
|
-
<options: default|reactbasic>
|
|
960
|
+
<options: default|reactbasic|angularbasic>
|
|
961
961
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
962
962
|
|
|
963
963
|
GLOBAL FLAGS
|
|
@@ -966,7 +966,7 @@ GLOBAL FLAGS
|
|
|
966
966
|
|
|
967
967
|
DESCRIPTION
|
|
968
968
|
Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce
|
|
969
|
-
frameworks, such as React.
|
|
969
|
+
frameworks, such as React or Angular.
|
|
970
970
|
|
|
971
971
|
Salesforce provides native UI frameworks, such as Lighting Web Components (LWC), to build applications that run on the
|
|
972
972
|
Salesforce Platform. But you can also use non-native JavaScript- or TypeScript-based UI frameworks, such as React, to
|
|
@@ -977,8 +977,9 @@ DESCRIPTION
|
|
|
977
977
|
MyUiBundle, then the files are generated into a "uiBundles/MyUiBundle" directory. Use the --output-dir flag to specify
|
|
978
978
|
a different directory.
|
|
979
979
|
|
|
980
|
-
Use the --template flag for generating the files to get started with a
|
|
981
|
-
the README.md file in the generated "uiBundles/<bundlename>" directory for more information about
|
|
980
|
+
Use the --template flag for generating the files to get started with a specific UI framework, such as React or
|
|
981
|
+
Angular. Check out the README.md file in the generated "uiBundles/<bundlename>" directory for more information about
|
|
982
|
+
the template.
|
|
982
983
|
|
|
983
984
|
EXAMPLES
|
|
984
985
|
Generate a UI bundle called MyUiBundle in the current directory:
|
|
@@ -989,6 +990,10 @@ EXAMPLES
|
|
|
989
990
|
|
|
990
991
|
$ sf template generate ui-bundle --name MyReactApp --template reactbasic
|
|
991
992
|
|
|
993
|
+
Generate an Angular-based UI bundle:
|
|
994
|
+
|
|
995
|
+
$ sf template generate ui-bundle --name MyAngularApp --template angularbasic
|
|
996
|
+
|
|
992
997
|
Generate the React-based UI bundle in the "force-app/main/default/uiBundles" directory:
|
|
993
998
|
|
|
994
999
|
$ sf template generate ui-bundle --name MyUiBundle --template reactbasic --output-dir \
|
|
@@ -1020,12 +1025,12 @@ FLAG DESCRIPTIONS
|
|
|
1020
1025
|
This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin
|
|
1021
1026
|
with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.
|
|
1022
1027
|
|
|
1023
|
-
-t, --template=default|reactbasic Template to use when creating the files for a specific UI framework.
|
|
1028
|
+
-t, --template=default|reactbasic|angularbasic Template to use when creating the files for a specific UI framework.
|
|
1024
1029
|
|
|
1025
1030
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
1026
1031
|
```
|
|
1027
1032
|
|
|
1028
|
-
_See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
1033
|
+
_See code: [src/commands/template/generate/ui-bundle/index.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/ui-bundle/index.ts)_
|
|
1029
1034
|
|
|
1030
1035
|
## `sf template generate visualforce component`
|
|
1031
1036
|
|
|
@@ -1082,7 +1087,7 @@ FLAG DESCRIPTIONS
|
|
|
1082
1087
|
Supplied parameter values or default values are filled into a copy of the template.
|
|
1083
1088
|
```
|
|
1084
1089
|
|
|
1085
|
-
_See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
1090
|
+
_See code: [src/commands/template/generate/visualforce/component.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/visualforce/component.ts)_
|
|
1086
1091
|
|
|
1087
1092
|
## `sf template generate visualforce page`
|
|
1088
1093
|
|
|
@@ -1133,6 +1138,6 @@ FLAG DESCRIPTIONS
|
|
|
1133
1138
|
The name can be up to 40 characters and must start with a letter.
|
|
1134
1139
|
```
|
|
1135
1140
|
|
|
1136
|
-
_See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.
|
|
1141
|
+
_See code: [src/commands/template/generate/visualforce/page.ts](https://github.com/salesforcecli/plugin-templates/blob/56.18.12/src/commands/template/generate/visualforce/page.ts)_
|
|
1137
1142
|
|
|
1138
1143
|
<!-- commandsstop -->
|
|
@@ -30,7 +30,7 @@ export default class UiBundleGenerate extends SfCommand {
|
|
|
30
30
|
summary: messages.getMessage('flags.template.summary'),
|
|
31
31
|
description: messages.getMessage('flags.template.description'),
|
|
32
32
|
default: 'default',
|
|
33
|
-
options: ['default', 'reactbasic'],
|
|
33
|
+
options: ['default', 'reactbasic', 'angularbasic'],
|
|
34
34
|
}),
|
|
35
35
|
label: Flags.string({
|
|
36
36
|
char: 'l',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/commands/template/generate/ui-bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAiC,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAExF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,oBAAoB,CAAC,CAAC;AAE7F,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;AAC1C,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,SAAuB;IAC5D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG;QAC7B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;YACjB,IAAI,EAAE,GAAG;YACT,OAAO,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;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce frameworks, such as React.
|
|
3
|
+
Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce frameworks, such as React or Angular.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ Salesforce provides native UI frameworks, such as Lighting Web Components (LWC),
|
|
|
8
8
|
|
|
9
9
|
These non-native UI experiences are defined by the "UIBundle" metadata type in your DX project. Use this command to generate the required DX project structure and files. For example, when you run this command and specify the name MyUiBundle, then the files are generated into a "uiBundles/MyUiBundle" directory. Use the --output-dir flag to specify a different directory.
|
|
10
10
|
|
|
11
|
-
Use the --template flag for generating the files to get started with a
|
|
11
|
+
Use the --template flag for generating the files to get started with a specific UI framework, such as React or Angular. Check out the README.md file in the generated "uiBundles/<bundlename>" directory for more information about the template.
|
|
12
12
|
|
|
13
13
|
# examples
|
|
14
14
|
|
|
@@ -20,6 +20,10 @@ Use the --template flag for generating the files to get started with a speciic U
|
|
|
20
20
|
|
|
21
21
|
<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic
|
|
22
22
|
|
|
23
|
+
- Generate an Angular-based UI bundle:
|
|
24
|
+
|
|
25
|
+
<%= config.bin %> <%= command.id %> --name MyAngularApp --template angularbasic
|
|
26
|
+
|
|
23
27
|
- Generate the React-based UI bundle in the "force-app/main/default/uiBundles" directory:
|
|
24
28
|
|
|
25
29
|
<%= config.bin %> <%= command.id %> --name MyUiBundle --template reactbasic --output-dir force-app/main/default/uiBundles
|
package/oclif.manifest.json
CHANGED
|
@@ -839,197 +839,6 @@
|
|
|
839
839
|
"flexipage:generate:template"
|
|
840
840
|
]
|
|
841
841
|
},
|
|
842
|
-
"template:generate:project": {
|
|
843
|
-
"aliases": [
|
|
844
|
-
"force:project:create",
|
|
845
|
-
"project:generate"
|
|
846
|
-
],
|
|
847
|
-
"args": {},
|
|
848
|
-
"deprecateAliases": true,
|
|
849
|
-
"description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
|
|
850
|
-
"examples": [
|
|
851
|
-
"Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
|
|
852
|
-
"Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
|
|
853
|
-
"Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
|
|
854
|
-
"Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty",
|
|
855
|
-
"Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:\n<%= config.bin %> <%= command.id %> --name mywork --lwc-language typescript"
|
|
856
|
-
],
|
|
857
|
-
"flags": {
|
|
858
|
-
"json": {
|
|
859
|
-
"description": "Format output as json.",
|
|
860
|
-
"helpGroup": "GLOBAL",
|
|
861
|
-
"name": "json",
|
|
862
|
-
"allowNo": false,
|
|
863
|
-
"type": "boolean"
|
|
864
|
-
},
|
|
865
|
-
"flags-dir": {
|
|
866
|
-
"helpGroup": "GLOBAL",
|
|
867
|
-
"name": "flags-dir",
|
|
868
|
-
"summary": "Import flag values from a directory.",
|
|
869
|
-
"hasDynamicHelp": false,
|
|
870
|
-
"multiple": false,
|
|
871
|
-
"type": "option"
|
|
872
|
-
},
|
|
873
|
-
"name": {
|
|
874
|
-
"aliases": [
|
|
875
|
-
"projectname"
|
|
876
|
-
],
|
|
877
|
-
"char": "n",
|
|
878
|
-
"deprecateAliases": true,
|
|
879
|
-
"description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
|
|
880
|
-
"name": "name",
|
|
881
|
-
"required": true,
|
|
882
|
-
"summary": "Name of the generated project.",
|
|
883
|
-
"hasDynamicHelp": false,
|
|
884
|
-
"multiple": false,
|
|
885
|
-
"type": "option"
|
|
886
|
-
},
|
|
887
|
-
"template": {
|
|
888
|
-
"char": "t",
|
|
889
|
-
"description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\nThe reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external UI bundle use cases.\n\nThe agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.",
|
|
890
|
-
"name": "template",
|
|
891
|
-
"summary": "Template to use for project creation.",
|
|
892
|
-
"default": "standard",
|
|
893
|
-
"hasDynamicHelp": false,
|
|
894
|
-
"multiple": false,
|
|
895
|
-
"options": [
|
|
896
|
-
"standard",
|
|
897
|
-
"empty",
|
|
898
|
-
"analytics",
|
|
899
|
-
"reactinternalapp",
|
|
900
|
-
"reactexternalapp",
|
|
901
|
-
"agent"
|
|
902
|
-
],
|
|
903
|
-
"type": "option"
|
|
904
|
-
},
|
|
905
|
-
"output-dir": {
|
|
906
|
-
"aliases": [
|
|
907
|
-
"outputdir"
|
|
908
|
-
],
|
|
909
|
-
"char": "d",
|
|
910
|
-
"deprecateAliases": true,
|
|
911
|
-
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
912
|
-
"name": "output-dir",
|
|
913
|
-
"summary": "Directory for saving the created files.",
|
|
914
|
-
"default": ".",
|
|
915
|
-
"hasDynamicHelp": false,
|
|
916
|
-
"multiple": false,
|
|
917
|
-
"type": "option"
|
|
918
|
-
},
|
|
919
|
-
"namespace": {
|
|
920
|
-
"char": "s",
|
|
921
|
-
"name": "namespace",
|
|
922
|
-
"summary": "Namespace associated with this project and any connected scratch orgs.",
|
|
923
|
-
"default": "",
|
|
924
|
-
"hasDynamicHelp": false,
|
|
925
|
-
"multiple": false,
|
|
926
|
-
"type": "option"
|
|
927
|
-
},
|
|
928
|
-
"default-package-dir": {
|
|
929
|
-
"aliases": [
|
|
930
|
-
"defaultpackagedir"
|
|
931
|
-
],
|
|
932
|
-
"char": "p",
|
|
933
|
-
"deprecateAliases": true,
|
|
934
|
-
"description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
|
|
935
|
-
"name": "default-package-dir",
|
|
936
|
-
"summary": "Default package directory name.",
|
|
937
|
-
"default": "force-app",
|
|
938
|
-
"hasDynamicHelp": false,
|
|
939
|
-
"multiple": false,
|
|
940
|
-
"type": "option"
|
|
941
|
-
},
|
|
942
|
-
"manifest": {
|
|
943
|
-
"char": "x",
|
|
944
|
-
"description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
|
|
945
|
-
"name": "manifest",
|
|
946
|
-
"summary": "Generate a manifest (package.xml) for change-set based development.",
|
|
947
|
-
"allowNo": false,
|
|
948
|
-
"type": "boolean"
|
|
949
|
-
},
|
|
950
|
-
"login-url": {
|
|
951
|
-
"aliases": [
|
|
952
|
-
"loginurl"
|
|
953
|
-
],
|
|
954
|
-
"char": "l",
|
|
955
|
-
"deprecateAliases": true,
|
|
956
|
-
"description": "Normally defaults to https://login.salesforce.com.",
|
|
957
|
-
"hidden": true,
|
|
958
|
-
"name": "login-url",
|
|
959
|
-
"summary": "Salesforce instance login URL.",
|
|
960
|
-
"default": "https://login.salesforce.com",
|
|
961
|
-
"hasDynamicHelp": false,
|
|
962
|
-
"multiple": false,
|
|
963
|
-
"type": "option"
|
|
964
|
-
},
|
|
965
|
-
"lwc-language": {
|
|
966
|
-
"description": "When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). When you deploy the TypeScript-based Lightning Web Components, the TypeScript files are first compiled locally for validation and then the `.ts` files are deployed to your org for server-side type stripping.",
|
|
967
|
-
"name": "lwc-language",
|
|
968
|
-
"summary": "Language of the Lightning Web Components. If not specified, \"javascript\" is used.",
|
|
969
|
-
"hasDynamicHelp": false,
|
|
970
|
-
"multiple": false,
|
|
971
|
-
"options": [
|
|
972
|
-
"javascript",
|
|
973
|
-
"typescript"
|
|
974
|
-
],
|
|
975
|
-
"type": "option"
|
|
976
|
-
},
|
|
977
|
-
"loglevel": {
|
|
978
|
-
"deprecated": {
|
|
979
|
-
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
980
|
-
},
|
|
981
|
-
"hidden": true,
|
|
982
|
-
"name": "loglevel",
|
|
983
|
-
"hasDynamicHelp": false,
|
|
984
|
-
"multiple": false,
|
|
985
|
-
"type": "option"
|
|
986
|
-
},
|
|
987
|
-
"api-version": {
|
|
988
|
-
"description": "Override the api version used for api requests made by this command",
|
|
989
|
-
"name": "api-version",
|
|
990
|
-
"summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
|
|
991
|
-
"hasDynamicHelp": false,
|
|
992
|
-
"multiple": false,
|
|
993
|
-
"type": "option"
|
|
994
|
-
}
|
|
995
|
-
},
|
|
996
|
-
"hasDynamicHelp": false,
|
|
997
|
-
"hiddenAliases": [],
|
|
998
|
-
"id": "template:generate:project",
|
|
999
|
-
"pluginAlias": "@salesforce/plugin-templates",
|
|
1000
|
-
"pluginName": "@salesforce/plugin-templates",
|
|
1001
|
-
"pluginType": "core",
|
|
1002
|
-
"strict": true,
|
|
1003
|
-
"summary": "Generate a Salesforce DX project.",
|
|
1004
|
-
"enableJsonFlag": true,
|
|
1005
|
-
"isESM": true,
|
|
1006
|
-
"relativePath": [
|
|
1007
|
-
"lib",
|
|
1008
|
-
"commands",
|
|
1009
|
-
"template",
|
|
1010
|
-
"generate",
|
|
1011
|
-
"project",
|
|
1012
|
-
"index.js"
|
|
1013
|
-
],
|
|
1014
|
-
"aliasPermutations": [
|
|
1015
|
-
"force:project:create",
|
|
1016
|
-
"project:force:create",
|
|
1017
|
-
"project:create:force",
|
|
1018
|
-
"force:create:project",
|
|
1019
|
-
"create:force:project",
|
|
1020
|
-
"create:project:force",
|
|
1021
|
-
"project:generate",
|
|
1022
|
-
"generate:project"
|
|
1023
|
-
],
|
|
1024
|
-
"permutations": [
|
|
1025
|
-
"template:generate:project",
|
|
1026
|
-
"generate:template:project",
|
|
1027
|
-
"generate:project:template",
|
|
1028
|
-
"template:project:generate",
|
|
1029
|
-
"project:template:generate",
|
|
1030
|
-
"project:generate:template"
|
|
1031
|
-
]
|
|
1032
|
-
},
|
|
1033
842
|
"template:generate:lightning:app": {
|
|
1034
843
|
"aliases": [
|
|
1035
844
|
"force:lightning:app:create",
|
|
@@ -2096,6 +1905,197 @@
|
|
|
2096
1905
|
"test:lightning:generate:template"
|
|
2097
1906
|
]
|
|
2098
1907
|
},
|
|
1908
|
+
"template:generate:project": {
|
|
1909
|
+
"aliases": [
|
|
1910
|
+
"force:project:create",
|
|
1911
|
+
"project:generate"
|
|
1912
|
+
],
|
|
1913
|
+
"args": {},
|
|
1914
|
+
"deprecateAliases": true,
|
|
1915
|
+
"description": "A Salesforce DX project has a specific structure and a configuration file (sfdx-project.json) that identifies the directory as a Salesforce DX project. This command generates the necessary configuration files and directories to get you started.\n\nBy default, the generated sfdx-project.json file sets the sourceApiVersion property to the default API version currently used by Salesforce CLI. To specify a different version, set the apiVersion configuration variable. For example: \"sf config set apiVersion=57.0 --global\".",
|
|
1916
|
+
"examples": [
|
|
1917
|
+
"Generate a project called \"mywork\":\n<%= config.bin %> <%= command.id %> --name mywork",
|
|
1918
|
+
"Similar to previous example, but generate the files in a directory called \"myapp\":\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp",
|
|
1919
|
+
"Similar to prevoius example, but also generate a default package.xml manifest file:\n<%= config.bin %> <%= command.id %> --name mywork --default-package-dir myapp --manifest",
|
|
1920
|
+
"Generate a project with the minimum files and directories:\n<%= config.bin %> <%= command.id %> --name mywork --template empty",
|
|
1921
|
+
"Generate a project in which the Lightning Web Components use TypeScript rather than the default JavaScript:\n<%= config.bin %> <%= command.id %> --name mywork --lwc-language typescript"
|
|
1922
|
+
],
|
|
1923
|
+
"flags": {
|
|
1924
|
+
"json": {
|
|
1925
|
+
"description": "Format output as json.",
|
|
1926
|
+
"helpGroup": "GLOBAL",
|
|
1927
|
+
"name": "json",
|
|
1928
|
+
"allowNo": false,
|
|
1929
|
+
"type": "boolean"
|
|
1930
|
+
},
|
|
1931
|
+
"flags-dir": {
|
|
1932
|
+
"helpGroup": "GLOBAL",
|
|
1933
|
+
"name": "flags-dir",
|
|
1934
|
+
"summary": "Import flag values from a directory.",
|
|
1935
|
+
"hasDynamicHelp": false,
|
|
1936
|
+
"multiple": false,
|
|
1937
|
+
"type": "option"
|
|
1938
|
+
},
|
|
1939
|
+
"name": {
|
|
1940
|
+
"aliases": [
|
|
1941
|
+
"projectname"
|
|
1942
|
+
],
|
|
1943
|
+
"char": "n",
|
|
1944
|
+
"deprecateAliases": true,
|
|
1945
|
+
"description": "Generates a project directory with this name; any valid directory name is accepted. Also sets the \"name\" property in the sfdx-project.json file to this name.",
|
|
1946
|
+
"name": "name",
|
|
1947
|
+
"required": true,
|
|
1948
|
+
"summary": "Name of the generated project.",
|
|
1949
|
+
"hasDynamicHelp": false,
|
|
1950
|
+
"multiple": false,
|
|
1951
|
+
"type": "option"
|
|
1952
|
+
},
|
|
1953
|
+
"template": {
|
|
1954
|
+
"char": "t",
|
|
1955
|
+
"description": "The template determines the sample configuration files and directories that this command generates. For example, the empty template provides these files and directory to get you started.\n\n- .forceignore\n- config/project-scratch-def.json\n- sfdx-project.json\n- package.json\n- force-app (basic source directory structure)\n\nThe standard template provides a complete force-app directory structure so you know where to put your source. It also provides additional files and scripts, especially useful when using Salesforce Extensions for VS Code. For example:\n\n- .gitignore: Use Git for version control.\n- .prettierrc and .prettierignore: Use Prettier to format your Aura components.\n- .vscode/extensions.json: When launched, Visual Studio Code, prompts you to install the recommended extensions for your project.\n- .vscode/launch.json: Configures Replay Debugger.\n- .vscode/settings.json: Additional configuration settings.\n\nThe analytics template provides similar files and the force-app/main/default/waveTemplates directory.\n\nThe reactinternalapp and reactexternalapp templates provide React-based project scaffolding for internal and external UI bundle use cases.\n\nThe agent template provides project scaffolding for building Agentforce agents and includes a sample agent called Local Info Agent.",
|
|
1956
|
+
"name": "template",
|
|
1957
|
+
"summary": "Template to use for project creation.",
|
|
1958
|
+
"default": "standard",
|
|
1959
|
+
"hasDynamicHelp": false,
|
|
1960
|
+
"multiple": false,
|
|
1961
|
+
"options": [
|
|
1962
|
+
"standard",
|
|
1963
|
+
"empty",
|
|
1964
|
+
"analytics",
|
|
1965
|
+
"reactinternalapp",
|
|
1966
|
+
"reactexternalapp",
|
|
1967
|
+
"agent"
|
|
1968
|
+
],
|
|
1969
|
+
"type": "option"
|
|
1970
|
+
},
|
|
1971
|
+
"output-dir": {
|
|
1972
|
+
"aliases": [
|
|
1973
|
+
"outputdir"
|
|
1974
|
+
],
|
|
1975
|
+
"char": "d",
|
|
1976
|
+
"deprecateAliases": true,
|
|
1977
|
+
"description": "The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
1978
|
+
"name": "output-dir",
|
|
1979
|
+
"summary": "Directory for saving the created files.",
|
|
1980
|
+
"default": ".",
|
|
1981
|
+
"hasDynamicHelp": false,
|
|
1982
|
+
"multiple": false,
|
|
1983
|
+
"type": "option"
|
|
1984
|
+
},
|
|
1985
|
+
"namespace": {
|
|
1986
|
+
"char": "s",
|
|
1987
|
+
"name": "namespace",
|
|
1988
|
+
"summary": "Namespace associated with this project and any connected scratch orgs.",
|
|
1989
|
+
"default": "",
|
|
1990
|
+
"hasDynamicHelp": false,
|
|
1991
|
+
"multiple": false,
|
|
1992
|
+
"type": "option"
|
|
1993
|
+
},
|
|
1994
|
+
"default-package-dir": {
|
|
1995
|
+
"aliases": [
|
|
1996
|
+
"defaultpackagedir"
|
|
1997
|
+
],
|
|
1998
|
+
"char": "p",
|
|
1999
|
+
"deprecateAliases": true,
|
|
2000
|
+
"description": "Metadata items such as classes and Lightning bundles are placed inside this folder.",
|
|
2001
|
+
"name": "default-package-dir",
|
|
2002
|
+
"summary": "Default package directory name.",
|
|
2003
|
+
"default": "force-app",
|
|
2004
|
+
"hasDynamicHelp": false,
|
|
2005
|
+
"multiple": false,
|
|
2006
|
+
"type": "option"
|
|
2007
|
+
},
|
|
2008
|
+
"manifest": {
|
|
2009
|
+
"char": "x",
|
|
2010
|
+
"description": "Generates a default manifest (package.xml) for fetching Apex, Visualforce, Lightning components, and static resources.",
|
|
2011
|
+
"name": "manifest",
|
|
2012
|
+
"summary": "Generate a manifest (package.xml) for change-set based development.",
|
|
2013
|
+
"allowNo": false,
|
|
2014
|
+
"type": "boolean"
|
|
2015
|
+
},
|
|
2016
|
+
"login-url": {
|
|
2017
|
+
"aliases": [
|
|
2018
|
+
"loginurl"
|
|
2019
|
+
],
|
|
2020
|
+
"char": "l",
|
|
2021
|
+
"deprecateAliases": true,
|
|
2022
|
+
"description": "Normally defaults to https://login.salesforce.com.",
|
|
2023
|
+
"hidden": true,
|
|
2024
|
+
"name": "login-url",
|
|
2025
|
+
"summary": "Salesforce instance login URL.",
|
|
2026
|
+
"default": "https://login.salesforce.com",
|
|
2027
|
+
"hasDynamicHelp": false,
|
|
2028
|
+
"multiple": false,
|
|
2029
|
+
"type": "option"
|
|
2030
|
+
},
|
|
2031
|
+
"lwc-language": {
|
|
2032
|
+
"description": "When set to `'typescript'`, generates TypeScript configuration files (tsconfig.json, package.json with TypeScript dependencies, and TypeScript-aware ESLint config). When you deploy the TypeScript-based Lightning Web Components, the TypeScript files are first compiled locally for validation and then the `.ts` files are deployed to your org for server-side type stripping.",
|
|
2033
|
+
"name": "lwc-language",
|
|
2034
|
+
"summary": "Language of the Lightning Web Components. If not specified, \"javascript\" is used.",
|
|
2035
|
+
"hasDynamicHelp": false,
|
|
2036
|
+
"multiple": false,
|
|
2037
|
+
"options": [
|
|
2038
|
+
"javascript",
|
|
2039
|
+
"typescript"
|
|
2040
|
+
],
|
|
2041
|
+
"type": "option"
|
|
2042
|
+
},
|
|
2043
|
+
"loglevel": {
|
|
2044
|
+
"deprecated": {
|
|
2045
|
+
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
2046
|
+
},
|
|
2047
|
+
"hidden": true,
|
|
2048
|
+
"name": "loglevel",
|
|
2049
|
+
"hasDynamicHelp": false,
|
|
2050
|
+
"multiple": false,
|
|
2051
|
+
"type": "option"
|
|
2052
|
+
},
|
|
2053
|
+
"api-version": {
|
|
2054
|
+
"description": "Override the api version used for api requests made by this command",
|
|
2055
|
+
"name": "api-version",
|
|
2056
|
+
"summary": "Will set this version as sourceApiVersion in the sfdx-project.json file",
|
|
2057
|
+
"hasDynamicHelp": false,
|
|
2058
|
+
"multiple": false,
|
|
2059
|
+
"type": "option"
|
|
2060
|
+
}
|
|
2061
|
+
},
|
|
2062
|
+
"hasDynamicHelp": false,
|
|
2063
|
+
"hiddenAliases": [],
|
|
2064
|
+
"id": "template:generate:project",
|
|
2065
|
+
"pluginAlias": "@salesforce/plugin-templates",
|
|
2066
|
+
"pluginName": "@salesforce/plugin-templates",
|
|
2067
|
+
"pluginType": "core",
|
|
2068
|
+
"strict": true,
|
|
2069
|
+
"summary": "Generate a Salesforce DX project.",
|
|
2070
|
+
"enableJsonFlag": true,
|
|
2071
|
+
"isESM": true,
|
|
2072
|
+
"relativePath": [
|
|
2073
|
+
"lib",
|
|
2074
|
+
"commands",
|
|
2075
|
+
"template",
|
|
2076
|
+
"generate",
|
|
2077
|
+
"project",
|
|
2078
|
+
"index.js"
|
|
2079
|
+
],
|
|
2080
|
+
"aliasPermutations": [
|
|
2081
|
+
"force:project:create",
|
|
2082
|
+
"project:force:create",
|
|
2083
|
+
"project:create:force",
|
|
2084
|
+
"force:create:project",
|
|
2085
|
+
"create:force:project",
|
|
2086
|
+
"create:project:force",
|
|
2087
|
+
"project:generate",
|
|
2088
|
+
"generate:project"
|
|
2089
|
+
],
|
|
2090
|
+
"permutations": [
|
|
2091
|
+
"template:generate:project",
|
|
2092
|
+
"generate:template:project",
|
|
2093
|
+
"generate:project:template",
|
|
2094
|
+
"template:project:generate",
|
|
2095
|
+
"project:template:generate",
|
|
2096
|
+
"project:generate:template"
|
|
2097
|
+
]
|
|
2098
|
+
},
|
|
2099
2099
|
"template:generate:static-resource": {
|
|
2100
2100
|
"aliases": [
|
|
2101
2101
|
"force:staticresource:create",
|
|
@@ -2228,10 +2228,11 @@
|
|
|
2228
2228
|
"template:generate:ui-bundle": {
|
|
2229
2229
|
"aliases": [],
|
|
2230
2230
|
"args": {},
|
|
2231
|
-
"description": "Salesforce provides native UI frameworks, such as Lighting Web Components (LWC), to build applications that run on the Salesforce Platform. But you can also use non-native JavaScript- or TypeScript-based UI frameworks, such as React, to build a UI experience for the Salesforce Platform and that you can launch from the App Launcher.\n\nThese non-native UI experiences are defined by the \"UIBundle\" metadata type in your DX project. Use this command to generate the required DX project structure and files. For example, when you run this command and specify the name MyUiBundle, then the files are generated into a \"uiBundles/MyUiBundle\" directory. Use the --output-dir flag to specify a different directory.\n\nUse the --template flag for generating the files to get started with a
|
|
2231
|
+
"description": "Salesforce provides native UI frameworks, such as Lighting Web Components (LWC), to build applications that run on the Salesforce Platform. But you can also use non-native JavaScript- or TypeScript-based UI frameworks, such as React, to build a UI experience for the Salesforce Platform and that you can launch from the App Launcher.\n\nThese non-native UI experiences are defined by the \"UIBundle\" metadata type in your DX project. Use this command to generate the required DX project structure and files. For example, when you run this command and specify the name MyUiBundle, then the files are generated into a \"uiBundles/MyUiBundle\" directory. Use the --output-dir flag to specify a different directory.\n\nUse the --template flag for generating the files to get started with a specific UI framework, such as React or Angular. Check out the README.md file in the generated \"uiBundles/<bundlename>\" directory for more information about the template.",
|
|
2232
2232
|
"examples": [
|
|
2233
2233
|
"Generate a UI bundle called MyUiBundle in the current directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle",
|
|
2234
2234
|
"Generate a React-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyReactApp --template reactbasic",
|
|
2235
|
+
"Generate an Angular-based UI bundle:\n<%= config.bin %> <%= command.id %> --name MyAngularApp --template angularbasic",
|
|
2235
2236
|
"Generate the React-based UI bundle in the \"force-app/main/default/uiBundles\" directory:\n<%= config.bin %> <%= command.id %> --name MyUiBundle --template reactbasic --output-dir force-app/main/default/uiBundles"
|
|
2236
2237
|
],
|
|
2237
2238
|
"flags": {
|
|
@@ -2270,7 +2271,8 @@
|
|
|
2270
2271
|
"multiple": false,
|
|
2271
2272
|
"options": [
|
|
2272
2273
|
"default",
|
|
2273
|
-
"reactbasic"
|
|
2274
|
+
"reactbasic",
|
|
2275
|
+
"angularbasic"
|
|
2274
2276
|
],
|
|
2275
2277
|
"type": "option"
|
|
2276
2278
|
},
|
|
@@ -2307,7 +2309,7 @@
|
|
|
2307
2309
|
"pluginName": "@salesforce/plugin-templates",
|
|
2308
2310
|
"pluginType": "core",
|
|
2309
2311
|
"strict": true,
|
|
2310
|
-
"summary": "Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce frameworks, such as React.",
|
|
2312
|
+
"summary": "Generate a UI bundle, which contains the code and metadata to build a UI experience that uses non-native Salesforce frameworks, such as React or Angular.",
|
|
2311
2313
|
"enableJsonFlag": true,
|
|
2312
2314
|
"isESM": true,
|
|
2313
2315
|
"relativePath": [
|
|
@@ -2684,5 +2686,5 @@
|
|
|
2684
2686
|
]
|
|
2685
2687
|
}
|
|
2686
2688
|
},
|
|
2687
|
-
"version": "56.18.
|
|
2689
|
+
"version": "56.18.12"
|
|
2688
2690
|
}
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-templates",
|
|
3
3
|
"description": "Commands to create metadata from a default or custom template",
|
|
4
|
-
"version": "56.18.
|
|
4
|
+
"version": "56.18.12",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/salesforcecli/plugin-templates/issues",
|
|
7
7
|
"enableO11y": true,
|
|
8
8
|
"o11yUploadEndpoint": "https://794testsite.my.site.com/byolwr/webruntime/log/metrics",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@salesforce/core": "^8.31.
|
|
10
|
+
"@salesforce/core": "^8.31.4",
|
|
11
11
|
"@salesforce/sf-plugins-core": "^12",
|
|
12
|
-
"@salesforce/templates": "^66.10.
|
|
12
|
+
"@salesforce/templates": "^66.10.4"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@oclif/plugin-command-snapshot": "^5.3.
|
|
16
|
-
"@salesforce/cli-plugins-testkit": "^5.3.
|
|
15
|
+
"@oclif/plugin-command-snapshot": "^5.3.29",
|
|
16
|
+
"@salesforce/cli-plugins-testkit": "^5.3.62",
|
|
17
17
|
"@salesforce/dev-scripts": "^11.0.4",
|
|
18
|
-
"@salesforce/plugin-command-reference": "^3.1.
|
|
18
|
+
"@salesforce/plugin-command-reference": "^3.1.115",
|
|
19
19
|
"@types/yeoman-assert": "^3.1.4",
|
|
20
20
|
"eslint-plugin-sf-plugin": "^1.20.33",
|
|
21
|
-
"oclif": "^4.23.
|
|
21
|
+
"oclif": "^4.23.21",
|
|
22
22
|
"ts-node": "^10.9.2",
|
|
23
23
|
"typescript": "^5.9.3",
|
|
24
24
|
"yeoman-assert": "^3.1.1"
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
"exports": "./lib/index.js",
|
|
250
250
|
"type": "module",
|
|
251
251
|
"sfdx": {
|
|
252
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.18.
|
|
253
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.18.
|
|
252
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.18.12.crt",
|
|
253
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-templates/56.18.12.sig"
|
|
254
254
|
}
|
|
255
255
|
}
|