@salesforce/plugin-release-management 4.7.33 → 5.0.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 +78 -71
- package/lib/amazonS3.js +5 -2
- package/lib/amazonS3.js.map +1 -1
- package/lib/codeSigning/packAndSign.js +17 -18
- package/lib/codeSigning/packAndSign.js.map +1 -1
- package/lib/commands/cli/tarballs/prepare.js +2 -3
- package/lib/commands/cli/tarballs/prepare.js.map +1 -1
- package/lib/repository.js +1 -14
- package/lib/repository.js.map +1 -1
- package/npm-shrinkwrap.json +10463 -14625
- package/oclif.lock +1192 -3081
- package/oclif.manifest.json +195 -67
- package/package.json +13 -14
- package/lib/codeSigning/NpmName.d.ts +0 -16
- package/lib/codeSigning/NpmName.js +0 -80
- package/lib/codeSigning/NpmName.js.map +0 -1
package/README.md
CHANGED
|
@@ -8,23 +8,11 @@ Plugin designed to handle all tasks related to signing, releasing, and testing n
|
|
|
8
8
|
|
|
9
9
|
The following steps are automated for package releases
|
|
10
10
|
|
|
11
|
-
### Version Bump
|
|
11
|
+
### Version Bump | Prerelease | ChangeLog
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
This plugin will not bump your package version for you. Use https://github.com/salesforcecli/github-workflows?tab=readme-ov-file#githubrelease and conventional commit tags to manage that.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
NOTE: We consider the `chore`, `style`, `docs`, `ci`, `test` commit types to be "non-releasable", meaning that if all the commits are of those types then we do not publish a new version. However, if you've manually bumped the version in the package.json then the plugin will publish that version regardless of the commit types.
|
|
18
|
-
|
|
19
|
-
#### `--prerelease`
|
|
20
|
-
|
|
21
|
-
1. If you've manually bumped the version in the package.json, the prerelease tag will not be added if it's not already there. For example, if you want to do a prerelease for a new major version, you will want to update the package version to `X.0.0-<your-prerelease-tag>`.
|
|
22
|
-
|
|
23
|
-
2. When using the `--prerelease` flag, `standard-version` will bump both the prerelease version and the package version, e.g. `3.0.0-alpha.0` => `3.0.1-alpha.1`. See https://github.com/conventional-changelog/standard-version#release-as-a-pre-release for more
|
|
24
|
-
|
|
25
|
-
### Changelogs
|
|
26
|
-
|
|
27
|
-
`standard-version` automatically handles this for us as well. Again you must adhere to the [conventional commits specification](https://www.conventionalcommits.org/en/v1.0.0/) in order for the changelog generation to work.
|
|
15
|
+
It used to.
|
|
28
16
|
|
|
29
17
|
### Build
|
|
30
18
|
|
|
@@ -124,8 +112,8 @@ promote a s3 channel
|
|
|
124
112
|
|
|
125
113
|
```
|
|
126
114
|
USAGE
|
|
127
|
-
$ sfdx channel promote -t <value> -c sf|sfdx [--json] [-d] [-C <value>] [-p win|macos|deb]
|
|
128
|
-
<value>] [-i] [-x] [-T linux-x64|linux-arm|win32-x64|win32-x86|darwin-x64] [-v <value>]
|
|
115
|
+
$ sfdx channel promote -t <value> -c sf|sfdx [--json] [--flags-dir <value>] [-d] [-C <value>] [-p win|macos|deb]
|
|
116
|
+
[-s <value>] [-m <value>] [-i] [-x] [-T linux-x64|linux-arm|win32-x64|win32-x86|darwin-x64] [-v <value>]
|
|
129
117
|
|
|
130
118
|
FLAGS
|
|
131
119
|
-C, --promote-from-channel=<value> the channel name that you want to promote
|
|
@@ -145,7 +133,8 @@ FLAGS
|
|
|
145
133
|
-x, --[no-]xz also upload xz
|
|
146
134
|
|
|
147
135
|
GLOBAL FLAGS
|
|
148
|
-
--
|
|
136
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
137
|
+
--json Format output as json.
|
|
149
138
|
|
|
150
139
|
DESCRIPTION
|
|
151
140
|
promote a s3 channel
|
|
@@ -156,7 +145,7 @@ EXAMPLES
|
|
|
156
145
|
$ sfdx channel promote --candidate latest-rc --target latest --platform win --platform mac
|
|
157
146
|
```
|
|
158
147
|
|
|
159
|
-
_See code: [src/commands/channel/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
148
|
+
_See code: [src/commands/channel/promote.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/channel/promote.ts)_
|
|
160
149
|
|
|
161
150
|
## `sfdx cli artifacts compare`
|
|
162
151
|
|
|
@@ -164,7 +153,7 @@ Look for breaking changes in artifacts (schemas and snapshots) from plugins. Mus
|
|
|
164
153
|
|
|
165
154
|
```
|
|
166
155
|
USAGE
|
|
167
|
-
$ sfdx cli artifacts compare [--json] [-p <value>] [-r <value>] [-c <value>]
|
|
156
|
+
$ sfdx cli artifacts compare [--json] [--flags-dir <value>] [-p <value>] [-r <value>] [-c <value>]
|
|
168
157
|
|
|
169
158
|
FLAGS
|
|
170
159
|
-c, --current=<value> Current CLI version to compare against. Defaults to the version on the CLI in the current
|
|
@@ -173,13 +162,14 @@ FLAGS
|
|
|
173
162
|
-r, --previous=<value> Previous CLI version to compare against. Defaults to the last published version.
|
|
174
163
|
|
|
175
164
|
GLOBAL FLAGS
|
|
176
|
-
--
|
|
165
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
166
|
+
--json Format output as json.
|
|
177
167
|
|
|
178
168
|
EXAMPLES
|
|
179
169
|
$ sfdx cli artifacts compare
|
|
180
170
|
```
|
|
181
171
|
|
|
182
|
-
_See code: [src/commands/cli/artifacts/compare.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
172
|
+
_See code: [src/commands/cli/artifacts/compare.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/cli/artifacts/compare.ts)_
|
|
183
173
|
|
|
184
174
|
## `sfdx cli install jit test`
|
|
185
175
|
|
|
@@ -187,19 +177,20 @@ Test that all JIT plugins can be successfully installed.
|
|
|
187
177
|
|
|
188
178
|
```
|
|
189
179
|
USAGE
|
|
190
|
-
$ sfdx cli install jit test [--json] [-j <value>]
|
|
180
|
+
$ sfdx cli install jit test [--json] [--flags-dir <value>] [-j <value>]
|
|
191
181
|
|
|
192
182
|
FLAGS
|
|
193
183
|
-j, --jit-plugin=<value>... JIT plugin(s) to test, example: @salesforce/plugin-community
|
|
194
184
|
|
|
195
185
|
GLOBAL FLAGS
|
|
196
|
-
--
|
|
186
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
187
|
+
--json Format output as json.
|
|
197
188
|
|
|
198
189
|
EXAMPLES
|
|
199
190
|
$ sfdx cli install jit test
|
|
200
191
|
```
|
|
201
192
|
|
|
202
|
-
_See code: [src/commands/cli/install/jit/test.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
193
|
+
_See code: [src/commands/cli/install/jit/test.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/cli/install/jit/test.ts)_
|
|
203
194
|
|
|
204
195
|
## `sfdx cli install test`
|
|
205
196
|
|
|
@@ -207,7 +198,7 @@ install sf or sfdx
|
|
|
207
198
|
|
|
208
199
|
```
|
|
209
200
|
USAGE
|
|
210
|
-
$ sfdx cli install test -c sf|sfdx -m installer|npm|tarball [--json] [--channel
|
|
201
|
+
$ sfdx cli install test -c sf|sfdx -m installer|npm|tarball [--json] [--flags-dir <value>] [--channel
|
|
211
202
|
legacy|stable|stable-rc|latest|latest-rc] [--output-file <value>]
|
|
212
203
|
|
|
213
204
|
FLAGS
|
|
@@ -220,7 +211,8 @@ FLAGS
|
|
|
220
211
|
--output-file=<value> [default: test-results.json] the file to write the JSON results to (must be .json)
|
|
221
212
|
|
|
222
213
|
GLOBAL FLAGS
|
|
223
|
-
--
|
|
214
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
215
|
+
--json Format output as json.
|
|
224
216
|
|
|
225
217
|
DESCRIPTION
|
|
226
218
|
install sf or sfdx
|
|
@@ -239,7 +231,7 @@ EXAMPLES
|
|
|
239
231
|
$ sfdx cli install test --cli sf --method tarball --channel stable-rc
|
|
240
232
|
```
|
|
241
233
|
|
|
242
|
-
_See code: [src/commands/cli/install/test.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
234
|
+
_See code: [src/commands/cli/install/test.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/cli/install/test.ts)_
|
|
243
235
|
|
|
244
236
|
## `sfdx cli release automerge`
|
|
245
237
|
|
|
@@ -247,7 +239,8 @@ Attempt to automerge nightly PR
|
|
|
247
239
|
|
|
248
240
|
```
|
|
249
241
|
USAGE
|
|
250
|
-
$ sfdx cli release automerge (--owner <value> --repo <value>) --pull-number <value> [--json] [-
|
|
242
|
+
$ sfdx cli release automerge (--owner <value> --repo <value>) --pull-number <value> [--json] [--flags-dir <value>] [-d]
|
|
243
|
+
[--verbose]
|
|
251
244
|
|
|
252
245
|
FLAGS
|
|
253
246
|
-d, --dry-run Run all checks, but do not merge PR
|
|
@@ -257,7 +250,8 @@ FLAGS
|
|
|
257
250
|
--verbose Show additional debug output
|
|
258
251
|
|
|
259
252
|
GLOBAL FLAGS
|
|
260
|
-
--
|
|
253
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
254
|
+
--json Format output as json.
|
|
261
255
|
|
|
262
256
|
DESCRIPTION
|
|
263
257
|
Attempt to automerge nightly PR
|
|
@@ -268,7 +262,7 @@ EXAMPLES
|
|
|
268
262
|
$ sfdx cli release automerge --owner salesforcecli --repo sfdx-cli --pul-number 1049
|
|
269
263
|
```
|
|
270
264
|
|
|
271
|
-
_See code: [src/commands/cli/release/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
265
|
+
_See code: [src/commands/cli/release/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/cli/release/automerge.ts)_
|
|
272
266
|
|
|
273
267
|
## `sfdx cli release build`
|
|
274
268
|
|
|
@@ -276,8 +270,9 @@ builds a new release from a designated starting point and optionally creates PR
|
|
|
276
270
|
|
|
277
271
|
```
|
|
278
272
|
USAGE
|
|
279
|
-
$ sfdx cli release build -c <value> [--json] [-d <value>] [-g <value>] [--build-only]
|
|
280
|
-
<value>] [--pinned-deps] [--jit] [--label <value>] [--patch] [--empty] [--pr-base-branch
|
|
273
|
+
$ sfdx cli release build -c <value> [--json] [--flags-dir <value>] [-d <value>] [-g <value>] [--build-only]
|
|
274
|
+
[--resolutions] [--only <value>] [--pinned-deps] [--jit] [--label <value>] [--patch] [--empty] [--pr-base-branch
|
|
275
|
+
<value>]
|
|
281
276
|
|
|
282
277
|
FLAGS
|
|
283
278
|
-c, --release-channel=<value> (required) the channel intended for this release, examples: nightly, latest-rc,
|
|
@@ -299,7 +294,8 @@ FLAGS
|
|
|
299
294
|
--[no-]resolutions bump the versions of packages listed in the resolutions section
|
|
300
295
|
|
|
301
296
|
GLOBAL FLAGS
|
|
302
|
-
--
|
|
297
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
298
|
+
--json Format output as json.
|
|
303
299
|
|
|
304
300
|
DESCRIPTION
|
|
305
301
|
builds a new release from a designated starting point and optionally creates PR in Github
|
|
@@ -329,7 +325,7 @@ EXAMPLES
|
|
|
329
325
|
$ sfdx cli release build --only @salesforce/plugin-source,@salesforce/plugin-info@1.2.3
|
|
330
326
|
```
|
|
331
327
|
|
|
332
|
-
_See code: [src/commands/cli/release/build.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
328
|
+
_See code: [src/commands/cli/release/build.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/cli/release/build.ts)_
|
|
333
329
|
|
|
334
330
|
## `sfdx cli releasenotes`
|
|
335
331
|
|
|
@@ -337,7 +333,7 @@ pull all relevant information for writing release notes.
|
|
|
337
333
|
|
|
338
334
|
```
|
|
339
335
|
USAGE
|
|
340
|
-
$ sfdx cli releasenotes -c sf|sfdx [--json] [-s <value>] [-m]
|
|
336
|
+
$ sfdx cli releasenotes -c sf|sfdx [--json] [--flags-dir <value>] [-s <value>] [-m]
|
|
341
337
|
|
|
342
338
|
FLAGS
|
|
343
339
|
-c, --cli=<option> (required) the cli to pull information for
|
|
@@ -346,7 +342,8 @@ FLAGS
|
|
|
346
342
|
-s, --since=<value> the version number of the previous release. Defaults to the latest-rc version on npm
|
|
347
343
|
|
|
348
344
|
GLOBAL FLAGS
|
|
349
|
-
--
|
|
345
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
346
|
+
--json Format output as json.
|
|
350
347
|
|
|
351
348
|
DESCRIPTION
|
|
352
349
|
pull all relevant information for writing release notes.
|
|
@@ -369,7 +366,7 @@ EXAMPLES
|
|
|
369
366
|
$ sfdx cli releasenotes --cli sf --markdown > changes.md
|
|
370
367
|
```
|
|
371
368
|
|
|
372
|
-
_See code: [src/commands/cli/releasenotes.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
369
|
+
_See code: [src/commands/cli/releasenotes.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/cli/releasenotes.ts)_
|
|
373
370
|
|
|
374
371
|
## `sfdx cli tarballs prepare`
|
|
375
372
|
|
|
@@ -377,7 +374,7 @@ remove unnecessary files from node_modules
|
|
|
377
374
|
|
|
378
375
|
```
|
|
379
376
|
USAGE
|
|
380
|
-
$ sfdx cli tarballs prepare [--json] [-d] [-t] [--verbose]
|
|
377
|
+
$ sfdx cli tarballs prepare [--json] [--flags-dir <value>] [-d] [-t] [--verbose]
|
|
381
378
|
|
|
382
379
|
FLAGS
|
|
383
380
|
-d, --dryrun only show what would be removed from node_modules
|
|
@@ -385,7 +382,8 @@ FLAGS
|
|
|
385
382
|
--verbose show all files paths being removed
|
|
386
383
|
|
|
387
384
|
GLOBAL FLAGS
|
|
388
|
-
--
|
|
385
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
386
|
+
--json Format output as json.
|
|
389
387
|
|
|
390
388
|
DESCRIPTION
|
|
391
389
|
remove unnecessary files from node_modules
|
|
@@ -396,7 +394,7 @@ EXAMPLES
|
|
|
396
394
|
$ sfdx cli tarballs prepare
|
|
397
395
|
```
|
|
398
396
|
|
|
399
|
-
_See code: [src/commands/cli/tarballs/prepare.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
397
|
+
_See code: [src/commands/cli/tarballs/prepare.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/cli/tarballs/prepare.ts)_
|
|
400
398
|
|
|
401
399
|
## `sfdx cli tarballs smoke`
|
|
402
400
|
|
|
@@ -404,13 +402,14 @@ smoke tests for the sf CLI
|
|
|
404
402
|
|
|
405
403
|
```
|
|
406
404
|
USAGE
|
|
407
|
-
$ sfdx cli tarballs smoke [--json] [--verbose]
|
|
405
|
+
$ sfdx cli tarballs smoke [--json] [--flags-dir <value>] [--verbose]
|
|
408
406
|
|
|
409
407
|
FLAGS
|
|
410
408
|
--verbose show the --help output for each command
|
|
411
409
|
|
|
412
410
|
GLOBAL FLAGS
|
|
413
|
-
--
|
|
411
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
412
|
+
--json Format output as json.
|
|
414
413
|
|
|
415
414
|
DESCRIPTION
|
|
416
415
|
smoke tests for the sf CLI
|
|
@@ -425,7 +424,7 @@ EXAMPLES
|
|
|
425
424
|
$ sfdx cli tarballs smoke
|
|
426
425
|
```
|
|
427
426
|
|
|
428
|
-
_See code: [src/commands/cli/tarballs/smoke.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
427
|
+
_See code: [src/commands/cli/tarballs/smoke.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/cli/tarballs/smoke.ts)_
|
|
429
428
|
|
|
430
429
|
## `sfdx cli tarballs verify`
|
|
431
430
|
|
|
@@ -433,7 +432,7 @@ verify that tarballs are ready to be uploaded
|
|
|
433
432
|
|
|
434
433
|
```
|
|
435
434
|
USAGE
|
|
436
|
-
$ sfdx cli tarballs verify [--json] [-c sf|sfdx] [-w <value>]
|
|
435
|
+
$ sfdx cli tarballs verify [--json] [--flags-dir <value>] [-c sf|sfdx] [-w <value>]
|
|
437
436
|
|
|
438
437
|
FLAGS
|
|
439
438
|
-c, --cli=<option> [default: sfdx] the cli to verify
|
|
@@ -441,7 +440,8 @@ FLAGS
|
|
|
441
440
|
-w, --windows-username-buffer=<value> [default: 41] the number of characters to allow for windows usernames
|
|
442
441
|
|
|
443
442
|
GLOBAL FLAGS
|
|
444
|
-
--
|
|
443
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
444
|
+
--json Format output as json.
|
|
445
445
|
|
|
446
446
|
DESCRIPTION
|
|
447
447
|
verify that tarballs are ready to be uploaded
|
|
@@ -456,7 +456,7 @@ EXAMPLES
|
|
|
456
456
|
$ sfdx cli tarballs verify --cli sf
|
|
457
457
|
```
|
|
458
458
|
|
|
459
|
-
_See code: [src/commands/cli/tarballs/verify.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
459
|
+
_See code: [src/commands/cli/tarballs/verify.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/cli/tarballs/verify.ts)_
|
|
460
460
|
|
|
461
461
|
## `sfdx cli versions inspect`
|
|
462
462
|
|
|
@@ -465,7 +465,7 @@ inspect the CLI version across all install paths
|
|
|
465
465
|
```
|
|
466
466
|
USAGE
|
|
467
467
|
$ sfdx cli versions inspect -c legacy|stable|stable-rc|latest|latest-rc|nightly -l archive|npm --cli sf|sfdx [--json]
|
|
468
|
-
[-d <value>] [-s]
|
|
468
|
+
[--flags-dir <value>] [-d <value>] [-s]
|
|
469
469
|
|
|
470
470
|
FLAGS
|
|
471
471
|
-c, --channels=<option>... (required) the channel you want to inspect (for achives, latest and latest-rc are
|
|
@@ -479,7 +479,8 @@ FLAGS
|
|
|
479
479
|
<options: sf|sfdx>
|
|
480
480
|
|
|
481
481
|
GLOBAL FLAGS
|
|
482
|
-
--
|
|
482
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
483
|
+
--json Format output as json.
|
|
483
484
|
|
|
484
485
|
DESCRIPTION
|
|
485
486
|
inspect the CLI version across all install paths
|
|
@@ -508,7 +509,7 @@ EXAMPLES
|
|
|
508
509
|
$ sfdx cli versions inspect -l npm -c latest -d chalk -s
|
|
509
510
|
```
|
|
510
511
|
|
|
511
|
-
_See code: [src/commands/cli/versions/inspect.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
512
|
+
_See code: [src/commands/cli/versions/inspect.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/cli/versions/inspect.ts)_
|
|
512
513
|
|
|
513
514
|
## `sfdx dependabot automerge`
|
|
514
515
|
|
|
@@ -516,8 +517,8 @@ automatically merge one green, mergeable PR up to the specified maximum bump typ
|
|
|
516
517
|
|
|
517
518
|
```
|
|
518
519
|
USAGE
|
|
519
|
-
$ sfdx dependabot automerge -m major|minor|patch [--json] [-o <value> -r <value>] [-d] [-s]
|
|
520
|
-
merge|squash|rebase]
|
|
520
|
+
$ sfdx dependabot automerge -m major|minor|patch [--json] [--flags-dir <value>] [-o <value> -r <value>] [-d] [-s]
|
|
521
|
+
[--merge-method merge|squash|rebase]
|
|
521
522
|
|
|
522
523
|
FLAGS
|
|
523
524
|
-d, --dryrun only show what would happen if you consolidated dependabot PRs
|
|
@@ -532,7 +533,8 @@ FLAGS
|
|
|
532
533
|
<options: merge|squash|rebase>
|
|
533
534
|
|
|
534
535
|
GLOBAL FLAGS
|
|
535
|
-
--
|
|
536
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
537
|
+
--json Format output as json.
|
|
536
538
|
|
|
537
539
|
DESCRIPTION
|
|
538
540
|
automatically merge one green, mergeable PR up to the specified maximum bump type
|
|
@@ -547,7 +549,7 @@ EXAMPLES
|
|
|
547
549
|
$ sfdx dependabot automerge --max-version-bump major
|
|
548
550
|
```
|
|
549
551
|
|
|
550
|
-
_See code: [src/commands/dependabot/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
552
|
+
_See code: [src/commands/dependabot/automerge.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/dependabot/automerge.ts)_
|
|
551
553
|
|
|
552
554
|
## `sfdx github check closed`
|
|
553
555
|
|
|
@@ -555,14 +557,15 @@ Show open Github issues with GUS WI
|
|
|
555
557
|
|
|
556
558
|
```
|
|
557
559
|
USAGE
|
|
558
|
-
$ sfdx github check closed -o <value> --github-token <value> [--json]
|
|
560
|
+
$ sfdx github check closed -o <value> --github-token <value> [--json] [--flags-dir <value>]
|
|
559
561
|
|
|
560
562
|
FLAGS
|
|
561
563
|
-o, --gus=<value> (required) Username/alias of your GUS org connection
|
|
562
564
|
--github-token=<value> (required) Github token--store this in the environment as GITHUB_TOKEN
|
|
563
565
|
|
|
564
566
|
GLOBAL FLAGS
|
|
565
|
-
--
|
|
567
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
568
|
+
--json Format output as json.
|
|
566
569
|
|
|
567
570
|
DESCRIPTION
|
|
568
571
|
Show open Github issues with GUS WI
|
|
@@ -573,7 +576,7 @@ EXAMPLES
|
|
|
573
576
|
$ sfdx github check closed -o me@gus.com
|
|
574
577
|
```
|
|
575
578
|
|
|
576
|
-
_See code: [src/commands/github/check/closed.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
579
|
+
_See code: [src/commands/github/check/closed.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/github/check/closed.ts)_
|
|
577
580
|
|
|
578
581
|
## `sfdx npm dependencies pin`
|
|
579
582
|
|
|
@@ -581,14 +584,15 @@ lock a list of dependencies to a target tag or default to 'latest', place these
|
|
|
581
584
|
|
|
582
585
|
```
|
|
583
586
|
USAGE
|
|
584
|
-
$ sfdx npm dependencies pin [--json] [-d] [-t <value>]
|
|
587
|
+
$ sfdx npm dependencies pin [--json] [--flags-dir <value>] [-d] [-t <value>]
|
|
585
588
|
|
|
586
589
|
FLAGS
|
|
587
590
|
-d, --dryrun If true, will not make any changes to the package.json
|
|
588
591
|
-t, --tag=<value> [default: latest] The name of the tag you want, e.g. 'latest-rc', or 'latest'
|
|
589
592
|
|
|
590
593
|
GLOBAL FLAGS
|
|
591
|
-
--
|
|
594
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
595
|
+
--json Format output as json.
|
|
592
596
|
|
|
593
597
|
DESCRIPTION
|
|
594
598
|
lock a list of dependencies to a target tag or default to 'latest', place these entries in 'pinnedDependencies' entry
|
|
@@ -598,7 +602,7 @@ DESCRIPTION
|
|
|
598
602
|
in the package.json
|
|
599
603
|
```
|
|
600
604
|
|
|
601
|
-
_See code: [src/commands/npm/dependencies/pin.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
605
|
+
_See code: [src/commands/npm/dependencies/pin.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/npm/dependencies/pin.ts)_
|
|
602
606
|
|
|
603
607
|
## `sfdx npm package release`
|
|
604
608
|
|
|
@@ -606,8 +610,8 @@ publish npm package
|
|
|
606
610
|
|
|
607
611
|
```
|
|
608
612
|
USAGE
|
|
609
|
-
$ sfdx npm package release [--json] [-d] [-s] [-t <value>] [-a <value>] [--install] [--prerelease
|
|
610
|
-
[--githubtag <value>]
|
|
613
|
+
$ sfdx npm package release [--json] [--flags-dir <value>] [-d] [-s] [-t <value>] [-a <value>] [--install] [--prerelease
|
|
614
|
+
<value>] [--verify] [--githubtag <value>]
|
|
611
615
|
|
|
612
616
|
FLAGS
|
|
613
617
|
-a, --npmaccess=<value> [default: public] access level to use when publishing to npm
|
|
@@ -621,7 +625,8 @@ FLAGS
|
|
|
621
625
|
--[no-]verify verify npm registry has new version after publish and digital signature
|
|
622
626
|
|
|
623
627
|
GLOBAL FLAGS
|
|
624
|
-
--
|
|
628
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
629
|
+
--json Format output as json.
|
|
625
630
|
|
|
626
631
|
DESCRIPTION
|
|
627
632
|
publish npm package
|
|
@@ -629,7 +634,7 @@ DESCRIPTION
|
|
|
629
634
|
publish npm package
|
|
630
635
|
```
|
|
631
636
|
|
|
632
|
-
_See code: [src/commands/npm/package/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
637
|
+
_See code: [src/commands/npm/package/release.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/npm/package/release.ts)_
|
|
633
638
|
|
|
634
639
|
## `sfdx plugins trust verify`
|
|
635
640
|
|
|
@@ -637,14 +642,15 @@ Validate a digital signature.
|
|
|
637
642
|
|
|
638
643
|
```
|
|
639
644
|
USAGE
|
|
640
|
-
$ sfdx plugins trust verify -n <value> [--json] [-r <value>]
|
|
645
|
+
$ sfdx plugins trust verify -n <value> [--json] [--flags-dir <value>] [-r <value>]
|
|
641
646
|
|
|
642
647
|
FLAGS
|
|
643
648
|
-n, --npm=<value> (required) Specify the npm name. This can include a tag/version.
|
|
644
649
|
-r, --registry=<value> The registry name. The behavior is the same as npm.
|
|
645
650
|
|
|
646
651
|
GLOBAL FLAGS
|
|
647
|
-
--
|
|
652
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
653
|
+
--json Format output as json.
|
|
648
654
|
|
|
649
655
|
DESCRIPTION
|
|
650
656
|
Validate a digital signature.
|
|
@@ -657,7 +663,7 @@ EXAMPLES
|
|
|
657
663
|
$ sfdx plugins trust verify --npm @scope/npmName
|
|
658
664
|
```
|
|
659
665
|
|
|
660
|
-
_See code: [@salesforce/plugin-trust](https://github.com/salesforcecli/plugin-trust/blob/3.3
|
|
666
|
+
_See code: [@salesforce/plugin-trust](https://github.com/salesforcecli/plugin-trust/blob/3.5.3/src/commands/plugins/trust/verify.ts)_
|
|
661
667
|
|
|
662
668
|
## `sfdx repositories`
|
|
663
669
|
|
|
@@ -665,8 +671,8 @@ list repositories owned and supported by Salesforce CLI
|
|
|
665
671
|
|
|
666
672
|
```
|
|
667
673
|
USAGE
|
|
668
|
-
$ sfdx repositories [--json] [--columns <value> | -x] [--filter <value>] [--no-header |
|
|
669
|
-
[--output csv|json|yaml | | ] [--sort <value>]
|
|
674
|
+
$ sfdx repositories [--json] [--flags-dir <value>] [--columns <value> | -x] [--filter <value>] [--no-header |
|
|
675
|
+
[--csv | --no-truncate]] [--output csv|json|yaml | | ] [--sort <value>]
|
|
670
676
|
|
|
671
677
|
FLAGS
|
|
672
678
|
-x, --extended show extra columns
|
|
@@ -680,7 +686,8 @@ FLAGS
|
|
|
680
686
|
--sort=<value> property to sort by (prepend '-' for descending)
|
|
681
687
|
|
|
682
688
|
GLOBAL FLAGS
|
|
683
|
-
--
|
|
689
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
690
|
+
--json Format output as json.
|
|
684
691
|
|
|
685
692
|
DESCRIPTION
|
|
686
693
|
list repositories owned and supported by Salesforce CLI
|
|
@@ -695,6 +702,6 @@ EXAMPLES
|
|
|
695
702
|
$ sfdx repositories --json | jq -r '.result[] | select(.name=="sfdx-core") | .packages[] | .url
|
|
696
703
|
```
|
|
697
704
|
|
|
698
|
-
_See code: [src/commands/repositories/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/
|
|
705
|
+
_See code: [src/commands/repositories/index.ts](https://github.com/salesforcecli/plugin-release-management/blob/5.0.0/src/commands/repositories/index.ts)_
|
|
699
706
|
|
|
700
707
|
<!-- commandsstop -->
|
package/lib/amazonS3.js
CHANGED
|
@@ -43,9 +43,12 @@ export class AmazonS3 {
|
|
|
43
43
|
return JSON.parse(fs.readFileSync(filename, 'utf8'));
|
|
44
44
|
}
|
|
45
45
|
async getObject(options) {
|
|
46
|
-
options.Key = options.Key.replace(BASE_URL, '').replace(/^\//, '');
|
|
47
46
|
const object = (await this.s3
|
|
48
|
-
.getObject({
|
|
47
|
+
.getObject({
|
|
48
|
+
...options,
|
|
49
|
+
Key: options.Key.replace(BASE_URL, '').replace(/^\//, ''),
|
|
50
|
+
...{ Bucket: this.options.bucket ?? BUCKET },
|
|
51
|
+
})
|
|
49
52
|
.promise());
|
|
50
53
|
return object;
|
|
51
54
|
}
|
package/lib/amazonS3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amazonS3.js","sourceRoot":"","sources":["../src/amazonS3.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,GAAG,MAAM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AAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3E,CAAC,CAAC"}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under the BSD 3-Clause license.
|
|
6
6
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
7
|
*/
|
|
8
|
-
/* eslint-disable no-underscore-dangle */
|
|
9
8
|
import fs from 'node:fs/promises';
|
|
10
9
|
import cp from 'node:child_process';
|
|
11
10
|
import { EOL } from 'node:os';
|
|
@@ -13,43 +12,43 @@ import { join as pathJoin } from 'node:path';
|
|
|
13
12
|
import { Logger } from '@salesforce/core';
|
|
14
13
|
import { NamedError } from '@salesforce/kit';
|
|
15
14
|
import { ProxyAgent } from 'proxy-agent';
|
|
15
|
+
import { parseNpmName } from '@salesforce/plugin-trust/npmName';
|
|
16
16
|
import { signVerifyUpload as sign2, getSfdxProperty } from './SimplifiedSigning.js';
|
|
17
17
|
import { ExecProcessFailed } from './error.js';
|
|
18
|
-
import { parseNpmName } from './NpmName.js';
|
|
19
18
|
class PathGetter {
|
|
20
19
|
static packageJson = 'package.json';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
#packageJson;
|
|
21
|
+
#packageJsonBak;
|
|
22
|
+
#target;
|
|
23
|
+
#cwd;
|
|
25
24
|
constructor(target) {
|
|
26
|
-
this
|
|
25
|
+
this.#cwd = process.cwd();
|
|
27
26
|
if (!target) {
|
|
28
|
-
this
|
|
27
|
+
this.#target = this.#cwd;
|
|
29
28
|
}
|
|
30
|
-
else if (target?.includes(this
|
|
31
|
-
this
|
|
29
|
+
else if (target?.includes(this.#cwd)) {
|
|
30
|
+
this.#target = target;
|
|
32
31
|
}
|
|
33
32
|
else {
|
|
34
|
-
this
|
|
33
|
+
this.#target = pathJoin(this.#cwd, target);
|
|
35
34
|
}
|
|
36
|
-
this
|
|
37
|
-
this
|
|
35
|
+
this.#packageJson = pathJoin(this.#target, PathGetter.packageJson);
|
|
36
|
+
this.#packageJsonBak = pathJoin(this.#target, `${PathGetter.packageJson}.bak`);
|
|
38
37
|
}
|
|
39
38
|
get packageJson() {
|
|
40
|
-
return this
|
|
39
|
+
return this.#packageJson;
|
|
41
40
|
}
|
|
42
41
|
get packageJsonBak() {
|
|
43
|
-
return this
|
|
42
|
+
return this.#packageJsonBak;
|
|
44
43
|
}
|
|
45
44
|
get target() {
|
|
46
|
-
return this
|
|
45
|
+
return this.#target;
|
|
47
46
|
}
|
|
48
47
|
getFile(filename) {
|
|
49
|
-
return pathJoin(this
|
|
48
|
+
return pathJoin(this.#target, filename);
|
|
50
49
|
}
|
|
51
50
|
getIgnoreFile(filename) {
|
|
52
|
-
return pathJoin(this
|
|
51
|
+
return pathJoin(this.#cwd, filename);
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
let cliUx;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packAndSign.js","sourceRoot":"","sources":["../../src/codeSigning/packAndSign.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAEH,
|
|
1
|
+
{"version":3,"file":"packAndSign.js","sourceRoot":"","sources":["../../src/codeSigning/packAndSign.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,WAAW,CAAC;AAG7C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,gBAAgB,IAAI,KAAK,EAAmB,eAAe,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@ import shelljs from 'shelljs';
|
|
|
9
9
|
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
10
10
|
import { Messages } from '@salesforce/core';
|
|
11
11
|
import chalk from 'chalk';
|
|
12
|
+
import { omit } from '@salesforce/kit';
|
|
12
13
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
13
14
|
const messages = Messages.loadMessages('@salesforce/plugin-release-management', 'cli.tarballs.prepare');
|
|
14
15
|
/**
|
|
@@ -127,8 +128,6 @@ const find = async (globPattern, options = {}) => {
|
|
|
127
128
|
patterns.push(exclusionPattern);
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
|
-
|
|
131
|
-
delete options.excludeDirectories;
|
|
132
|
-
return fg(patterns, options);
|
|
131
|
+
return fg(patterns, options.excludeDirectories ? omit(options, ['excludeDirectories']) : options);
|
|
133
132
|
};
|
|
134
133
|
//# sourceMappingURL=prepare.js.map
|