@salesforce/plugin-deploy-retrieve 3.15.22 → 3.16.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/README.md +17 -17
- package/lib/formatters/testResultsFormatter.d.ts +2 -1
- package/lib/formatters/testResultsFormatter.js +8 -3
- package/lib/formatters/testResultsFormatter.js.map +1 -1
- package/lib/utils/deployStages.d.ts +6 -0
- package/lib/utils/deployStages.js +61 -2
- package/lib/utils/deployStages.js.map +1 -1
- package/lib/utils/types.d.ts +1 -0
- package/lib/utils/types.js +3 -0
- package/lib/utils/types.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ FLAG DESCRIPTIONS
|
|
|
141
141
|
If you specify this flag, don’t specify --metadata or --source-dir.
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
_See code: [src/commands/project/convert/mdapi.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
144
|
+
_See code: [src/commands/project/convert/mdapi.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/convert/mdapi.ts)_
|
|
145
145
|
|
|
146
146
|
## `sf project convert source`
|
|
147
147
|
|
|
@@ -214,7 +214,7 @@ FLAG DESCRIPTIONS
|
|
|
214
214
|
Override the api version used for api requests made by this command
|
|
215
215
|
```
|
|
216
216
|
|
|
217
|
-
_See code: [src/commands/project/convert/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
217
|
+
_See code: [src/commands/project/convert/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/convert/source.ts)_
|
|
218
218
|
|
|
219
219
|
## `sf project convert source-behavior`
|
|
220
220
|
|
|
@@ -272,7 +272,7 @@ EXAMPLES
|
|
|
272
272
|
$ sf project convert source-behavior --behavior decomposePermissionSetBeta --dry-run --preserve-temp-dir
|
|
273
273
|
```
|
|
274
274
|
|
|
275
|
-
_See code: [src/commands/project/convert/source-behavior.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
275
|
+
_See code: [src/commands/project/convert/source-behavior.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/convert/source-behavior.ts)_
|
|
276
276
|
|
|
277
277
|
## `sf project delete source`
|
|
278
278
|
|
|
@@ -412,7 +412,7 @@ FLAG DESCRIPTIONS
|
|
|
412
412
|
- Separate the test names with spaces: --tests Test1 Test2 "Test With Space"
|
|
413
413
|
```
|
|
414
414
|
|
|
415
|
-
_See code: [src/commands/project/delete/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
415
|
+
_See code: [src/commands/project/delete/source.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/delete/source.ts)_
|
|
416
416
|
|
|
417
417
|
## `sf project delete tracking`
|
|
418
418
|
|
|
@@ -449,7 +449,7 @@ EXAMPLES
|
|
|
449
449
|
$ sf project delete tracking --target-org my-scratch
|
|
450
450
|
```
|
|
451
451
|
|
|
452
|
-
_See code: [src/commands/project/delete/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
452
|
+
_See code: [src/commands/project/delete/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/delete/tracking.ts)_
|
|
453
453
|
|
|
454
454
|
## `sf project deploy cancel`
|
|
455
455
|
|
|
@@ -521,7 +521,7 @@ FLAG DESCRIPTIONS
|
|
|
521
521
|
project deploy report".
|
|
522
522
|
```
|
|
523
523
|
|
|
524
|
-
_See code: [src/commands/project/deploy/cancel.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
524
|
+
_See code: [src/commands/project/deploy/cancel.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/deploy/cancel.ts)_
|
|
525
525
|
|
|
526
526
|
## `sf project deploy preview`
|
|
527
527
|
|
|
@@ -604,7 +604,7 @@ FLAG DESCRIPTIONS
|
|
|
604
604
|
All child components are included. If you specify this flag, don’t specify --metadata or --source-dir.
|
|
605
605
|
```
|
|
606
606
|
|
|
607
|
-
_See code: [src/commands/project/deploy/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
607
|
+
_See code: [src/commands/project/deploy/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/deploy/preview.ts)_
|
|
608
608
|
|
|
609
609
|
## `sf project deploy quick`
|
|
610
610
|
|
|
@@ -688,7 +688,7 @@ FLAG DESCRIPTIONS
|
|
|
688
688
|
deploy report".
|
|
689
689
|
```
|
|
690
690
|
|
|
691
|
-
_See code: [src/commands/project/deploy/quick.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
691
|
+
_See code: [src/commands/project/deploy/quick.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/deploy/quick.ts)_
|
|
692
692
|
|
|
693
693
|
## `sf project deploy report`
|
|
694
694
|
|
|
@@ -780,7 +780,7 @@ FLAG DESCRIPTIONS
|
|
|
780
780
|
--coverage-formatters lcov --coverage-formatters clover
|
|
781
781
|
```
|
|
782
782
|
|
|
783
|
-
_See code: [src/commands/project/deploy/report.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
783
|
+
_See code: [src/commands/project/deploy/report.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/deploy/report.ts)_
|
|
784
784
|
|
|
785
785
|
## `sf project deploy resume`
|
|
786
786
|
|
|
@@ -865,7 +865,7 @@ FLAG DESCRIPTIONS
|
|
|
865
865
|
--coverage-formatters lcov --coverage-formatters clover
|
|
866
866
|
```
|
|
867
867
|
|
|
868
|
-
_See code: [src/commands/project/deploy/resume.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
868
|
+
_See code: [src/commands/project/deploy/resume.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/deploy/resume.ts)_
|
|
869
869
|
|
|
870
870
|
## `sf project deploy start`
|
|
871
871
|
|
|
@@ -1101,7 +1101,7 @@ FLAG DESCRIPTIONS
|
|
|
1101
1101
|
--coverage-formatters lcov --coverage-formatters clover
|
|
1102
1102
|
```
|
|
1103
1103
|
|
|
1104
|
-
_See code: [src/commands/project/deploy/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
1104
|
+
_See code: [src/commands/project/deploy/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/deploy/start.ts)_
|
|
1105
1105
|
|
|
1106
1106
|
## `sf project deploy validate`
|
|
1107
1107
|
|
|
@@ -1274,7 +1274,7 @@ FLAG DESCRIPTIONS
|
|
|
1274
1274
|
--coverage-formatters lcov --coverage-formatters clover
|
|
1275
1275
|
```
|
|
1276
1276
|
|
|
1277
|
-
_See code: [src/commands/project/deploy/validate.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
1277
|
+
_See code: [src/commands/project/deploy/validate.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/deploy/validate.ts)_
|
|
1278
1278
|
|
|
1279
1279
|
## `sf project generate manifest`
|
|
1280
1280
|
|
|
@@ -1351,7 +1351,7 @@ EXAMPLES
|
|
|
1351
1351
|
$ sf project generate manifest --from-org test@myorg.com --include-packages unlocked
|
|
1352
1352
|
```
|
|
1353
1353
|
|
|
1354
|
-
_See code: [src/commands/project/generate/manifest.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
1354
|
+
_See code: [src/commands/project/generate/manifest.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/generate/manifest.ts)_
|
|
1355
1355
|
|
|
1356
1356
|
## `sf project list ignored`
|
|
1357
1357
|
|
|
@@ -1393,7 +1393,7 @@ EXAMPLES
|
|
|
1393
1393
|
$ sf project list ignored --source-dir package.xml
|
|
1394
1394
|
```
|
|
1395
1395
|
|
|
1396
|
-
_See code: [src/commands/project/list/ignored.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
1396
|
+
_See code: [src/commands/project/list/ignored.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/list/ignored.ts)_
|
|
1397
1397
|
|
|
1398
1398
|
## `sf project reset tracking`
|
|
1399
1399
|
|
|
@@ -1442,7 +1442,7 @@ EXAMPLES
|
|
|
1442
1442
|
$ sf project reset tracking --revision 30
|
|
1443
1443
|
```
|
|
1444
1444
|
|
|
1445
|
-
_See code: [src/commands/project/reset/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
1445
|
+
_See code: [src/commands/project/reset/tracking.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/reset/tracking.ts)_
|
|
1446
1446
|
|
|
1447
1447
|
## `sf project retrieve preview`
|
|
1448
1448
|
|
|
@@ -1496,7 +1496,7 @@ FLAG DESCRIPTIONS
|
|
|
1496
1496
|
production orgs.
|
|
1497
1497
|
```
|
|
1498
1498
|
|
|
1499
|
-
_See code: [src/commands/project/retrieve/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
1499
|
+
_See code: [src/commands/project/retrieve/preview.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/retrieve/preview.ts)_
|
|
1500
1500
|
|
|
1501
1501
|
## `sf project retrieve start`
|
|
1502
1502
|
|
|
@@ -1665,6 +1665,6 @@ FLAG DESCRIPTIONS
|
|
|
1665
1665
|
If you specify this flag, don’t specify --metadata or --source-dir.
|
|
1666
1666
|
```
|
|
1667
1667
|
|
|
1668
|
-
_See code: [src/commands/project/retrieve/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.
|
|
1668
|
+
_See code: [src/commands/project/retrieve/start.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/3.16.0/src/commands/project/retrieve/start.ts)_
|
|
1669
1669
|
|
|
1670
1670
|
<!-- commandsstop -->
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeployResult } from '@salesforce/source-deploy-retrieve';
|
|
1
|
+
import { DeployResult, Failures, Successes } from '@salesforce/source-deploy-retrieve';
|
|
2
2
|
import { TestLevel, Verbosity } from '../utils/types.js';
|
|
3
3
|
export declare class TestResultsFormatter {
|
|
4
4
|
protected result: DeployResult;
|
|
@@ -15,3 +15,4 @@ export declare class TestResultsFormatter {
|
|
|
15
15
|
displayTestResults(): void;
|
|
16
16
|
determineVerbosity(): Verbosity;
|
|
17
17
|
}
|
|
18
|
+
export declare const testResultSort: <T extends Successes | Failures>(a: T, b: T) => number;
|
|
@@ -12,6 +12,7 @@ import { ensureArray } from '@salesforce/kit';
|
|
|
12
12
|
import { TestLevel } from '../utils/types.js';
|
|
13
13
|
import { tableHeader, error, success, check } from '../utils/output.js';
|
|
14
14
|
import { coverageOutput } from '../utils/coverage.js';
|
|
15
|
+
import { isCI } from '../utils/deployStages.js';
|
|
15
16
|
const ux = new Ux();
|
|
16
17
|
export class TestResultsFormatter {
|
|
17
18
|
result;
|
|
@@ -29,9 +30,13 @@ export class TestResultsFormatter {
|
|
|
29
30
|
ux.log();
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
+
if (!isCI()) {
|
|
34
|
+
displayVerboseTestFailures(this.result.response);
|
|
35
|
+
}
|
|
33
36
|
if (this.verbosity === 'verbose') {
|
|
34
|
-
|
|
37
|
+
if (!isCI()) {
|
|
38
|
+
displayVerboseTestSuccesses(this.result.response.details.runTestResult?.successes);
|
|
39
|
+
}
|
|
35
40
|
displayVerboseTestCoverage(this.result.response.details.runTestResult?.codeCoverage);
|
|
36
41
|
}
|
|
37
42
|
ux.log();
|
|
@@ -99,6 +104,6 @@ const displayVerboseTestCoverage = (coverage) => {
|
|
|
99
104
|
});
|
|
100
105
|
}
|
|
101
106
|
};
|
|
102
|
-
const testResultSort = (a, b) => a.methodName === b.methodName ? a.name.localeCompare(b.name) : a.methodName.localeCompare(b.methodName);
|
|
107
|
+
export const testResultSort = (a, b) => a.methodName === b.methodName ? a.name.localeCompare(b.name) : a.methodName.localeCompare(b.methodName);
|
|
103
108
|
const coverageSort = (a, b) => a.name.toUpperCase() > b.name.toUpperCase() ? 1 : -1;
|
|
104
109
|
//# sourceMappingURL=testResultsFormatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testResultsFormatter.js","sourceRoot":"","sources":["../../src/formatters/testResultsFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAa,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"testResultsFormatter.js","sourceRoot":"","sources":["../../src/formatters/testResultsFormatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,SAAS,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Ae,EAAU,EAAE,CAChE,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -18,6 +18,11 @@ type Data = {
|
|
|
18
18
|
};
|
|
19
19
|
export declare class DeployStages {
|
|
20
20
|
private mso;
|
|
21
|
+
/**
|
|
22
|
+
* Set of Apex test failures that were already rendered in the `Running Tests` block.
|
|
23
|
+
* This is used in the `Failed` stage block for CI output to ensure test failures aren't duplicated when rendering new failures on polling.
|
|
24
|
+
*/
|
|
25
|
+
private printedApexTestFailures;
|
|
21
26
|
constructor({ title, jsonEnabled }: Options);
|
|
22
27
|
start({ username, deploy }: {
|
|
23
28
|
username?: string | undefined;
|
|
@@ -28,4 +33,5 @@ export declare class DeployStages {
|
|
|
28
33
|
error(): void;
|
|
29
34
|
done(data?: Partial<Data>): void;
|
|
30
35
|
}
|
|
36
|
+
export declare function isCI(): boolean;
|
|
31
37
|
export {};
|
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
* Licensed under the BSD 3-Clause license.
|
|
5
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
+
import os from 'node:os';
|
|
7
8
|
import { MultiStageOutput } from '@oclif/multi-stage-output';
|
|
8
9
|
import { Lifecycle, Messages } from '@salesforce/core';
|
|
9
|
-
import { RequestStatus } from '@salesforce/source-deploy-retrieve';
|
|
10
|
+
import { RequestStatus, } from '@salesforce/source-deploy-retrieve';
|
|
10
11
|
import terminalLink from 'terminal-link';
|
|
12
|
+
import ansis from 'ansis';
|
|
13
|
+
import { testResultSort } from '../formatters/testResultsFormatter.js';
|
|
11
14
|
import { getZipFileSize } from './output.js';
|
|
15
|
+
import { isTruthy } from './types.js';
|
|
12
16
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
13
17
|
const mdTransferMessages = Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'metadata.transfer');
|
|
14
18
|
function round(value, precision) {
|
|
@@ -23,7 +27,13 @@ function formatProgress(current, total) {
|
|
|
23
27
|
}
|
|
24
28
|
export class DeployStages {
|
|
25
29
|
mso;
|
|
30
|
+
/**
|
|
31
|
+
* Set of Apex test failures that were already rendered in the `Running Tests` block.
|
|
32
|
+
* This is used in the `Failed` stage block for CI output to ensure test failures aren't duplicated when rendering new failures on polling.
|
|
33
|
+
*/
|
|
34
|
+
printedApexTestFailures;
|
|
26
35
|
constructor({ title, jsonEnabled }) {
|
|
36
|
+
this.printedApexTestFailures = new Set();
|
|
27
37
|
this.mso = new MultiStageOutput({
|
|
28
38
|
title,
|
|
29
39
|
stages: [
|
|
@@ -100,13 +110,39 @@ export class DeployStages {
|
|
|
100
110
|
type: 'dynamic-key-value',
|
|
101
111
|
},
|
|
102
112
|
{
|
|
103
|
-
label: '
|
|
113
|
+
label: 'Successful',
|
|
104
114
|
get: (data) => data?.mdapiDeploy?.numberTestsTotal && data?.mdapiDeploy?.numberTestsCompleted
|
|
105
115
|
? formatProgress(data?.mdapiDeploy?.numberTestsCompleted, data?.mdapiDeploy?.numberTestsTotal)
|
|
106
116
|
: undefined,
|
|
107
117
|
stage: 'Running Tests',
|
|
108
118
|
type: 'dynamic-key-value',
|
|
109
119
|
},
|
|
120
|
+
{
|
|
121
|
+
label: 'Failed',
|
|
122
|
+
alwaysPrintInCI: true,
|
|
123
|
+
get: (data) => {
|
|
124
|
+
let testFailures = [];
|
|
125
|
+
// only render new test failures
|
|
126
|
+
if (isCI() && Array.isArray(data?.mdapiDeploy.details.runTestResult?.failures)) {
|
|
127
|
+
// skip failure counter/progress info if there's no new failures to render.
|
|
128
|
+
if (this.printedApexTestFailures.size > 0 &&
|
|
129
|
+
data.mdapiDeploy.numberTestErrors === this.printedApexTestFailures.size) {
|
|
130
|
+
return undefined;
|
|
131
|
+
}
|
|
132
|
+
testFailures = data.mdapiDeploy.details.runTestResult?.failures.filter((f) => !this.printedApexTestFailures.has(`${f.name}.${f.methodName}`));
|
|
133
|
+
data?.mdapiDeploy.details.runTestResult?.failures.forEach((f) => this.printedApexTestFailures.add(`${f.name}.${f.methodName}`));
|
|
134
|
+
return data?.mdapiDeploy?.numberTestsTotal && data?.mdapiDeploy?.numberTestErrors
|
|
135
|
+
? formatProgress(data?.mdapiDeploy?.numberTestErrors, data?.mdapiDeploy?.numberTestsTotal) +
|
|
136
|
+
(isCI() ? os.EOL + formatTestFailures(testFailures) : '')
|
|
137
|
+
: undefined;
|
|
138
|
+
}
|
|
139
|
+
return data?.mdapiDeploy?.numberTestsTotal && data?.mdapiDeploy?.numberTestErrors
|
|
140
|
+
? formatProgress(data?.mdapiDeploy?.numberTestErrors, data?.mdapiDeploy?.numberTestsTotal)
|
|
141
|
+
: undefined;
|
|
142
|
+
},
|
|
143
|
+
stage: 'Running Tests',
|
|
144
|
+
type: 'dynamic-key-value',
|
|
145
|
+
},
|
|
110
146
|
{
|
|
111
147
|
label: 'Members',
|
|
112
148
|
get: (data) => data?.sourceMemberPolling?.original
|
|
@@ -184,4 +220,27 @@ export class DeployStages {
|
|
|
184
220
|
this.mso.skipTo('Done', data);
|
|
185
221
|
}
|
|
186
222
|
}
|
|
223
|
+
function formatTestFailures(failuresData) {
|
|
224
|
+
const failures = failuresData.sort(testResultSort);
|
|
225
|
+
let output = '';
|
|
226
|
+
for (const test of failures) {
|
|
227
|
+
const testName = ansis.underline(`${test.name}.${test.methodName}`);
|
|
228
|
+
output += ` • ${testName}${os.EOL}`;
|
|
229
|
+
output += ` message: ${test.message}${os.EOL}`;
|
|
230
|
+
if (test.stackTrace) {
|
|
231
|
+
const stackTrace = test.stackTrace.replace(/\n/g, `${os.EOL} `);
|
|
232
|
+
output += ` stacktrace:${os.EOL} ${stackTrace}${os.EOL}${os.EOL}`;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
// remove last EOL char
|
|
236
|
+
return output.slice(0, -1);
|
|
237
|
+
}
|
|
238
|
+
export function isCI() {
|
|
239
|
+
if (isTruthy(process.env.CI) &&
|
|
240
|
+
('CI' in process.env ||
|
|
241
|
+
'CONTINUOUS_INTEGRATION' in process.env ||
|
|
242
|
+
Object.keys(process.env).some((key) => key.startsWith('CI_'))))
|
|
243
|
+
return true;
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
187
246
|
//# sourceMappingURL=deployStages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployStages.js","sourceRoot":"","sources":["../../src/utils/deployStages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"deployStages.js","sourceRoot":"","sources":["../../src/utils/deployStages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAIL,aAAa,GACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,kBAAkB,GAAG,QAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,mBAAmB,CAAC,CAAC;AAoB5G,SAAS,K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CAAC;QACtC,MAAM,IAAI,iBAAiB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;QACnD,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC;YACnE,MAAM,IAAI,mBAAmB,EAAE,CAAC,GAAG,UAAU,UAAU,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;QAC9E,CAAC;IACH,CAAC;IAED,uBAAuB;IACvB,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,IAAI;IAClB,IACE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACxB,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG;YAClB,wBAAwB,IAAI,OAAO,CAAC,GAAG;YACvC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC;IAEd,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/lib/utils/types.d.ts
CHANGED
|
@@ -71,4 +71,5 @@ export declare const isSdrFailure: (fileResponse: FileResponse) => fileResponse
|
|
|
71
71
|
export declare const isSdrSuccess: (fileResponse: FileResponse) => fileResponse is FileResponseSuccess;
|
|
72
72
|
export declare const isFileResponseDeleted: (fileResponse: FileResponseSuccess) => boolean;
|
|
73
73
|
export declare const isDefined: <T>(value?: T) => value is T;
|
|
74
|
+
export declare function isTruthy(value: string | undefined): boolean;
|
|
74
75
|
export {};
|
package/lib/utils/types.js
CHANGED
|
@@ -36,4 +36,7 @@ export const isSdrFailure = (fileResponse) => fileResponse.state === ComponentSt
|
|
|
36
36
|
export const isSdrSuccess = (fileResponse) => fileResponse.state !== ComponentStatus.Failed;
|
|
37
37
|
export const isFileResponseDeleted = (fileResponse) => fileResponse.state === ComponentStatus.Deleted;
|
|
38
38
|
export const isDefined = (value) => value !== undefined;
|
|
39
|
+
export function isTruthy(value) {
|
|
40
|
+
return value !== '0' && value !== 'false';
|
|
41
|
+
}
|
|
39
42
|
//# sourceMappingURL=types.js.map
|
package/lib/utils/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,eAAe,GAShB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;AAEnE,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,oDAAuC,CAAA;IACvC,4CAA+B,CAAA;IAC/B,kDAAqC,CAAA;AACvC,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAED,MAAM,CAAN,IAAY,GAGX;AAHD,WAAY,GAAG;IACb,oBAAa,CAAA;IACb,oBAAa,CAAA;AACf,CAAC,EAHW,GAAG,KAAH,GAAG,QAGd;AAmED,oEAAoE;AACpE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAiB,EAAyB,EAAE,CAC5E,QAAQ,CAAC,EAAE,CAAC;IACZ,MAAM,IAAI,EAAE;IACZ,OAAO,EAAE,CAAC,IAAI,KAAK,QAAQ;IAC3B,EAAE,CAAC,IAAI,KAAK,IAAI;IAChB,MAAM,IAAI,EAAE,CAAC,IAAI;IACjB,OAAO,EAAE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Q,CAAC,KAAyB;IAChD,OAAO,KAAK,KAAK,GAAG,IAAI,KAAK,KAAK,OAAO,CAAC;AAC5C,CAAC"}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-deploy-retrieve",
|
|
3
3
|
"description": "deploy and retrieve commands for sf",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.16.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@oclif/core": "^4.0.37",
|
|
9
|
-
"@oclif/multi-stage-output": "^0.
|
|
9
|
+
"@oclif/multi-stage-output": "^0.8.0",
|
|
10
10
|
"@salesforce/apex-node": "^8.1.18",
|
|
11
11
|
"@salesforce/core": "^8.6.4",
|
|
12
12
|
"@salesforce/kit": "^3.2.3",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@salesforce/ts-sinon": "^1.4.30",
|
|
29
29
|
"cross-env": "^7.0.3",
|
|
30
30
|
"eslint-plugin-sf-plugin": "^1.20.13",
|
|
31
|
-
"oclif": "^4.16.
|
|
31
|
+
"oclif": "^4.16.2",
|
|
32
32
|
"ts-node": "^10.9.2",
|
|
33
33
|
"typescript": "^5.5.4"
|
|
34
34
|
},
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
"exports": "./lib/index.js",
|
|
254
254
|
"type": "module",
|
|
255
255
|
"sfdx": {
|
|
256
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/3.
|
|
257
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/3.
|
|
256
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/3.16.0.crt",
|
|
257
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/3.16.0.sig"
|
|
258
258
|
}
|
|
259
259
|
}
|