@salesforce/cli 2.0.0-beta.30 → 2.0.0-beta.32
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.
|
@@ -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.SFDX_HIDE_RELEASE_NOTES === 'true' || 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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/cli",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.32",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/cli",
|
|
9
|
-
"version": "2.0.0-beta.
|
|
9
|
+
"version": "2.0.0-beta.32",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "BSD-3-Clause",
|
|
12
12
|
"dependencies": {
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"@salesforce/plugin-apex": "2.2.19",
|
|
26
26
|
"@salesforce/plugin-auth": "2.7.15",
|
|
27
27
|
"@salesforce/plugin-data": "2.3.18",
|
|
28
|
-
"@salesforce/plugin-deploy-retrieve": "1.9.
|
|
28
|
+
"@salesforce/plugin-deploy-retrieve": "1.9.2",
|
|
29
29
|
"@salesforce/plugin-info": "2.6.13",
|
|
30
30
|
"@salesforce/plugin-limits": "2.3.15",
|
|
31
31
|
"@salesforce/plugin-login": "1.2.9",
|
|
32
|
-
"@salesforce/plugin-org": "2.9.
|
|
32
|
+
"@salesforce/plugin-org": "2.9.1",
|
|
33
33
|
"@salesforce/plugin-schema": "2.3.10",
|
|
34
34
|
"@salesforce/plugin-settings": "1.4.8",
|
|
35
|
-
"@salesforce/plugin-sobject": "0.1.
|
|
35
|
+
"@salesforce/plugin-sobject": "0.1.20",
|
|
36
36
|
"@salesforce/plugin-source": "2.10.9",
|
|
37
37
|
"@salesforce/plugin-telemetry": "2.2.0",
|
|
38
38
|
"@salesforce/plugin-templates": "55.4.15",
|
|
@@ -9497,9 +9497,9 @@
|
|
|
9497
9497
|
}
|
|
9498
9498
|
},
|
|
9499
9499
|
"node_modules/@salesforce/plugin-deploy-retrieve": {
|
|
9500
|
-
"version": "1.9.
|
|
9501
|
-
"resolved": "https://registry.npmjs.org/@salesforce/plugin-deploy-retrieve/-/plugin-deploy-retrieve-1.9.
|
|
9502
|
-
"integrity": "sha512-
|
|
9500
|
+
"version": "1.9.2",
|
|
9501
|
+
"resolved": "https://registry.npmjs.org/@salesforce/plugin-deploy-retrieve/-/plugin-deploy-retrieve-1.9.2.tgz",
|
|
9502
|
+
"integrity": "sha512-Rv6MPjc4kyVkRaE9y8wEfA3gR18vKuLtthI7YJWHrZf0gqqs0sy6ZccFlUkmz817e9tMzKUpIjbKc8ryTsWNcQ==",
|
|
9503
9503
|
"license": "BSD-3-Clause",
|
|
9504
9504
|
"dependencies": {
|
|
9505
9505
|
"@oclif/core": "^2.8.2",
|
|
@@ -9590,9 +9590,9 @@
|
|
|
9590
9590
|
}
|
|
9591
9591
|
},
|
|
9592
9592
|
"node_modules/@salesforce/plugin-org": {
|
|
9593
|
-
"version": "2.9.
|
|
9594
|
-
"resolved": "https://registry.npmjs.org/@salesforce/plugin-org/-/plugin-org-2.9.
|
|
9595
|
-
"integrity": "sha512-
|
|
9593
|
+
"version": "2.9.1",
|
|
9594
|
+
"resolved": "https://registry.npmjs.org/@salesforce/plugin-org/-/plugin-org-2.9.1.tgz",
|
|
9595
|
+
"integrity": "sha512-0m+CdyqYfTxeOjBJeAyalAL189BvquIqGt4pjug+8RQ+q/VVmZjD7i1e6x9wgwgYbwKbQyLnct0nPJg5CS1Oow==",
|
|
9596
9596
|
"license": "BSD-3-Clause",
|
|
9597
9597
|
"dependencies": {
|
|
9598
9598
|
"@oclif/core": "^2.8.4",
|
|
@@ -9825,9 +9825,9 @@
|
|
|
9825
9825
|
}
|
|
9826
9826
|
},
|
|
9827
9827
|
"node_modules/@salesforce/plugin-sobject": {
|
|
9828
|
-
"version": "0.1.
|
|
9829
|
-
"resolved": "https://registry.npmjs.org/@salesforce/plugin-sobject/-/plugin-sobject-0.1.
|
|
9830
|
-
"integrity": "sha512-
|
|
9828
|
+
"version": "0.1.20",
|
|
9829
|
+
"resolved": "https://registry.npmjs.org/@salesforce/plugin-sobject/-/plugin-sobject-0.1.20.tgz",
|
|
9830
|
+
"integrity": "sha512-UPj2NEf2E+3sq2OzIyJoqhqR/oehQu2FECg+uH4YaS8dZySOM/mYGMxBnqQYktnTmxN2sWPP/6gozUU7ajy8Ow==",
|
|
9831
9831
|
"license": "BSD-3-Clause",
|
|
9832
9832
|
"dependencies": {
|
|
9833
9833
|
"@oclif/core": "^2.8.2",
|
package/oclif.manifest.json
CHANGED
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.
|
|
4
|
+
"version": "2.0.0-beta.32",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"sf": "./bin/run",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"/dist/**/*.js",
|
|
19
19
|
"/oclif.manifest.json",
|
|
20
20
|
"/npm-shrinkwrap.json",
|
|
21
|
-
"/scripts/preinstall.js"
|
|
21
|
+
"/scripts/preinstall.js",
|
|
22
|
+
"/scripts/post-install-release-notes.js"
|
|
22
23
|
],
|
|
23
24
|
"keywords": [
|
|
24
25
|
"oclif",
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
"@salesforce/plugin-custom-metadata": "2.1.22",
|
|
72
73
|
"@salesforce/plugin-community": "2.2.11",
|
|
73
74
|
"@salesforce/plugin-dev": "0.7.7",
|
|
74
|
-
"@salesforce/plugin-env": "2.1.
|
|
75
|
+
"@salesforce/plugin-env": "2.1.9",
|
|
75
76
|
"@salesforce/plugin-functions": "1.21.9",
|
|
76
77
|
"@salesforce/plugin-packaging": "1.17.1",
|
|
77
78
|
"@salesforce/plugin-signups": "1.4.18",
|
|
@@ -85,7 +86,8 @@
|
|
|
85
86
|
"hooks": {
|
|
86
87
|
"preupdate": "./dist/hooks/preupdate",
|
|
87
88
|
"command_incomplete": "./dist/hooks/incomplete",
|
|
88
|
-
"plugins:preinstall": "./dist/hooks/pluginsPreinstall.js"
|
|
89
|
+
"plugins:preinstall": "./dist/hooks/pluginsPreinstall.js",
|
|
90
|
+
"update": "./dist/hooks/display-release-notes.js"
|
|
89
91
|
},
|
|
90
92
|
"update": {
|
|
91
93
|
"s3": {
|
|
@@ -133,14 +135,14 @@
|
|
|
133
135
|
"@salesforce/plugin-apex": "2.2.19",
|
|
134
136
|
"@salesforce/plugin-auth": "2.7.15",
|
|
135
137
|
"@salesforce/plugin-data": "2.3.18",
|
|
136
|
-
"@salesforce/plugin-deploy-retrieve": "1.9.
|
|
138
|
+
"@salesforce/plugin-deploy-retrieve": "1.9.2",
|
|
137
139
|
"@salesforce/plugin-info": "2.6.13",
|
|
138
140
|
"@salesforce/plugin-limits": "2.3.15",
|
|
139
141
|
"@salesforce/plugin-login": "1.2.9",
|
|
140
|
-
"@salesforce/plugin-org": "2.9.
|
|
142
|
+
"@salesforce/plugin-org": "2.9.1",
|
|
141
143
|
"@salesforce/plugin-schema": "2.3.10",
|
|
142
144
|
"@salesforce/plugin-settings": "1.4.8",
|
|
143
|
-
"@salesforce/plugin-sobject": "0.1.
|
|
145
|
+
"@salesforce/plugin-sobject": "0.1.20",
|
|
144
146
|
"@salesforce/plugin-source": "2.10.9",
|
|
145
147
|
"@salesforce/plugin-telemetry": "2.2.0",
|
|
146
148
|
"@salesforce/plugin-templates": "55.4.15",
|
|
@@ -206,6 +208,7 @@
|
|
|
206
208
|
"pack:win": "oclif pack:win",
|
|
207
209
|
"postpack": "rm -f oclif.manifest.json npm-shrinkwrap.json",
|
|
208
210
|
"preinstall": "node ./scripts/preinstall.js",
|
|
211
|
+
"postinstall": "node ./scripts/post-install-release-notes.js",
|
|
209
212
|
"prepack": "sf-prepack",
|
|
210
213
|
"prepare": "sf-install && yarn compile && yarn lint",
|
|
211
214
|
"prepublishOnly": "npm shrinkwrap",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { spawn } = require('child_process');
|
|
4
|
+
const { join } = require('path');
|
|
5
|
+
|
|
6
|
+
if (process.env.SFDX_HIDE_RELEASE_NOTES === 'true' || process.env.SF_HIDE_RELEASE_NOTES === 'true') process.exit(0);
|
|
7
|
+
|
|
8
|
+
const logAndExit = (msg) => {
|
|
9
|
+
console.log('NOTE: This error can be ignored in CI and may be silenced in the future');
|
|
10
|
+
console.log('- Set the SF_HIDE_RELEASE_NOTES env var to "true" to skip this script\n');
|
|
11
|
+
console.log(msg.toString());
|
|
12
|
+
|
|
13
|
+
process.exit(0);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* NOTE: Please read "Notes about the hook scripts" in this PR before making changes:
|
|
18
|
+
* https://github.com/salesforcecli/sfdx-cli/pull/407
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
var executable = process.platform === 'win32' ? 'run.cmd' : 'run';
|
|
22
|
+
|
|
23
|
+
var cmd = spawn(join(__dirname, '..', 'bin', executable), ['whatsnew', '--hook'], {
|
|
24
|
+
stdio: ['ignore', 'inherit', 'pipe'],
|
|
25
|
+
timeout: 10000,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
cmd.stderr.on('data', (error) => {
|
|
29
|
+
logAndExit(error);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
cmd.on('error', (error) => {
|
|
33
|
+
logAndExit(error);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// 'exit' fires whether or not the stream are finished
|
|
37
|
+
cmd.on('exit', (code) => {
|
|
38
|
+
process.exit(0);
|
|
39
|
+
});
|