@salesforce/plugin-deploy-retrieve 1.16.5 → 1.17.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.
package/lib/commands/deploy.d.ts
CHANGED
|
@@ -28,3 +28,4 @@ export default class Deploy extends SfCommand<void> {
|
|
|
28
28
|
selectDeployers(deployers: Deployer[]): Promise<Deployer[]>;
|
|
29
29
|
checkForHookFailures(hookResults: Hook.Result<Deployer[]>): void;
|
|
30
30
|
}
|
|
31
|
+
export declare const writeJson: (filename: string, data: Record<string, Deployer.Options>) => Promise<void>;
|
package/lib/commands/deploy.js
CHANGED
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/* eslint-disable class-methods-use-this */
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.DEPLOY_OPTIONS_FILE = void 0;
|
|
10
|
+
exports.writeJson = exports.DEPLOY_OPTIONS_FILE = void 0;
|
|
11
11
|
const os_1 = require("os");
|
|
12
|
+
const promises_1 = require("node:fs/promises");
|
|
13
|
+
const node_fs_1 = require("node:fs");
|
|
12
14
|
const core_1 = require("@salesforce/core");
|
|
13
|
-
const fs_extra_1 = require("fs-extra");
|
|
14
15
|
const kit_1 = require("@salesforce/kit");
|
|
15
16
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
16
17
|
const shelljs_1 = require("shelljs");
|
|
@@ -51,7 +52,7 @@ class Deploy extends sf_plugins_core_1.SfCommand {
|
|
|
51
52
|
deployOptions[deployer.getName()] = await deployer.setup(flags, opts);
|
|
52
53
|
}
|
|
53
54
|
if (flags.interactive && (await this.askToSave())) {
|
|
54
|
-
await (0,
|
|
55
|
+
await (0, exports.writeJson)(exports.DEPLOY_OPTIONS_FILE, deployOptions);
|
|
55
56
|
this.log();
|
|
56
57
|
this.log(messages.getMessage('DeployOptionsSavedToFile', [exports.DEPLOY_OPTIONS_FILE]));
|
|
57
58
|
if (await this.shouldCommit()) {
|
|
@@ -80,31 +81,35 @@ class Deploy extends sf_plugins_core_1.SfCommand {
|
|
|
80
81
|
* If the deploy file exists, we do not want the command to be interactive. But if the file
|
|
81
82
|
* does not exist then we want to force the command to be interactive.
|
|
82
83
|
*/
|
|
84
|
+
// this used to be async when it was using fs-extra. Presered public api
|
|
85
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
83
86
|
async isInteractive(interactive) {
|
|
84
87
|
if (interactive)
|
|
85
88
|
return true;
|
|
86
|
-
const deployFileExists =
|
|
89
|
+
const deployFileExists = (0, node_fs_1.existsSync)(exports.DEPLOY_OPTIONS_FILE);
|
|
87
90
|
return deployFileExists ? false : true;
|
|
88
91
|
}
|
|
89
92
|
async readOptions() {
|
|
90
|
-
if (
|
|
91
|
-
return (0, kit_1.parseJsonMap)(await (0,
|
|
93
|
+
if ((0, node_fs_1.existsSync)(exports.DEPLOY_OPTIONS_FILE)) {
|
|
94
|
+
return (0, kit_1.parseJsonMap)(await (0, promises_1.readFile)(exports.DEPLOY_OPTIONS_FILE, 'utf8'));
|
|
92
95
|
}
|
|
93
96
|
else {
|
|
94
97
|
return {};
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
100
|
async commit() {
|
|
98
|
-
const gitignore = await (0,
|
|
101
|
+
const gitignore = await (0, promises_1.readFile)('.gitignore', 'utf-8');
|
|
99
102
|
if (!gitignore.includes(exports.DEPLOY_OPTIONS_FILE)) {
|
|
100
103
|
const addition = `${os_1.EOL}${os_1.EOL}# Deploy Options${os_1.EOL}${exports.DEPLOY_OPTIONS_FILE}${os_1.EOL}`;
|
|
101
|
-
await (0,
|
|
104
|
+
await (0, promises_1.writeFile)('.gitignore', `${gitignore}${addition}`);
|
|
102
105
|
}
|
|
103
106
|
(0, shelljs_1.exec)('git add .gitignore', { silent: true });
|
|
104
107
|
(0, shelljs_1.exec)(`git commit -am "Add ${exports.DEPLOY_OPTIONS_FILE} to .gitignore"`, { silent: true });
|
|
105
108
|
}
|
|
109
|
+
// this used to be async when it was using fs-extra. Presered public api
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
106
111
|
async shouldCommit() {
|
|
107
|
-
return (
|
|
112
|
+
return (0, node_fs_1.existsSync)('.git') && (0, node_fs_1.existsSync)('functions');
|
|
108
113
|
}
|
|
109
114
|
async askToSave() {
|
|
110
115
|
const prompter = new sf_plugins_core_1.Prompter();
|
|
@@ -186,4 +191,6 @@ Deploy.flags = {
|
|
|
186
191
|
summary: messages.getMessage('flags.interactive.summary'),
|
|
187
192
|
}),
|
|
188
193
|
};
|
|
194
|
+
const writeJson = async (filename, data) => (0, promises_1.writeFile)(filename, JSON.stringify(data, null, 2));
|
|
195
|
+
exports.writeJson = writeJson;
|
|
189
196
|
//# sourceMappingURL=deploy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,2CAA2C;;;AAE3C,2BAAyB;
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,2CAA2C;;;AAE3C,2BAAyB;AACzB,+CAAuD;AACvD,qCAAqC;AAErC,2CAA4C;AAC5C,yCAAoD;AACpD,iEAQqC;AACrC,qCAA+B;AAG/B,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,QAAQ,CAAC,CAAC;AAE1E,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,MAAqB,MAAO,SAAQ,2BAAe;IAkB1C,KAAK,CAAC,GAAG;QACd,OAAO,CAAC,eAAe,CAAC,IAAI,SAAG,EAAE,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,IAAI,CAAC,CAAC;QAC/E,MAAM,EAAE,KAAK,EAAE,GA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WAAW,EAAE,uBAAK,CAAC,OAAO,CAAC;QACzB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;KAC1D,CAAC;CACH,CAAC;AAiLG,MAAM,SAAS,GAAG,KAAK,EAAE,QAAgB,EAAE,IAAsC,EAAiB,EAAE,CACzG,IAAA,oBAAS,EAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AADxC,QAAA,SAAS,aAC+B"}
|
|
@@ -35,6 +35,10 @@ To deploy multiple metadata components, either set multiple --metadata <name> fl
|
|
|
35
35
|
|
|
36
36
|
<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass
|
|
37
37
|
|
|
38
|
+
- Deploy specific Apex classes that match a pattern; in this example, deploy Apex classes whose names contain the string "MyApex":
|
|
39
|
+
|
|
40
|
+
<%= config.bin %> <%= command.id %> --metadata 'ApexClass:MyApex*'
|
|
41
|
+
|
|
38
42
|
- Deploy all custom objects and Apex classes (both examples are equivalent):
|
|
39
43
|
|
|
40
44
|
<%= config.bin %> <%= command.id %> --metadata CustomObject ApexClass
|
|
@@ -74,7 +78,7 @@ Overrides your default org.
|
|
|
74
78
|
|
|
75
79
|
# flags.metadata.summary
|
|
76
80
|
|
|
77
|
-
Metadata component names to deploy.
|
|
81
|
+
Metadata component names to deploy. Wildcards ( * ) supported as long as you use quotes, such as 'ApexClass:MyClass*'
|
|
78
82
|
|
|
79
83
|
# flags.test-level.summary
|
|
80
84
|
|
|
@@ -35,6 +35,10 @@ To retrieve multiple metadata components, either use multiple --metadata <name>
|
|
|
35
35
|
|
|
36
36
|
<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass
|
|
37
37
|
|
|
38
|
+
- Retrieve specific Apex classes that match a pattern; in this example, retrieve Apex classes whose names contain the string "MyApex":
|
|
39
|
+
|
|
40
|
+
<%= config.bin %> <%= command.id %> --metadata 'ApexClass:MyApex*'
|
|
41
|
+
|
|
38
42
|
- Retrieve all custom objects and Apex classes (both examples are equivalent):
|
|
39
43
|
|
|
40
44
|
<%= config.bin %> <%= command.id %> --metadata CustomObject ApexClass
|
|
@@ -87,7 +91,7 @@ If you specify this parameter, don’t specify --metadata or --source-dir.
|
|
|
87
91
|
|
|
88
92
|
# flags.metadata.summary
|
|
89
93
|
|
|
90
|
-
Metadata component names to retrieve.
|
|
94
|
+
Metadata component names to retrieve. Wildcards ( * ) supported as long as you use quotes, such as 'ApexClass:MyClass*'
|
|
91
95
|
|
|
92
96
|
# flags.package-name.summary
|
|
93
97
|
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.17.0",
|
|
3
3
|
"commands": {
|
|
4
4
|
"deploy": {
|
|
5
5
|
"id": "deploy",
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"char": "d",
|
|
205
205
|
"summary": "Output directory to store the Metadata API–formatted files in.",
|
|
206
206
|
"multiple": false,
|
|
207
|
-
"default": "
|
|
207
|
+
"default": "metadataPackage_1691182421150",
|
|
208
208
|
"deprecateAliases": true,
|
|
209
209
|
"aliases": [
|
|
210
210
|
"outputdir"
|
|
@@ -1106,6 +1106,7 @@
|
|
|
1106
1106
|
"Deploy a specific Apex class and the objects whose source is in a directory (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls path/to/source/objects\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls --source-dir path/to/source/objects",
|
|
1107
1107
|
"Deploy all Apex classes:\n<%= config.bin %> <%= command.id %> --metadata ApexClass",
|
|
1108
1108
|
"Deploy a specific Apex class:\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass",
|
|
1109
|
+
"Deploy specific Apex classes that match a pattern; in this example, deploy Apex classes whose names contain the string \"MyApex\":\n<%= config.bin %> <%= command.id %> --metadata 'ApexClass:MyApex*'",
|
|
1109
1110
|
"Deploy all custom objects and Apex classes (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --metadata CustomObject ApexClass\n<%= config.bin %> <%= command.id %> --metadata CustomObject --metadata ApexClass",
|
|
1110
1111
|
"Deploy all Apex classes and a profile that has a space in its name:\n<%= config.bin %> <%= command.id %> --metadata ApexClass --metadata \"Profile:My Profile\"",
|
|
1111
1112
|
"Deploy all components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml",
|
|
@@ -1204,7 +1205,7 @@
|
|
|
1204
1205
|
"name": "metadata",
|
|
1205
1206
|
"type": "option",
|
|
1206
1207
|
"char": "m",
|
|
1207
|
-
"summary": "Metadata component names to deploy.",
|
|
1208
|
+
"summary": "Metadata component names to deploy. Wildcards ( * ) supported as long as you use quotes, such as 'ApexClass:MyClass*'",
|
|
1208
1209
|
"helpGroup": "Source Format",
|
|
1209
1210
|
"multiple": true,
|
|
1210
1211
|
"exclusive": [
|
|
@@ -2114,6 +2115,7 @@
|
|
|
2114
2115
|
"Retrieve a specific Apex class and the objects whose source is in a directory (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls path/to/source/objects\n<%= config.bin %> <%= command.id %> --source-dir path/to/apex/classes/MyClass.cls --source-dir path/to/source/objects",
|
|
2115
2116
|
"Retrieve all Apex classes:\n<%= config.bin %> <%= command.id %> --metadata ApexClass",
|
|
2116
2117
|
"Retrieve a specific Apex class:\n<%= config.bin %> <%= command.id %> --metadata ApexClass:MyApexClass",
|
|
2118
|
+
"Retrieve specific Apex classes that match a pattern; in this example, retrieve Apex classes whose names contain the string \"MyApex\":\n<%= config.bin %> <%= command.id %> --metadata 'ApexClass:MyApex*'",
|
|
2117
2119
|
"Retrieve all custom objects and Apex classes (both examples are equivalent):\n<%= config.bin %> <%= command.id %> --metadata CustomObject ApexClass\n<%= config.bin %> <%= command.id %> --metadata CustomObject --metadata ApexClass",
|
|
2118
2120
|
"Retrieve all metadata components listed in a manifest:\n<%= config.bin %> <%= command.id %> --manifest path/to/package.xml",
|
|
2119
2121
|
"Retrieve metadata from a package:\n<%= config.bin %> <%= command.id %> --package-name MyPackageName",
|
|
@@ -2166,7 +2168,7 @@
|
|
|
2166
2168
|
"name": "metadata",
|
|
2167
2169
|
"type": "option",
|
|
2168
2170
|
"char": "m",
|
|
2169
|
-
"summary": "Metadata component names to retrieve.",
|
|
2171
|
+
"summary": "Metadata component names to retrieve. Wildcards ( * ) supported as long as you use quotes, such as 'ApexClass:MyClass*'",
|
|
2170
2172
|
"multiple": true,
|
|
2171
2173
|
"exclusive": [
|
|
2172
2174
|
"manifest",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-deploy-retrieve",
|
|
3
3
|
"description": "deploy and retrieve commands for sf",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.17.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"@salesforce/source-deploy-retrieve": "^9.4.0",
|
|
14
14
|
"@salesforce/source-tracking": "^4.2.7",
|
|
15
15
|
"chalk": "^4.1.2",
|
|
16
|
-
"fs-extra": "^10.0.1",
|
|
17
16
|
"shelljs": "^0.8.5",
|
|
18
17
|
"tslib": "^2"
|
|
19
18
|
},
|
|
@@ -32,7 +31,6 @@
|
|
|
32
31
|
"@salesforce/ts-sinon": "1.4.12",
|
|
33
32
|
"@salesforce/ts-types": "^2.0.2",
|
|
34
33
|
"@swc/core": "1.3.39",
|
|
35
|
-
"@types/fs-extra": "^9.0.13",
|
|
36
34
|
"@types/shelljs": "^0.8.12",
|
|
37
35
|
"@typescript-eslint/eslint-plugin": "^5.60.1",
|
|
38
36
|
"@typescript-eslint/parser": "^5.60.1",
|
|
@@ -269,7 +267,7 @@
|
|
|
269
267
|
}
|
|
270
268
|
},
|
|
271
269
|
"sfdx": {
|
|
272
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.
|
|
273
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.
|
|
270
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.17.0.crt",
|
|
271
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.17.0.sig"
|
|
274
272
|
}
|
|
275
273
|
}
|