@salesforce/plugin-release-management 2.9.1 → 2.10.3
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 +39 -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 +18 -4
- package/lib/commands/cli/latestrc/build.js.map +1 -1
- package/lib/package.js +7 -4
- package/lib/package.js.map +1 -1
- package/messages/cli.install.test.json +2 -1
- package/messages/cli.latestrc.build.json +3 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
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.10.3](https://github.com/salesforcecli/plugin-release-management/compare/v2.10.2...v2.10.3) (2022-01-18)
|
|
6
|
+
|
|
7
|
+
### [2.10.2](https://github.com/salesforcecli/plugin-release-management/compare/v2.10.1...v2.10.2) (2022-01-10)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- handle no existing versions when validating next version ([40f7d7d](https://github.com/salesforcecli/plugin-release-management/commit/40f7d7d325315b4c365f1204e73e94c8fbc0a3b7))
|
|
12
|
+
|
|
13
|
+
### [2.10.1](https://github.com/salesforcecli/plugin-release-management/compare/v2.10.0...v2.10.1) (2022-01-10)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- 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))
|
|
18
|
+
|
|
19
|
+
## [2.10.0](https://github.com/salesforcecli/plugin-release-management/compare/v2.9.1...v2.10.0) (2022-01-06)
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
- optionally skip resolutions and pinnedDeps in latestrc build ([#406](https://github.com/salesforcecli/plugin-release-management/issues/406)) ([0fcf6ba](https://github.com/salesforcecli/plugin-release-management/commit/0fcf6ba23cd5e53d59ac579e42853fe15dee2d47))
|
|
24
|
+
|
|
5
25
|
### [2.9.1](https://github.com/salesforcecli/plugin-release-management/compare/v2.9.0...v2.9.1) (2022-01-06)
|
|
6
26
|
|
|
7
27
|
### Bug Fixes
|
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>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clilatestrcbuild---rctag-string---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] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-clilatestrcbuild---rctag-string---resolutions---pinned-deps---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.2/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.2/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.2/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.2/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.2/src/commands/cli/install/test.ts)_
|
|
307
311
|
|
|
308
|
-
## `sfdx cli:latestrc:build [--rctag <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
312
|
+
## `sfdx cli:latestrc:build [--rctag <string>] [--resolutions] [--pinned-deps] [--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>] [--json] [--loglevel
|
|
318
|
+
$ sfdx cli:latestrc:build [--rctag <string>] [--resolutions] [--pinned-deps] [--json] [--loglevel
|
|
315
319
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
316
320
|
|
|
317
321
|
OPTIONS
|
|
@@ -320,13 +324,20 @@ 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
|
+
--[no-]pinned-deps bump the versions of the packages
|
|
328
|
+
listed in the pinnedDependencies
|
|
329
|
+
section
|
|
330
|
+
|
|
323
331
|
--rctag=rctag [default: latest-rc] the tag name
|
|
324
332
|
that corresponds to the npm RC
|
|
325
333
|
build, usually latest-rc or
|
|
326
334
|
stable-rc
|
|
335
|
+
|
|
336
|
+
--[no-]resolutions bump the versions of packages listed
|
|
337
|
+
in the resolutions section
|
|
327
338
|
```
|
|
328
339
|
|
|
329
|
-
_See code: [src/commands/cli/latestrc/build.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
340
|
+
_See code: [src/commands/cli/latestrc/build.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/cli/latestrc/build.ts)_
|
|
330
341
|
|
|
331
342
|
## `sfdx cli:releasenotes -c <string> [-s <string>] [-m] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
332
343
|
|
|
@@ -364,7 +375,7 @@ EXAMPLES
|
|
|
364
375
|
sfdx cli:releasenotes --cli sf --markdown > changes.md
|
|
365
376
|
```
|
|
366
377
|
|
|
367
|
-
_See code: [src/commands/cli/releasenotes.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
378
|
+
_See code: [src/commands/cli/releasenotes.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/cli/releasenotes.ts)_
|
|
368
379
|
|
|
369
380
|
## `sfdx cli:schemas:collect [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
370
381
|
|
|
@@ -384,7 +395,7 @@ EXAMPLE
|
|
|
384
395
|
sfdx cli:schemas:collect
|
|
385
396
|
```
|
|
386
397
|
|
|
387
|
-
_See code: [src/commands/cli/schemas/collect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
398
|
+
_See code: [src/commands/cli/schemas/collect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/cli/schemas/collect.ts)_
|
|
388
399
|
|
|
389
400
|
## `sfdx cli:schemas:compare [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
390
401
|
|
|
@@ -404,7 +415,7 @@ EXAMPLE
|
|
|
404
415
|
sfdx cli:schemas:compare
|
|
405
416
|
```
|
|
406
417
|
|
|
407
|
-
_See code: [src/commands/cli/schemas/compare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
418
|
+
_See code: [src/commands/cli/schemas/compare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/cli/schemas/compare.ts)_
|
|
408
419
|
|
|
409
420
|
## `sfdx cli:tarballs:prepare [-d] [-t] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
410
421
|
|
|
@@ -433,7 +444,7 @@ EXAMPLE
|
|
|
433
444
|
sfdx cli:tarballs:prepare
|
|
434
445
|
```
|
|
435
446
|
|
|
436
|
-
_See code: [src/commands/cli/tarballs/prepare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
447
|
+
_See code: [src/commands/cli/tarballs/prepare.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/cli/tarballs/prepare.ts)_
|
|
437
448
|
|
|
438
449
|
## `sfdx cli:tarballs:smoke -c <string> [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
439
450
|
|
|
@@ -462,7 +473,7 @@ EXAMPLES
|
|
|
462
473
|
sfdx cli:tarballs:smoke --cli sf
|
|
463
474
|
```
|
|
464
475
|
|
|
465
|
-
_See code: [src/commands/cli/tarballs/smoke.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
476
|
+
_See code: [src/commands/cli/tarballs/smoke.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/cli/tarballs/smoke.ts)_
|
|
466
477
|
|
|
467
478
|
## `sfdx cli:tarballs:verify [-c sf|sfdx] [-w <number>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
468
479
|
|
|
@@ -491,7 +502,7 @@ EXAMPLES
|
|
|
491
502
|
sfdx cli:tarballs:verify --cli sf
|
|
492
503
|
```
|
|
493
504
|
|
|
494
|
-
_See code: [src/commands/cli/tarballs/verify.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
505
|
+
_See code: [src/commands/cli/tarballs/verify.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/cli/tarballs/verify.ts)_
|
|
495
506
|
|
|
496
507
|
## `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]`
|
|
497
508
|
|
|
@@ -539,7 +550,7 @@ EXAMPLES
|
|
|
539
550
|
sfdx cli:versions:inspect -l npm -c latest -d chalk -s
|
|
540
551
|
```
|
|
541
552
|
|
|
542
|
-
_See code: [src/commands/cli/versions/inspect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
553
|
+
_See code: [src/commands/cli/versions/inspect.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/cli/versions/inspect.ts)_
|
|
543
554
|
|
|
544
555
|
## `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]`
|
|
545
556
|
|
|
@@ -583,7 +594,7 @@ EXAMPLES
|
|
|
583
594
|
sfdx dependabot:automerge --max-version-bump major
|
|
584
595
|
```
|
|
585
596
|
|
|
586
|
-
_See code: [src/commands/dependabot/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
597
|
+
_See code: [src/commands/dependabot/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/dependabot/automerge.ts)_
|
|
587
598
|
|
|
588
599
|
## `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]`
|
|
589
600
|
|
|
@@ -634,7 +645,7 @@ EXAMPLES
|
|
|
634
645
|
sfdx dependabot:consolidate --max-version-bump major
|
|
635
646
|
```
|
|
636
647
|
|
|
637
|
-
_See code: [src/commands/dependabot/consolidate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
648
|
+
_See code: [src/commands/dependabot/consolidate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/dependabot/consolidate.ts)_
|
|
638
649
|
|
|
639
650
|
## `sfdx npm:dependencies:pin [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
640
651
|
|
|
@@ -659,7 +670,7 @@ OPTIONS
|
|
|
659
670
|
this command invocation
|
|
660
671
|
```
|
|
661
672
|
|
|
662
|
-
_See code: [src/commands/npm/dependencies/pin.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
673
|
+
_See code: [src/commands/npm/dependencies/pin.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/npm/dependencies/pin.ts)_
|
|
663
674
|
|
|
664
675
|
## `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]`
|
|
665
676
|
|
|
@@ -699,7 +710,7 @@ OPTIONS
|
|
|
699
710
|
after publish and digital signature
|
|
700
711
|
```
|
|
701
712
|
|
|
702
|
-
_See code: [src/commands/npm/lerna/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
713
|
+
_See code: [src/commands/npm/lerna/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/npm/lerna/release.ts)_
|
|
703
714
|
|
|
704
715
|
## `sfdx npm:package:promote -c <string> [-d] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
705
716
|
|
|
@@ -728,7 +739,7 @@ EXAMPLE
|
|
|
728
739
|
sfdx npm:package:promote --candidate latest-rc --target latest
|
|
729
740
|
```
|
|
730
741
|
|
|
731
|
-
_See code: [src/commands/npm/package/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
742
|
+
_See code: [src/commands/npm/package/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/npm/package/promote.ts)_
|
|
732
743
|
|
|
733
744
|
## `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]`
|
|
734
745
|
|
|
@@ -769,7 +780,7 @@ OPTIONS
|
|
|
769
780
|
after publish and digital signature
|
|
770
781
|
```
|
|
771
782
|
|
|
772
|
-
_See code: [src/commands/npm/package/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
783
|
+
_See code: [src/commands/npm/package/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/npm/package/release.ts)_
|
|
773
784
|
|
|
774
785
|
## `sfdx npm:release:validate [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
775
786
|
|
|
@@ -790,7 +801,7 @@ OPTIONS
|
|
|
790
801
|
(only works with --json flag)
|
|
791
802
|
```
|
|
792
803
|
|
|
793
|
-
_See code: [src/commands/npm/release/validate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
804
|
+
_See code: [src/commands/npm/release/validate.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/npm/release/validate.ts)_
|
|
794
805
|
|
|
795
806
|
## `sfdx plugins:trust:verify -n <string> [-r <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
796
807
|
|
|
@@ -863,7 +874,7 @@ EXAMPLES
|
|
|
863
874
|
sfdx repositories --json | jq -r '.result[] | select(.name=="sfdx-core") | .packages[] | .url
|
|
864
875
|
```
|
|
865
876
|
|
|
866
|
-
_See code: [src/commands/repositories/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
877
|
+
_See code: [src/commands/repositories/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/repositories/index.ts)_
|
|
867
878
|
|
|
868
879
|
## `sfdx typescript:update [-v <string>] [-t <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
869
880
|
|
|
@@ -890,6 +901,6 @@ OPTIONS
|
|
|
890
901
|
this command invocation
|
|
891
902
|
```
|
|
892
903
|
|
|
893
|
-
_See code: [src/commands/typescript/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.
|
|
904
|
+
_See code: [src/commands/typescript/update.ts](https://github.com/salesforcecli/plugin-release-management/blob/v2.10.2/src/commands/typescript/update.ts)_
|
|
894
905
|
|
|
895
906
|
<!-- 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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AM,EAAE,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
|
}
|