@salesforce/cli 2.0.0-qa.8 → 2.0.2
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 +5 -13
- package/dist/flags.js +0 -2
- package/dist/hooks/display-release-notes.js +47 -0
- package/dist/util/env.js +1 -3
- package/npm-shrinkwrap.json +22204 -30854
- package/oclif.manifest.json +161 -60
- package/package.json +65 -61
- package/scripts/post-install-release-notes.js +39 -0
- package/scripts/preinstall.js +16 -0
- package/dist/hooks/preupdate.js +0 -18
package/README.md
CHANGED
|
@@ -5,20 +5,12 @@
|
|
|
5
5
|
[](https://npmjs.org/package/@salesforce/cli)
|
|
6
6
|
[](https://github.com/salesforcecli/cli/blob/master/package.json)
|
|
7
7
|
|
|
8
|
-
<!-- toc -->
|
|
9
|
-
|
|
10
|
-
- [@salesforce/cli](#salesforcecli)
|
|
11
|
-
- [Getting Started](#getting-started)
|
|
12
|
-
- [Feedback](#feedback)
|
|
13
|
-
- [Usage](#usage)
|
|
14
|
-
- [Architecture](#architecture)
|
|
15
|
-
- [Commands](#commands)
|
|
16
|
-
<!-- tocstop -->
|
|
17
8
|
|
|
18
9
|
# Getting Started
|
|
19
10
|
|
|
20
|
-
- Read the [
|
|
21
|
-
-
|
|
11
|
+
- Read the [sf Plugin Developer Guide](https://github.com/salesforcecli/cli/wiki/Quick-Introduction-to-Developing-sf-Plugins) to learn how to develop a `sf` plugin.
|
|
12
|
+
- Are you migrating an `sfdx` plugin to `sf`? Then check out the [migration section](https://github.com/salesforcecli/cli/wiki/Migrate-Plugins-Built-for-sfdx) of the developer guide.
|
|
13
|
+
- Read [this section of the Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_move_to_sf_v2.htm) for easy instructions on how to move from your `sfdx` (v7) installation to `sf` (v2).
|
|
22
14
|
|
|
23
15
|
# Feedback
|
|
24
16
|
|
|
@@ -2401,7 +2393,7 @@ CONFIGURATION VARIABLES
|
|
|
2401
2393
|
instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com. (sfdx only)
|
|
2402
2394
|
|
|
2403
2395
|
ENVIRONMENT VARIABLES
|
|
2404
|
-
|
|
2396
|
+
SF_INSTANCE_URL URL of the Salesforce instance that is hosting your org. Default value is
|
|
2405
2397
|
https://login.salesforce.com. Overrides the instanceUrl configuration value.
|
|
2406
2398
|
```
|
|
2407
2399
|
|
|
@@ -2492,7 +2484,7 @@ CONFIGURATION VARIABLES
|
|
|
2492
2484
|
instanceUrl URL of the Salesforce instance hosting your org. Default: https://login.salesforce.com. (sfdx only)
|
|
2493
2485
|
|
|
2494
2486
|
ENVIRONMENT VARIABLES
|
|
2495
|
-
|
|
2487
|
+
SF_INSTANCE_URL URL of the Salesforce instance that is hosting your org. Default value is
|
|
2496
2488
|
https://login.salesforce.com. Overrides the instanceUrl configuration value.
|
|
2497
2489
|
```
|
|
2498
2490
|
|
package/dist/flags.js
CHANGED
|
@@ -20,8 +20,6 @@ function preprocessCliFlags(process) {
|
|
|
20
20
|
process.env.DEBUG = debug;
|
|
21
21
|
process.env.SF_DEBUG = '1';
|
|
22
22
|
process.env.SF_ENV = 'development';
|
|
23
|
-
process.env.SFDX_DEBUG = '1';
|
|
24
|
-
process.env.SFDX_ENV = 'development';
|
|
25
23
|
// need to calculate indexOf --dev-debug here because it might've changed based on --debug-filter
|
|
26
24
|
process.argv.splice(process.argv.indexOf('--dev-debug'), 1);
|
|
27
25
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2021, salesforce.com, inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Licensed under the BSD 3-Clause license.
|
|
6
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const path_1 = require("path");
|
|
10
|
+
const child_process_1 = require("child_process");
|
|
11
|
+
const core_1 = require("@oclif/core");
|
|
12
|
+
const logError = (msg) => {
|
|
13
|
+
core_1.ux.log('NOTE: This error can be ignored in CI and may be silenced in the future');
|
|
14
|
+
core_1.ux.log('- Set the SF_HIDE_RELEASE_NOTES env var to "true" to skip this script\n');
|
|
15
|
+
core_1.ux.log(msg.toString());
|
|
16
|
+
};
|
|
17
|
+
/*
|
|
18
|
+
* NOTE: Please read "Notes about the hook scripts" in this PR before making changes:
|
|
19
|
+
* https://github.com/salesforcecli/sfdx-cli/pull/407
|
|
20
|
+
*/
|
|
21
|
+
const hook = async () => new Promise((resolve) => {
|
|
22
|
+
if (process.env.SF_HIDE_RELEASE_NOTES === 'true') {
|
|
23
|
+
resolve();
|
|
24
|
+
}
|
|
25
|
+
const executable = process.platform === 'win32' ? 'run.cmd' : 'run';
|
|
26
|
+
const cmd = (0, child_process_1.spawn)((0, path_1.join)(__dirname, '..', '..', 'bin', executable), ['whatsnew', '--hook'], {
|
|
27
|
+
stdio: ['ignore', 'inherit', 'pipe'],
|
|
28
|
+
timeout: 10000,
|
|
29
|
+
});
|
|
30
|
+
cmd.stderr.on('data', (error) => {
|
|
31
|
+
logError(error);
|
|
32
|
+
resolve();
|
|
33
|
+
});
|
|
34
|
+
cmd.on('error', (error) => {
|
|
35
|
+
logError(error);
|
|
36
|
+
resolve();
|
|
37
|
+
});
|
|
38
|
+
// 'exit' fires whether or not the stream are finished
|
|
39
|
+
cmd.on('exit', () => {
|
|
40
|
+
resolve();
|
|
41
|
+
});
|
|
42
|
+
cmd.on('close', () => {
|
|
43
|
+
resolve();
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
exports.default = hook;
|
|
47
|
+
//# sourceMappingURL=display-release-notes.js.map
|
package/dist/util/env.js
CHANGED
|
@@ -32,8 +32,7 @@ class Env extends core_1.EnvVars {
|
|
|
32
32
|
return (this.getString(Env.SF_ENV, 'production') || '').toLowerCase() === 'demo';
|
|
33
33
|
}
|
|
34
34
|
isInstaller() {
|
|
35
|
-
|
|
36
|
-
return this.getBoolean(Env.SFDX_INSTALLER);
|
|
35
|
+
return this.getBoolean(Env.SF_INSTALLER);
|
|
37
36
|
}
|
|
38
37
|
getNpmRegistryOverride() {
|
|
39
38
|
return this.getString(Env.SF_NPM_REGISTRY);
|
|
@@ -57,7 +56,6 @@ Env.SF_AUTOUPDATE_DISABLE = 'SF_AUTOUPDATE_DISABLE';
|
|
|
57
56
|
Env.SF_DISABLE_AUTOUPDATE = 'SF_DISABLE_AUTOUPDATE';
|
|
58
57
|
Env.SF_ENV = 'SF_ENV';
|
|
59
58
|
Env.SF_INSTALLER = 'SF_INSTALLER';
|
|
60
|
-
Env.SFDX_INSTALLER = 'SFDX_INSTALLER';
|
|
61
59
|
Env.SF_NPM_REGISTRY = 'SF_NPM_REGISTRY';
|
|
62
60
|
Env.SF_UPDATE_INSTRUCTIONS = 'SF_UPDATE_INSTRUCTIONS';
|
|
63
61
|
exports.default = new Env();
|