@salesforce/cli 2.0.0-beta.12 → 2.0.0-beta.13

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.12",
2
+ "version": "2.0.0-beta.13",
3
3
  "commands": {
4
4
  "cmdt:generate:field": {
5
5
  "id": "cmdt:generate:field",
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.12",
4
+ "version": "2.0.0-beta.13",
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",
@@ -31,6 +32,7 @@
31
32
  "binAliases": [
32
33
  "sfdx"
33
34
  ],
35
+ "nsisCustomization": "scripts/nsis.nsi",
34
36
  "scope": "salesforce",
35
37
  "dirname": "sf",
36
38
  "topicSeparator": " ",
@@ -182,7 +184,8 @@
182
184
  ],
183
185
  "resolutions": {
184
186
  "@salesforce/schemas": "1.5.1",
185
- "@salesforce/templates": "57.1.1"
187
+ "@salesforce/templates": "57.1.1",
188
+ "@oclif/core": "2.8.4"
186
189
  },
187
190
  "repository": "salesforcecli/cli",
188
191
  "scripts": {
@@ -202,6 +205,7 @@
202
205
  "pack:verify": "sf-release cli:tarballs:verify --cli sf --windows-username-buffer 34",
203
206
  "pack:win": "oclif pack:win",
204
207
  "postpack": "rm -f oclif.manifest.json npm-shrinkwrap.json",
208
+ "preinstall": "node ./scripts/preinstall.js",
205
209
  "prepack": "sf-prepack",
206
210
  "prepare": "sf-install && yarn compile && yarn lint",
207
211
  "prepublishOnly": "npm shrinkwrap",
@@ -247,7 +251,7 @@
247
251
  "husky": "^7.0.4",
248
252
  "mocha": "^9.2.2",
249
253
  "nyc": "^15.1.0",
250
- "oclif": "^3.8.1",
254
+ "oclif": "^3.9.0",
251
255
  "prettier": "^2.8.5",
252
256
  "pretty-quick": "^3.1.3",
253
257
  "sinon": "^11.1.2",
@@ -0,0 +1,16 @@
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 or sfdx is installed
13
+ if (testCliNotVersion('sfdx', 'sfdx-cli/7.')) {
14
+ throw Error('Please uninstall sfdx');
15
+ }
16
+ })();