@salesforce/cli 2.0.0-beta.0 → 2.0.0-qa.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.0-beta.0",
2
+ "version": "2.0.0-qa.0",
3
3
  "commands": {
4
4
  "cmdt:generate:field": {
5
5
  "id": "cmdt:generate:field",
@@ -848,14 +848,14 @@
848
848
  "dev:audit:messages": {
849
849
  "id": "dev:audit:messages",
850
850
  "summary": "Audit messages in a plugin's messages directory to locate unused messages and missing messages that have references in source code.",
851
- "description": "Audit messages in a plugin's messages directory to locate unused messages and missing messages that have references in source code.",
852
851
  "strict": true,
853
852
  "pluginName": "@salesforce/plugin-dev",
854
853
  "pluginAlias": "@salesforce/plugin-dev",
855
854
  "pluginType": "jit",
856
855
  "aliases": [],
857
856
  "examples": [
858
- "sf dev audit messages\nsf dev audit messages --json\nsf dev audit messages --messages-dir ./messages --source-dir ./src"
857
+ "Audit messages using default directories:\n<%= config.bin %> <%= command.id %>",
858
+ "Audit messages in the \"messages\" directory in the current working directory; the plugin's source directory is in \"src\":\n<%= config.bin %> <%= command.id %> --messages-dir ./messages --source-dir ./src"
859
859
  ],
860
860
  "flags": {
861
861
  "json": {
@@ -869,8 +869,7 @@
869
869
  "name": "project-dir",
870
870
  "type": "option",
871
871
  "char": "p",
872
- "summary": "Location project where messages are to be audited.",
873
- "description": "The project directory.",
872
+ "summary": "Location of the project where messages are to be audited.",
874
873
  "multiple": false,
875
874
  "default": ".",
876
875
  "aliases": [
@@ -881,8 +880,8 @@
881
880
  "name": "messages-dir",
882
881
  "type": "option",
883
882
  "char": "m",
884
- "summary": "Location of the message bundle directory.",
885
- "description": "The directory that holds the message bundle files. The default is the messages directory in the current working directory.",
883
+ "summary": "Directory that contains the plugin's message files.",
884
+ "description": "The default is the \"messages\" directory in the current working directory.",
886
885
  "multiple": false,
887
886
  "default": "messages",
888
887
  "aliases": [
@@ -893,8 +892,8 @@
893
892
  "name": "source-dir",
894
893
  "type": "option",
895
894
  "char": "s",
896
- "summary": "Location of the plugin's source code.",
897
- "description": "The directory that holds the plugin's source code. The default is the src directory in the current working directory.",
895
+ "summary": "Directory that contains the plugin's source code.",
896
+ "description": "The default is the \"src\" directory in the current working directory.",
898
897
  "multiple": false,
899
898
  "default": "src",
900
899
  "aliases": [
@@ -906,15 +905,15 @@
906
905
  },
907
906
  "dev:configure:repo": {
908
907
  "id": "dev:configure:repo",
909
- "summary": "Configure github repo for Actions pipeline.",
910
- "description": "Sets up labels and exempts the CLI bot for branch protection and PR rules",
908
+ "summary": "Configure a GitHub repo for the GitHub Actions pipeline.",
909
+ "description": "Sets up labels and exempts the CLI bot for branch protection and PR rules.",
911
910
  "strict": true,
912
911
  "pluginName": "@salesforce/plugin-dev",
913
912
  "pluginAlias": "@salesforce/plugin-dev",
914
913
  "pluginType": "jit",
915
914
  "aliases": [],
916
915
  "examples": [
917
- "<%= config.bin %> <%= command.id %> -r salesforcecli/testPackageRelease"
916
+ "Configure the repo \"testPackageRelease\", with owner \"salesforcecli\", for GitHub Actions.\n<%= config.bin %> <%= command.id %> --repository salesforcecli/testPackageRelease"
918
917
  ],
919
918
  "flags": {
920
919
  "json": {
@@ -928,7 +927,7 @@
928
927
  "name": "repository",
929
928
  "type": "option",
930
929
  "char": "r",
931
- "summary": "The github owner/repo",
930
+ "summary": "GitHub owner/repo for which you want to configure GitHub Actions.",
932
931
  "required": true,
933
932
  "multiple": false
934
933
  },
@@ -936,7 +935,7 @@
936
935
  "name": "dry-run",
937
936
  "type": "boolean",
938
937
  "char": "d",
939
- "summary": "Make no changes",
938
+ "summary": "Make no changes.",
940
939
  "allowNo": false,
941
940
  "aliases": [
942
941
  "dryrun"
@@ -946,7 +945,7 @@
946
945
  "name": "bot",
947
946
  "type": "option",
948
947
  "char": "b",
949
- "summary": "The github login/username for the bot.",
948
+ "summary": "GitHub login/username for the bot.",
950
949
  "multiple": false,
951
950
  "default": "SF-CLI-BOT"
952
951
  }
@@ -955,15 +954,16 @@
955
954
  },
956
955
  "dev:configure:secrets": {
957
956
  "id": "dev:configure:secrets",
958
- "summary": "Ensures a repo has correct access to secrets based on its workflows",
959
- "description": "Inspects a repo's yaml files and verifies that secrets required are available for the repo (either set at the repo level or shared via organization-level secrets).\n\nThis command requires scope:admin permissions to inspect the org secrets and admin access to the repo to inspect the repo secrets",
957
+ "summary": "Ensures a GitHub repo has correct access to secrets based on its workflows.",
958
+ "description": "Inspects a repo's yaml files and verifies that secrets required are available for the repo (either set at the repo level or shared via organization-level secrets).\n\nThis command requires scope:admin permissions to inspect the org secrets and admin access to the repo to inspect the repo secrets.",
960
959
  "strict": true,
961
960
  "pluginName": "@salesforce/plugin-dev",
962
961
  "pluginAlias": "@salesforce/plugin-dev",
963
962
  "pluginType": "jit",
964
963
  "aliases": [],
965
964
  "examples": [
966
- "<%= config.bin %> <%= command.id %> -r salesforcecli/testPackageRelease"
965
+ "Ensure secrets access for the repo \"testPackageRelease\", with owner \"salesforcecli\":",
966
+ "<%= config.bin %> <%= command.id %> --repository salesforcecli/testPackageRelease"
967
967
  ],
968
968
  "flags": {
969
969
  "json": {
@@ -977,7 +977,7 @@
977
977
  "name": "repository",
978
978
  "type": "option",
979
979
  "char": "r",
980
- "summary": "The github owner/repo",
980
+ "summary": "Github owner/repo.",
981
981
  "required": true,
982
982
  "multiple": false
983
983
  },
@@ -985,7 +985,7 @@
985
985
  "name": "dry-run",
986
986
  "type": "boolean",
987
987
  "char": "d",
988
- "summary": "Make no changes",
988
+ "summary": "Make no changes.",
989
989
  "allowNo": false,
990
990
  "aliases": [
991
991
  "dryrun"
@@ -996,15 +996,16 @@
996
996
  },
997
997
  "dev:convert:messages": {
998
998
  "id": "dev:convert:messages",
999
- "summary": "Convert a .json messages file",
999
+ "summary": "Convert a .json messages file into Markdown.",
1000
1000
  "strict": true,
1001
1001
  "pluginName": "@salesforce/plugin-dev",
1002
1002
  "pluginAlias": "@salesforce/plugin-dev",
1003
1003
  "pluginType": "jit",
1004
1004
  "aliases": [],
1005
1005
  "examples": [
1006
- "<%= config.bin %> <%= command.id %> --filename something.json",
1007
- "<%= config.bin %> <%= command.id %> --project-dir ./path/to/plugin --filename something.json"
1006
+ "Convert the my-command.json message file into my-command.md with the standard messages headers:\n<%= config.bin %> <%= command.id %> --filename my-command.json",
1007
+ "Similar to previous example, but specify the plugin project directory:",
1008
+ "<%= config.bin %> <%= command.id %> --project-dir ./path/to/plugin --filename my-command.json"
1008
1009
  ],
1009
1010
  "flags": {
1010
1011
  "json": {
@@ -1018,8 +1019,7 @@
1018
1019
  "name": "project-dir",
1019
1020
  "type": "option",
1020
1021
  "char": "p",
1021
- "summary": "Location of the project whose messages are to be audited.",
1022
- "description": "Location of the project whose messages are to be audited.",
1022
+ "summary": "Location of the project whose messages are to be converted.",
1023
1023
  "multiple": false,
1024
1024
  "default": ".",
1025
1025
  "aliases": [
@@ -1030,7 +1030,7 @@
1030
1030
  "name": "file-name",
1031
1031
  "type": "option",
1032
1032
  "char": "f",
1033
- "summary": "Filename to convert",
1033
+ "summary": "Filename to convert.",
1034
1034
  "required": true,
1035
1035
  "multiple": true,
1036
1036
  "aliases": [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
3
  "description": "The Salesforce CLI",
4
- "version": "2.0.0-beta.0",
4
+ "version": "2.0.0-qa.0",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "sf": "./bin/run",
@@ -17,7 +17,8 @@
17
17
  "/bin",
18
18
  "/dist/**/*.js",
19
19
  "/oclif.manifest.json",
20
- "/npm-shrinkwrap.json"
20
+ "/npm-shrinkwrap.json",
21
+ "/scripts/preinstall.js"
21
22
  ],
22
23
  "keywords": [
23
24
  "oclif",
@@ -27,16 +28,35 @@
27
28
  "license": "BSD-3-Clause",
28
29
  "main": "dist/index.js",
29
30
  "oclif": {
31
+ "additionalVersionFlags": [
32
+ "-v"
33
+ ],
34
+ "additionalHelpFlags": [
35
+ "-h"
36
+ ],
30
37
  "bin": "sf",
31
38
  "binAliases": [
32
39
  "sfdx"
33
40
  ],
34
- "scope": "salesforce",
41
+ "commands": "./dist/commands",
35
42
  "dirname": "sf",
36
- "topicSeparator": " ",
37
43
  "flexibleTaxonomy": true,
38
- "commands": "./dist/commands",
39
44
  "helpClass": "./dist/help/sfHelp.js",
45
+ "hooks": {
46
+ "preupdate": "./dist/hooks/preupdate",
47
+ "command_incomplete": "./dist/hooks/incomplete",
48
+ "plugins:preinstall": "./dist/hooks/pluginsPreinstall.js"
49
+ },
50
+ "info": {
51
+ "releasenotes": {
52
+ "distTagUrl": "https://registry.npmjs.org/-/package/@salesforce/cli/dist-tags",
53
+ "releaseNotesPath": "https://github.com/forcedotcom/cli/tree/main/releasenotes/sf",
54
+ "releaseNotesFilename": "README.md"
55
+ }
56
+ },
57
+ "nsisCustomization": "scripts/nsis.nsi",
58
+ "scope": "salesforce",
59
+ "topicSeparator": " ",
40
60
  "plugins": [
41
61
  "@oclif/plugin-autocomplete",
42
62
  "@oclif/plugin-commands",
@@ -66,13 +86,13 @@
66
86
  "@salesforce/plugin-user"
67
87
  ],
68
88
  "jitPlugins": {
69
- "@salesforce/plugin-custom-metadata": "2.1.15",
70
- "@salesforce/plugin-community": "2.2.10",
71
- "@salesforce/plugin-dev": "0.7.0",
89
+ "@salesforce/plugin-custom-metadata": "2.1.19",
90
+ "@salesforce/plugin-community": "2.2.11",
91
+ "@salesforce/plugin-dev": "0.7.4",
72
92
  "@salesforce/plugin-env": "2.1.8",
73
- "@salesforce/plugin-functions": "1.21.7",
74
- "@salesforce/plugin-packaging": "1.16.7",
75
- "@salesforce/plugin-signups": "1.4.12",
93
+ "@salesforce/plugin-functions": "1.21.8",
94
+ "@salesforce/plugin-packaging": "1.16.10",
95
+ "@salesforce/plugin-signups": "1.4.14",
76
96
  "@salesforce/sfdx-plugin-lwc-test": "1.0.2",
77
97
  "@salesforce/sfdx-scanner": "3.11.0"
78
98
  },
@@ -80,11 +100,6 @@
80
100
  "@oclif/plugin-command-snapshot",
81
101
  "@salesforce/plugin-release-management"
82
102
  ],
83
- "hooks": {
84
- "preupdate": "./dist/hooks/preupdate",
85
- "command_incomplete": "./dist/hooks/incomplete",
86
- "plugins:preinstall": "./dist/hooks/pluginsPreinstall.js"
87
- },
88
103
  "update": {
89
104
  "s3": {
90
105
  "bucket": "dfc-data-production",
@@ -94,57 +109,44 @@
94
109
  "host": "https://developer.salesforce.com"
95
110
  }
96
111
  },
97
- "info": {
98
- "releasenotes": {
99
- "distTagUrl": "https://registry.npmjs.org/-/package/@salesforce/cli/dist-tags",
100
- "releaseNotesPath": "https://github.com/forcedotcom/cli/tree/main/releasenotes/sf",
101
- "releaseNotesFilename": "README.md"
102
- }
103
- },
104
112
  "macos": {
105
113
  "identifier": "com.salesforce.cli"
106
114
  },
107
115
  "windows": {
108
116
  "name": "Salesforce CLI",
109
117
  "keypath": "/tmp/windows-signing.pfx"
110
- },
111
- "additionalVersionFlags": [
112
- "-v"
113
- ],
114
- "additionalHelpFlags": [
115
- "-h"
116
- ]
118
+ }
117
119
  },
118
120
  "dependencies": {
119
- "@oclif/core": "2.8.2",
121
+ "@oclif/core": "^2.8.4",
120
122
  "@oclif/plugin-autocomplete": "2.1.9",
121
123
  "@oclif/plugin-commands": "2.2.14",
122
124
  "@oclif/plugin-help": "5.2.9",
123
125
  "@oclif/plugin-not-found": "2.3.23",
124
- "@oclif/plugin-plugins": "2.4.6",
125
- "@oclif/plugin-search": "0.0.16",
126
- "@oclif/plugin-update": "3.1.12",
126
+ "@oclif/plugin-plugins": "2.4.7",
127
+ "@oclif/plugin-search": "0.0.17",
128
+ "@oclif/plugin-update": "3.1.13",
127
129
  "@oclif/plugin-version": "1.3.3",
128
- "@oclif/plugin-warn-if-update-available": "2.0.35",
130
+ "@oclif/plugin-warn-if-update-available": "2.0.36",
129
131
  "@oclif/plugin-which": "2.2.19",
130
- "@salesforce/core": "3.34.7",
131
- "@salesforce/plugin-apex": "2.2.13",
132
- "@salesforce/plugin-auth": "2.7.12",
133
- "@salesforce/plugin-data": "2.3.10",
134
- "@salesforce/plugin-deploy-retrieve": "1.8.16",
135
- "@salesforce/plugin-info": "2.6.8",
132
+ "@salesforce/core": "3.36.0",
133
+ "@salesforce/plugin-apex": "2.2.15",
134
+ "@salesforce/plugin-auth": "2.7.14",
135
+ "@salesforce/plugin-data": "2.3.14",
136
+ "@salesforce/plugin-deploy-retrieve": "1.8.18",
137
+ "@salesforce/plugin-info": "2.6.10",
136
138
  "@salesforce/plugin-limits": "2.3.13",
137
- "@salesforce/plugin-login": "1.2.5",
138
- "@salesforce/plugin-org": "2.7.1",
139
- "@salesforce/plugin-schema": "2.3.8",
140
- "@salesforce/plugin-settings": "1.4.4",
141
- "@salesforce/plugin-sobject": "0.1.17",
142
- "@salesforce/plugin-source": "2.10.4",
143
- "@salesforce/plugin-telemetry": "2.1.4",
144
- "@salesforce/plugin-templates": "55.4.10",
145
- "@salesforce/plugin-trust": "2.4.10",
146
- "@salesforce/plugin-user": "2.3.8",
147
- "@salesforce/sf-plugins-core": "2.2.9",
139
+ "@salesforce/plugin-login": "1.2.8",
140
+ "@salesforce/plugin-org": "2.7.3",
141
+ "@salesforce/plugin-schema": "2.3.10",
142
+ "@salesforce/plugin-settings": "1.4.6",
143
+ "@salesforce/plugin-sobject": "0.1.18",
144
+ "@salesforce/plugin-source": "2.10.7",
145
+ "@salesforce/plugin-telemetry": "2.2.0",
146
+ "@salesforce/plugin-templates": "55.4.13",
147
+ "@salesforce/plugin-trust": "2.4.12",
148
+ "@salesforce/plugin-user": "2.3.10",
149
+ "@salesforce/sf-plugins-core": "2.4.0",
148
150
  "debug": "^4.3.4",
149
151
  "semver": "^7.3.8",
150
152
  "tslib": "^2.4.1"
@@ -202,6 +204,7 @@
202
204
  "pack:verify": "sf-release cli:tarballs:verify --cli sf --windows-username-buffer 34",
203
205
  "pack:win": "oclif pack:win",
204
206
  "postpack": "rm -f oclif.manifest.json npm-shrinkwrap.json",
207
+ "preinstall": "node ./scripts/preinstall.js",
205
208
  "prepack": "sf-prepack",
206
209
  "prepare": "sf-install && yarn compile && yarn lint",
207
210
  "prepublishOnly": "npm shrinkwrap",
@@ -225,15 +228,15 @@
225
228
  "@oclif/plugin-command-snapshot": "^3.3.0",
226
229
  "@salesforce/dev-config": "^3.1.0",
227
230
  "@salesforce/dev-scripts": "^3.1.1",
228
- "@salesforce/plugin-release-management": "^3.15.2",
231
+ "@salesforce/plugin-release-management": "^3.16.11",
229
232
  "@salesforce/prettier-config": "^0.0.2",
230
233
  "@salesforce/ts-sinon": "^1.4.6",
231
234
  "@types/debug": "^4.1.7",
232
- "@typescript-eslint/eslint-plugin": "^5.58.0",
233
- "@typescript-eslint/parser": "^5.58.0",
234
- "aws-sdk": "^2.1359.0",
235
+ "@typescript-eslint/eslint-plugin": "^5.59.1",
236
+ "@typescript-eslint/parser": "^5.59.1",
237
+ "aws-sdk": "^2.1366.0",
235
238
  "chai": "^4.3.7",
236
- "eslint": "^8.38.0",
239
+ "eslint": "^8.39.0",
237
240
  "eslint-config-oclif": "^3.1",
238
241
  "eslint-config-oclif-typescript": "^0.2.0",
239
242
  "eslint-config-prettier": "^8.7.0",
@@ -247,8 +250,8 @@
247
250
  "husky": "^7.0.4",
248
251
  "mocha": "^9.2.2",
249
252
  "nyc": "^15.1.0",
250
- "oclif": "^3.8.1",
251
- "prettier": "^2.8.5",
253
+ "oclif": "3.9.0-qa.2",
254
+ "prettier": "^2.8.8",
252
255
  "pretty-quick": "^3.1.3",
253
256
  "sinon": "^11.1.2",
254
257
  "ts-node": "^10.9.1",
@@ -0,0 +1,17 @@
1
+ const { execSync } = require('child_process');
2
+
3
+ (() => {
4
+ const testCliNotVersion = (cli, version) => {
5
+ try {
6
+ return execSync(`${cli} --version`).toString('utf-8').includes(version);
7
+ } catch (e) {
8
+ // if cli isn't installed it'll throw, but that's ok for us
9
+ return false;
10
+ }
11
+ };
12
+ // test if sf v1 or sfdx is installed
13
+ if (testCliNotVersion('sfdx', 'sfdx-cli/7.')) {
14
+ // TODO: add a link to the docs
15
+ throw Error('Please uninstall sfdx');
16
+ }
17
+ })();