@salesforce/plugin-release-management 2.10.0 → 2.11.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/CHANGELOG.md +20 -0
- package/README.md +36 -28
- package/lib/amazonS3.d.ts +1 -4
- package/lib/amazonS3.js +13 -12
- package/lib/amazonS3.js.map +1 -1
- package/lib/commands/cli/install/test.d.ts +1 -4
- package/lib/commands/cli/install/test.js +102 -103
- package/lib/commands/cli/install/test.js.map +1 -1
- package/lib/commands/cli/latestrc/build.js +6 -1
- package/lib/commands/cli/latestrc/build.js.map +1 -1
- package/lib/package.d.ts +1 -1
- package/lib/package.js +11 -6
- package/lib/package.js.map +1 -1
- package/messages/cli.install.test.json +2 -1
- package/messages/cli.latestrc.build.json +2 -1
- package/oclif.manifest.json +1 -1
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.11.0](https://github.com/salesforcecli/plugin-release-management/compare/v2.10.3...v2.11.0) (2022-02-01)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- patch flag and deduplicate step ([8622fd0](https://github.com/salesforcecli/plugin-release-management/commit/8622fd04073c5502c8a0e03f536f66a1e7397e05))
|
|
10
|
+
|
|
11
|
+
### [2.10.3](https://github.com/salesforcecli/plugin-release-management/compare/v2.10.2...v2.10.3) (2022-01-18)
|
|
12
|
+
|
|
13
|
+
### [2.10.2](https://github.com/salesforcecli/plugin-release-management/compare/v2.10.1...v2.10.2) (2022-01-10)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- handle no existing versions when validating next version ([40f7d7d](https://github.com/salesforcecli/plugin-release-management/commit/40f7d7d325315b4c365f1204e73e94c8fbc0a3b7))
|
|
18
|
+
|
|
19
|
+
### [2.10.1](https://github.com/salesforcecli/plugin-release-management/compare/v2.10.0...v2.10.1) (2022-01-10)
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
- handle scenario where no versions exist yet ([#407](https://github.com/salesforcecli/plugin-release-management/issues/407)) ([87126b5](https://github.com/salesforcecli/plugin-release-management/commit/87126b53184eee28670c9e10e4d7a06924c9b42d))
|
|
24
|
+
|
|
5
25
|
## [2.10.0](https://github.com/salesforcecli/plugin-release-management/compare/v2.9.1...v2.10.0) (2022-01-06)
|
|
6
26
|
|
|
7
27
|
### Features
|
package/README.md
CHANGED
|
@@ -104,8 +104,8 @@ sfdx plugins
|
|
|
104
104
|
- [`sfdx circleci [-t plugin|library|orb] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-circleci--t-pluginlibraryorb---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
105
105
|
- [`sfdx circleci:envvar:create -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-circlecienvvarcreate--e-string--s-string---dryrun---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
106
106
|
- [`sfdx circleci:envvar:update -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-circlecienvvarupdate--e-string--s-string---dryrun---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
107
|
-
- [`sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-cliinstalltest--c-string--m-string---channel-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
108
|
-
- [`sfdx cli:latestrc:build [--rctag <string>] [--resolutions] [--pinned-deps] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clilatestrcbuild---rctag-string---resolutions---pinned-deps---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
107
|
+
- [`sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--output-file <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-cliinstalltest--c-string--m-string---channel-string---output-file-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
108
|
+
- [`sfdx cli:latestrc:build [--rctag <string>] [--resolutions] [--pinned-deps] [--patch] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clilatestrcbuild---rctag-string---resolutions---pinned-deps---patch---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
109
109
|
- [`sfdx cli:releasenotes -c <string> [-s <string>] [-m] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clireleasenotes--c-string--s-string--m---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
110
110
|
- [`sfdx cli:schemas:collect [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clischemascollect---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
111
111
|
- [`sfdx cli:schemas:compare [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clischemascompare---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
@@ -174,7 +174,7 @@ EXAMPLE
|
|
|
174
174
|
sfdx channel:promote --candidate latest-rc --target latest --platform win --platform mac
|
|
175
175
|
```
|
|
176
176
|
|
|
177
|
-
_See code: [src/commands/channel/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
177
|
+
_See code: [src/commands/channel/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/channel/promote.ts)_
|
|
178
178
|
|
|
179
179
|
## `sfdx circleci [-t plugin|library|orb] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
180
180
|
|
|
@@ -196,7 +196,7 @@ EXAMPLE
|
|
|
196
196
|
sfdx circleci -t plugin
|
|
197
197
|
```
|
|
198
198
|
|
|
199
|
-
_See code: [src/commands/circleci/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
199
|
+
_See code: [src/commands/circleci/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/circleci/index.ts)_
|
|
200
200
|
|
|
201
201
|
## `sfdx circleci:envvar:create -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
202
202
|
|
|
@@ -233,7 +233,7 @@ EXAMPLES
|
|
|
233
233
|
sfdx circleci -t plugin | sfdx circleci:envvar:create -e 'MY_ENV_VAR' -e 'MY_OTHER_ENV_VAR'
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
-
_See code: [src/commands/circleci/envvar/create.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
236
|
+
_See code: [src/commands/circleci/envvar/create.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/circleci/envvar/create.ts)_
|
|
237
237
|
|
|
238
238
|
## `sfdx circleci:envvar:update -e <string> [-s <string>] [--dryrun] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
239
239
|
|
|
@@ -270,15 +270,15 @@ EXAMPLES
|
|
|
270
270
|
sfdx circleci -t plugin | sfdx circleci:envvar:update -e 'MY_ENV_VAR' -e 'MY_OTHER_ENV_VAR'
|
|
271
271
|
```
|
|
272
272
|
|
|
273
|
-
_See code: [src/commands/circleci/envvar/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
273
|
+
_See code: [src/commands/circleci/envvar/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/circleci/envvar/update.ts)_
|
|
274
274
|
|
|
275
|
-
## `sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
275
|
+
## `sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--output-file <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
276
276
|
|
|
277
277
|
install sf or sfdx
|
|
278
278
|
|
|
279
279
|
```
|
|
280
280
|
USAGE
|
|
281
|
-
$ sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--json] [--loglevel
|
|
281
|
+
$ sfdx cli:install:test -c <string> -m <string> [--channel <string>] [--output-file <string>] [--json] [--loglevel
|
|
282
282
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
283
283
|
|
|
284
284
|
OPTIONS
|
|
@@ -295,6 +295,10 @@ OPTIONS
|
|
|
295
295
|
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
296
296
|
this command invocation
|
|
297
297
|
|
|
298
|
+
--output-file=output-file [default: test-results.json] the
|
|
299
|
+
file to write the JSON results to
|
|
300
|
+
(must be .json)
|
|
301
|
+
|
|
298
302
|
EXAMPLES
|
|
299
303
|
sfdx cli:install:test --cli sfdx --method installer
|
|
300
304
|
sfdx cli:install:test --cli sfdx --method npm
|
|
@@ -303,15 +307,15 @@ EXAMPLES
|
|
|
303
307
|
sfdx cli:install:test --cli sf --method tarball --channel stable-rc
|
|
304
308
|
```
|
|
305
309
|
|
|
306
|
-
_See code: [src/commands/cli/install/test.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
310
|
+
_See code: [src/commands/cli/install/test.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/cli/install/test.ts)_
|
|
307
311
|
|
|
308
|
-
## `sfdx cli:latestrc:build [--rctag <string>] [--resolutions] [--pinned-deps] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
312
|
+
## `sfdx cli:latestrc:build [--rctag <string>] [--resolutions] [--pinned-deps] [--patch] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
309
313
|
|
|
310
314
|
creates a PR to the repository property defined in the package.json to release a latest-rc build
|
|
311
315
|
|
|
312
316
|
```
|
|
313
317
|
USAGE
|
|
314
|
-
$ sfdx cli:latestrc:build [--rctag <string>] [--resolutions] [--pinned-deps] [--json] [--loglevel
|
|
318
|
+
$ sfdx cli:latestrc:build [--rctag <string>] [--resolutions] [--pinned-deps] [--patch] [--json] [--loglevel
|
|
315
319
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
316
320
|
|
|
317
321
|
OPTIONS
|
|
@@ -320,6 +324,10 @@ OPTIONS
|
|
|
320
324
|
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
321
325
|
this command invocation
|
|
322
326
|
|
|
327
|
+
--patch bump the release as a patch of an
|
|
328
|
+
existing version, not a new minor
|
|
329
|
+
version
|
|
330
|
+
|
|
323
331
|
--[no-]pinned-deps bump the versions of the packages
|
|
324
332
|
listed in the pinnedDependencies
|
|
325
333
|
section
|
|
@@ -333,7 +341,7 @@ OPTIONS
|
|
|
333
341
|
in the resolutions section
|
|
334
342
|
```
|
|
335
343
|
|
|
336
|
-
_See code: [src/commands/cli/latestrc/build.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
344
|
+
_See code: [src/commands/cli/latestrc/build.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/cli/latestrc/build.ts)_
|
|
337
345
|
|
|
338
346
|
## `sfdx cli:releasenotes -c <string> [-s <string>] [-m] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
339
347
|
|
|
@@ -371,7 +379,7 @@ EXAMPLES
|
|
|
371
379
|
sfdx cli:releasenotes --cli sf --markdown > changes.md
|
|
372
380
|
```
|
|
373
381
|
|
|
374
|
-
_See code: [src/commands/cli/releasenotes.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
382
|
+
_See code: [src/commands/cli/releasenotes.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/cli/releasenotes.ts)_
|
|
375
383
|
|
|
376
384
|
## `sfdx cli:schemas:collect [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
377
385
|
|
|
@@ -391,7 +399,7 @@ EXAMPLE
|
|
|
391
399
|
sfdx cli:schemas:collect
|
|
392
400
|
```
|
|
393
401
|
|
|
394
|
-
_See code: [src/commands/cli/schemas/collect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
402
|
+
_See code: [src/commands/cli/schemas/collect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/cli/schemas/collect.ts)_
|
|
395
403
|
|
|
396
404
|
## `sfdx cli:schemas:compare [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
397
405
|
|
|
@@ -411,7 +419,7 @@ EXAMPLE
|
|
|
411
419
|
sfdx cli:schemas:compare
|
|
412
420
|
```
|
|
413
421
|
|
|
414
|
-
_See code: [src/commands/cli/schemas/compare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
422
|
+
_See code: [src/commands/cli/schemas/compare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/cli/schemas/compare.ts)_
|
|
415
423
|
|
|
416
424
|
## `sfdx cli:tarballs:prepare [-d] [-t] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
417
425
|
|
|
@@ -440,7 +448,7 @@ EXAMPLE
|
|
|
440
448
|
sfdx cli:tarballs:prepare
|
|
441
449
|
```
|
|
442
450
|
|
|
443
|
-
_See code: [src/commands/cli/tarballs/prepare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
451
|
+
_See code: [src/commands/cli/tarballs/prepare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/cli/tarballs/prepare.ts)_
|
|
444
452
|
|
|
445
453
|
## `sfdx cli:tarballs:smoke -c <string> [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
446
454
|
|
|
@@ -469,7 +477,7 @@ EXAMPLES
|
|
|
469
477
|
sfdx cli:tarballs:smoke --cli sf
|
|
470
478
|
```
|
|
471
479
|
|
|
472
|
-
_See code: [src/commands/cli/tarballs/smoke.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
480
|
+
_See code: [src/commands/cli/tarballs/smoke.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/cli/tarballs/smoke.ts)_
|
|
473
481
|
|
|
474
482
|
## `sfdx cli:tarballs:verify [-c sf|sfdx] [-w <number>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
475
483
|
|
|
@@ -498,7 +506,7 @@ EXAMPLES
|
|
|
498
506
|
sfdx cli:tarballs:verify --cli sf
|
|
499
507
|
```
|
|
500
508
|
|
|
501
|
-
_See code: [src/commands/cli/tarballs/verify.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
509
|
+
_See code: [src/commands/cli/tarballs/verify.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/cli/tarballs/verify.ts)_
|
|
502
510
|
|
|
503
511
|
## `sfdx cli:versions:inspect -c <string> -l <string> --cli sf|sfdx [-d <string>] [-s] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
504
512
|
|
|
@@ -546,7 +554,7 @@ EXAMPLES
|
|
|
546
554
|
sfdx cli:versions:inspect -l npm -c latest -d chalk -s
|
|
547
555
|
```
|
|
548
556
|
|
|
549
|
-
_See code: [src/commands/cli/versions/inspect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
557
|
+
_See code: [src/commands/cli/versions/inspect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/cli/versions/inspect.ts)_
|
|
550
558
|
|
|
551
559
|
## `sfdx dependabot:automerge -m major|minor|patch [-r <string> -o <string>] [-d] [-s] [--merge-method merge|squash|rebase] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
552
560
|
|
|
@@ -590,7 +598,7 @@ EXAMPLES
|
|
|
590
598
|
sfdx dependabot:automerge --max-version-bump major
|
|
591
599
|
```
|
|
592
600
|
|
|
593
|
-
_See code: [src/commands/dependabot/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
601
|
+
_See code: [src/commands/dependabot/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/dependabot/automerge.ts)_
|
|
594
602
|
|
|
595
603
|
## `sfdx dependabot:consolidate -m major|minor|patch -b <string> -t <string> [--ignore <array>] [-d] [--no-pr] [-r <string> -o <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
596
604
|
|
|
@@ -641,7 +649,7 @@ EXAMPLES
|
|
|
641
649
|
sfdx dependabot:consolidate --max-version-bump major
|
|
642
650
|
```
|
|
643
651
|
|
|
644
|
-
_See code: [src/commands/dependabot/consolidate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
652
|
+
_See code: [src/commands/dependabot/consolidate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/dependabot/consolidate.ts)_
|
|
645
653
|
|
|
646
654
|
## `sfdx npm:dependencies:pin [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
647
655
|
|
|
@@ -666,7 +674,7 @@ OPTIONS
|
|
|
666
674
|
this command invocation
|
|
667
675
|
```
|
|
668
676
|
|
|
669
|
-
_See code: [src/commands/npm/dependencies/pin.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
677
|
+
_See code: [src/commands/npm/dependencies/pin.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/npm/dependencies/pin.ts)_
|
|
670
678
|
|
|
671
679
|
## `sfdx npm:lerna:release [-d] [-s <array>] [-t <string>] [-a <string>] [--install] [--githubrelease] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
672
680
|
|
|
@@ -706,7 +714,7 @@ OPTIONS
|
|
|
706
714
|
after publish and digital signature
|
|
707
715
|
```
|
|
708
716
|
|
|
709
|
-
_See code: [src/commands/npm/lerna/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
717
|
+
_See code: [src/commands/npm/lerna/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/npm/lerna/release.ts)_
|
|
710
718
|
|
|
711
719
|
## `sfdx npm:package:promote -c <string> [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
712
720
|
|
|
@@ -735,7 +743,7 @@ EXAMPLE
|
|
|
735
743
|
sfdx npm:package:promote --candidate latest-rc --target latest
|
|
736
744
|
```
|
|
737
745
|
|
|
738
|
-
_See code: [src/commands/npm/package/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
746
|
+
_See code: [src/commands/npm/package/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/npm/package/promote.ts)_
|
|
739
747
|
|
|
740
748
|
## `sfdx npm:package:release [-d] [-s] [-t <string>] [-a <string>] [--install] [--prerelease <string>] [--verify] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
741
749
|
|
|
@@ -776,7 +784,7 @@ OPTIONS
|
|
|
776
784
|
after publish and digital signature
|
|
777
785
|
```
|
|
778
786
|
|
|
779
|
-
_See code: [src/commands/npm/package/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
787
|
+
_See code: [src/commands/npm/package/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/npm/package/release.ts)_
|
|
780
788
|
|
|
781
789
|
## `sfdx npm:release:validate [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
782
790
|
|
|
@@ -797,7 +805,7 @@ OPTIONS
|
|
|
797
805
|
(only works with --json flag)
|
|
798
806
|
```
|
|
799
807
|
|
|
800
|
-
_See code: [src/commands/npm/release/validate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
808
|
+
_See code: [src/commands/npm/release/validate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/npm/release/validate.ts)_
|
|
801
809
|
|
|
802
810
|
## `sfdx plugins:trust:verify -n <string> [-r <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
803
811
|
|
|
@@ -870,7 +878,7 @@ EXAMPLES
|
|
|
870
878
|
sfdx repositories --json | jq -r '.result[] | select(.name=="sfdx-core") | .packages[] | .url
|
|
871
879
|
```
|
|
872
880
|
|
|
873
|
-
_See code: [src/commands/repositories/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
881
|
+
_See code: [src/commands/repositories/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/repositories/index.ts)_
|
|
874
882
|
|
|
875
883
|
## `sfdx typescript:update [-v <string>] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
876
884
|
|
|
@@ -897,6 +905,6 @@ OPTIONS
|
|
|
897
905
|
this command invocation
|
|
898
906
|
```
|
|
899
907
|
|
|
900
|
-
_See code: [src/commands/typescript/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
908
|
+
_See code: [src/commands/typescript/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.3/src/commands/typescript/update.ts)_
|
|
901
909
|
|
|
902
910
|
<!-- commandsstop -->
|
package/lib/amazonS3.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { UX } from '@salesforce/command';
|
|
2
1
|
import { CredentialsOptions } from 'aws-sdk/lib/credentials';
|
|
3
2
|
import { CommonPrefixList, ObjectList } from 'aws-sdk/clients/s3';
|
|
4
3
|
import { GetObjectRequest, GetObjectOutput } from 'aws-sdk/clients/s3';
|
|
@@ -9,7 +8,6 @@ export declare type AmazonS3Options = {
|
|
|
9
8
|
bucket?: string;
|
|
10
9
|
cli?: CLI;
|
|
11
10
|
channel?: Channel;
|
|
12
|
-
ux?: UX;
|
|
13
11
|
baseUrl?: string;
|
|
14
12
|
credentials?: CredentialsOptions;
|
|
15
13
|
baseKey?: string;
|
|
@@ -20,11 +18,10 @@ export declare class AmazonS3 {
|
|
|
20
18
|
directory: string;
|
|
21
19
|
private s3;
|
|
22
20
|
private baseKey;
|
|
23
|
-
private ux;
|
|
24
21
|
constructor(options: AmazonS3Options);
|
|
25
22
|
ping(): Promise<ServiceAvailability>;
|
|
26
23
|
fileIsAvailable(url: string): Promise<ServiceAvailability>;
|
|
27
|
-
download(url: string, location: string): Promise<void>;
|
|
24
|
+
download(url: string, location: string, silent?: boolean): Promise<void>;
|
|
28
25
|
getManifestFromChannel(channel: string): Promise<S3Manifest>;
|
|
29
26
|
getManifestFromVersion(version: string, sha: string): Promise<S3Manifest>;
|
|
30
27
|
getFileAtUrl(url: string): Promise<string>;
|
package/lib/amazonS3.js
CHANGED
|
@@ -10,6 +10,7 @@ exports.AmazonS3 = exports.BASE_URL = void 0;
|
|
|
10
10
|
const os = require("os");
|
|
11
11
|
const path = require("path");
|
|
12
12
|
const fs = require("fs");
|
|
13
|
+
const cli_ux_1 = require("cli-ux");
|
|
13
14
|
const got_1 = require("got");
|
|
14
15
|
const core_1 = require("@salesforce/core");
|
|
15
16
|
const chalk = require("chalk");
|
|
@@ -20,7 +21,6 @@ const BUCKET = 'dfc-data-production';
|
|
|
20
21
|
class AmazonS3 {
|
|
21
22
|
constructor(options) {
|
|
22
23
|
this.options = options;
|
|
23
|
-
this.ux = this.options.ux;
|
|
24
24
|
this.directory = `https://developer.salesforce.com/media/salesforce-cli/${this.options.cli || ''}`;
|
|
25
25
|
this.baseKey = this.directory.replace(exports.BASE_URL, '').replace(/^\//, '');
|
|
26
26
|
const agent = packAndSign_1.api.getAgentForUri('https://s3.amazonaws.com');
|
|
@@ -37,27 +37,28 @@ class AmazonS3 {
|
|
|
37
37
|
const { statusCode } = await got_1.default.get(url, { throwHttpErrors: false });
|
|
38
38
|
return { service: 'file', name: url, available: statusCode >= 200 && statusCode < 300 };
|
|
39
39
|
}
|
|
40
|
-
async download(url, location) {
|
|
40
|
+
async download(url, location, silent = false) {
|
|
41
41
|
const downloadStream = got_1.default.stream(url);
|
|
42
42
|
const fileWriterStream = fs.createWriteStream(location);
|
|
43
43
|
return new Promise((resolve) => {
|
|
44
|
-
var _a;
|
|
45
44
|
downloadStream.on('error', (error) => {
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
if (!silent)
|
|
46
|
+
cli_ux_1.cli.error(`Download failed: ${error.message}`);
|
|
48
47
|
});
|
|
49
48
|
fileWriterStream
|
|
50
49
|
.on('error', (error) => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
if (!silent)
|
|
51
|
+
cli_ux_1.cli.action.stop('Failed');
|
|
52
|
+
if (!silent)
|
|
53
|
+
cli_ux_1.cli.error(`Could not write file to system: ${error.message}`);
|
|
54
54
|
})
|
|
55
55
|
.on('finish', () => {
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
if (!silent)
|
|
57
|
+
cli_ux_1.cli.action.stop();
|
|
58
58
|
resolve();
|
|
59
59
|
});
|
|
60
|
-
|
|
60
|
+
if (!silent)
|
|
61
|
+
cli_ux_1.cli.action.start(`Downloading ${chalk.cyan(url)}`);
|
|
61
62
|
downloadStream.pipe(fileWriterStream);
|
|
62
63
|
});
|
|
63
64
|
}
|
|
@@ -75,7 +76,7 @@ class AmazonS3 {
|
|
|
75
76
|
const availability = await this.fileIsAvailable(url);
|
|
76
77
|
if (availability.available) {
|
|
77
78
|
const filename = path.join(os.tmpdir(), `file${Math.random()}`);
|
|
78
|
-
await this.download(url, filename);
|
|
79
|
+
await this.download(url, filename, true);
|
|
79
80
|
return filename;
|
|
80
81
|
}
|
|
81
82
|
else {
|
package/lib/amazonS3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amazonS3.js","sourceRoot":"","sources":["../src/amazonS3.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,6BAA6B;AAC7B,yBAAyB;
|
|
1
|
+
{"version":3,"file":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AAE,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;aACxF,OAAO,EAAE,CAAC;QACb,OAAO,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAiB,CAAC;IACzD,CAAC;IAEO,kBAAkB;QACxB,MAAM,WAAW,GAAiE,EAAE,CAAC;QACrF,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;YAC5B,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;SAClD;QACD,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YACtE,OAAO;gBACL,WAAW,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;aAChH,CAAC;SACH;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;;AA3GH,4BA4GC;AA3Ge,mBAAU,GAAG,0BAA0B,CAAC"}
|
|
@@ -5,9 +5,6 @@ export default class Test extends SfdxCommand {
|
|
|
5
5
|
static readonly description: string;
|
|
6
6
|
static readonly examples: string[];
|
|
7
7
|
static readonly flagsConfig: FlagsConfig;
|
|
8
|
-
run(): Promise<
|
|
9
|
-
results: Results;
|
|
10
|
-
logs: string[];
|
|
11
|
-
}>;
|
|
8
|
+
run(): Promise<void>;
|
|
12
9
|
private makeWorkingDir;
|
|
13
10
|
}
|