@simplysf/simply-package 2.1.0 → 2.3.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 +62 -2
- package/lib/commands/simply/package/dependencies/manage.d.ts +20 -0
- package/lib/commands/simply/package/dependencies/manage.js +196 -0
- package/lib/commands/simply/package/dependencies/manage.js.map +1 -0
- package/lib/common/packageVersionService.d.ts +26 -0
- package/lib/common/packageVersionService.js +314 -0
- package/lib/common/packageVersionService.js.map +1 -0
- package/lib/common/sfdxProjectService.d.ts +12 -0
- package/lib/common/sfdxProjectService.js +129 -0
- package/lib/common/sfdxProjectService.js.map +1 -0
- package/lib/schemas/manage/dependencyChange.d.ts +18 -0
- package/lib/schemas/manage/dependencyChange.js +17 -0
- package/lib/schemas/manage/dependencyChange.js.map +1 -0
- package/lib/schemas/manage/parsedDependency.d.ts +12 -0
- package/lib/schemas/manage/parsedDependency.js +39 -0
- package/lib/schemas/manage/parsedDependency.js.map +1 -0
- package/messages/simply.package.dependencies.manage.md +86 -0
- package/npm-shrinkwrap.json +32 -137
- package/oclif.manifest.json +229 -109
- package/package.json +2 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,113 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"simply:package:version:cleanup": {
|
|
4
|
-
"aliases": [],
|
|
5
|
-
"args": {},
|
|
6
|
-
"description": "Delete package versions for a given package provided a MAJOR.MINOR.PATCH matcher. Does not delete released pacakge versions.",
|
|
7
|
-
"examples": [
|
|
8
|
-
"<%= config.bin %> <%= command.id %> --package 0Hoxx00000000CqCAI --matcher 2.10.0 --target-dev-hub myDevHub"
|
|
9
|
-
],
|
|
10
|
-
"flags": {
|
|
11
|
-
"json": {
|
|
12
|
-
"description": "Format output as json.",
|
|
13
|
-
"helpGroup": "GLOBAL",
|
|
14
|
-
"name": "json",
|
|
15
|
-
"allowNo": false,
|
|
16
|
-
"type": "boolean"
|
|
17
|
-
},
|
|
18
|
-
"flags-dir": {
|
|
19
|
-
"helpGroup": "GLOBAL",
|
|
20
|
-
"name": "flags-dir",
|
|
21
|
-
"summary": "Import flag values from a directory.",
|
|
22
|
-
"hasDynamicHelp": false,
|
|
23
|
-
"multiple": false,
|
|
24
|
-
"type": "option"
|
|
25
|
-
},
|
|
26
|
-
"api-version": {
|
|
27
|
-
"description": "Override the api version used for api requests made by this command",
|
|
28
|
-
"name": "api-version",
|
|
29
|
-
"hasDynamicHelp": false,
|
|
30
|
-
"multiple": false,
|
|
31
|
-
"type": "option"
|
|
32
|
-
},
|
|
33
|
-
"matcher": {
|
|
34
|
-
"char": "s",
|
|
35
|
-
"description": "The MAJOR.MINOR.PATCH matcher that should be used to find package versions to delete.",
|
|
36
|
-
"name": "matcher",
|
|
37
|
-
"required": true,
|
|
38
|
-
"summary": "MAJOR.MINOR.PATCH",
|
|
39
|
-
"hasDynamicHelp": false,
|
|
40
|
-
"multiple": false,
|
|
41
|
-
"type": "option"
|
|
42
|
-
},
|
|
43
|
-
"package": {
|
|
44
|
-
"char": "p",
|
|
45
|
-
"description": "The 0Ht Package Id that you wish to cleanup versions for.",
|
|
46
|
-
"name": "package",
|
|
47
|
-
"required": true,
|
|
48
|
-
"summary": "Package Id",
|
|
49
|
-
"hasDynamicHelp": false,
|
|
50
|
-
"multiple": false,
|
|
51
|
-
"type": "option"
|
|
52
|
-
},
|
|
53
|
-
"target-dev-hub": {
|
|
54
|
-
"char": "v",
|
|
55
|
-
"name": "target-dev-hub",
|
|
56
|
-
"noCacheDefault": true,
|
|
57
|
-
"required": true,
|
|
58
|
-
"summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
|
|
59
|
-
"hasDynamicHelp": true,
|
|
60
|
-
"multiple": false,
|
|
61
|
-
"type": "option"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"hasDynamicHelp": true,
|
|
65
|
-
"hiddenAliases": [],
|
|
66
|
-
"id": "simply:package:version:cleanup",
|
|
67
|
-
"pluginAlias": "@simplysf/simply-package",
|
|
68
|
-
"pluginName": "@simplysf/simply-package",
|
|
69
|
-
"pluginType": "core",
|
|
70
|
-
"strict": true,
|
|
71
|
-
"summary": "Cleanup package versions.",
|
|
72
|
-
"enableJsonFlag": true,
|
|
73
|
-
"requiresProject": true,
|
|
74
|
-
"isESM": true,
|
|
75
|
-
"relativePath": [
|
|
76
|
-
"lib",
|
|
77
|
-
"commands",
|
|
78
|
-
"simply",
|
|
79
|
-
"package",
|
|
80
|
-
"version",
|
|
81
|
-
"cleanup.js"
|
|
82
|
-
],
|
|
83
|
-
"aliasPermutations": [],
|
|
84
|
-
"permutations": [
|
|
85
|
-
"simply:package:version:cleanup",
|
|
86
|
-
"package:simply:version:cleanup",
|
|
87
|
-
"package:version:simply:cleanup",
|
|
88
|
-
"package:version:cleanup:simply",
|
|
89
|
-
"simply:version:package:cleanup",
|
|
90
|
-
"version:simply:package:cleanup",
|
|
91
|
-
"version:package:simply:cleanup",
|
|
92
|
-
"version:package:cleanup:simply",
|
|
93
|
-
"simply:version:cleanup:package",
|
|
94
|
-
"version:simply:cleanup:package",
|
|
95
|
-
"version:cleanup:simply:package",
|
|
96
|
-
"version:cleanup:package:simply",
|
|
97
|
-
"simply:package:cleanup:version",
|
|
98
|
-
"package:simply:cleanup:version",
|
|
99
|
-
"package:cleanup:simply:version",
|
|
100
|
-
"package:cleanup:version:simply",
|
|
101
|
-
"simply:cleanup:package:version",
|
|
102
|
-
"cleanup:simply:package:version",
|
|
103
|
-
"cleanup:package:simply:version",
|
|
104
|
-
"cleanup:package:version:simply",
|
|
105
|
-
"simply:cleanup:version:package",
|
|
106
|
-
"cleanup:simply:version:package",
|
|
107
|
-
"cleanup:version:simply:package",
|
|
108
|
-
"cleanup:version:package:simply"
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
3
|
"simply:package:dependencies:install": {
|
|
112
4
|
"aliases": [],
|
|
113
5
|
"args": {},
|
|
@@ -317,7 +209,235 @@
|
|
|
317
209
|
"install:dependencies:simply:package",
|
|
318
210
|
"install:dependencies:package:simply"
|
|
319
211
|
]
|
|
212
|
+
},
|
|
213
|
+
"simply:package:dependencies:manage": {
|
|
214
|
+
"aliases": [],
|
|
215
|
+
"args": {},
|
|
216
|
+
"description": "Interactively updates package dependency versions in sfdx-project.json by querying the Dev Hub for available versions. Supports interactive selection or automatic update to the latest released or latest build version.\n\nProject-level configuration (in sfdx-project.json) is read from the following keys:\n\n- plugins.simply.dependencies.ignore — array of Package2Ids or aliases to leave unchanged\n- plugins.simply.package.brancheswithreleasedversions — array of branch names that contain released versions",
|
|
217
|
+
"examples": [
|
|
218
|
+
"<%= config.bin %> <%= command.id %> --target-dev-hub myDevHub",
|
|
219
|
+
"<%= config.bin %> <%= command.id %> --target-dev-hub myDevHub --branch my-feature-branch",
|
|
220
|
+
"<%= config.bin %> <%= command.id %> --target-dev-hub myDevHub --update-to-released",
|
|
221
|
+
"<%= config.bin %> <%= command.id %> --target-dev-hub myDevHub --update-to-latest"
|
|
222
|
+
],
|
|
223
|
+
"flags": {
|
|
224
|
+
"json": {
|
|
225
|
+
"description": "Format output as json.",
|
|
226
|
+
"helpGroup": "GLOBAL",
|
|
227
|
+
"name": "json",
|
|
228
|
+
"allowNo": false,
|
|
229
|
+
"type": "boolean"
|
|
230
|
+
},
|
|
231
|
+
"flags-dir": {
|
|
232
|
+
"helpGroup": "GLOBAL",
|
|
233
|
+
"name": "flags-dir",
|
|
234
|
+
"summary": "Import flag values from a directory.",
|
|
235
|
+
"hasDynamicHelp": false,
|
|
236
|
+
"multiple": false,
|
|
237
|
+
"type": "option"
|
|
238
|
+
},
|
|
239
|
+
"branch": {
|
|
240
|
+
"char": "b",
|
|
241
|
+
"description": "When specified, the command will include the latest build on this branch as a selectable option for each dependency.",
|
|
242
|
+
"name": "branch",
|
|
243
|
+
"summary": "Package branch to consider when evaluating version options.",
|
|
244
|
+
"hasDynamicHelp": false,
|
|
245
|
+
"multiple": false,
|
|
246
|
+
"type": "option"
|
|
247
|
+
},
|
|
248
|
+
"update-to-released": {
|
|
249
|
+
"description": "When specified, all dependencies managed by the Dev Hub are automatically updated to the latest released package version without interactive prompts. Mutually exclusive with --update-to-latest.",
|
|
250
|
+
"exclusive": [
|
|
251
|
+
"update-to-latest"
|
|
252
|
+
],
|
|
253
|
+
"name": "update-to-released",
|
|
254
|
+
"summary": "Automatically update all dependencies to the latest released version.",
|
|
255
|
+
"allowNo": false,
|
|
256
|
+
"type": "boolean"
|
|
257
|
+
},
|
|
258
|
+
"update-to-latest": {
|
|
259
|
+
"description": "When specified, all dependencies managed by the Dev Hub are automatically set to a non-pinned X.Y.Z.LATEST version number without interactive prompts. Mutually exclusive with --update-to-released.",
|
|
260
|
+
"exclusive": [
|
|
261
|
+
"update-to-released"
|
|
262
|
+
],
|
|
263
|
+
"name": "update-to-latest",
|
|
264
|
+
"summary": "Automatically set all dependencies to the latest non-pinned build.",
|
|
265
|
+
"allowNo": false,
|
|
266
|
+
"type": "boolean"
|
|
267
|
+
},
|
|
268
|
+
"api-version": {
|
|
269
|
+
"description": "Override the api version used for api requests made by this command",
|
|
270
|
+
"name": "api-version",
|
|
271
|
+
"hasDynamicHelp": false,
|
|
272
|
+
"multiple": false,
|
|
273
|
+
"type": "option"
|
|
274
|
+
},
|
|
275
|
+
"target-dev-hub": {
|
|
276
|
+
"char": "v",
|
|
277
|
+
"name": "target-dev-hub",
|
|
278
|
+
"noCacheDefault": true,
|
|
279
|
+
"required": true,
|
|
280
|
+
"summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
|
|
281
|
+
"hasDynamicHelp": true,
|
|
282
|
+
"multiple": false,
|
|
283
|
+
"type": "option"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"hasDynamicHelp": true,
|
|
287
|
+
"hiddenAliases": [],
|
|
288
|
+
"id": "simply:package:dependencies:manage",
|
|
289
|
+
"pluginAlias": "@simplysf/simply-package",
|
|
290
|
+
"pluginName": "@simplysf/simply-package",
|
|
291
|
+
"pluginType": "core",
|
|
292
|
+
"strict": true,
|
|
293
|
+
"summary": "Manage package dependency versions for a Salesforce project.",
|
|
294
|
+
"enableJsonFlag": true,
|
|
295
|
+
"requiresProject": true,
|
|
296
|
+
"isESM": true,
|
|
297
|
+
"relativePath": [
|
|
298
|
+
"lib",
|
|
299
|
+
"commands",
|
|
300
|
+
"simply",
|
|
301
|
+
"package",
|
|
302
|
+
"dependencies",
|
|
303
|
+
"manage.js"
|
|
304
|
+
],
|
|
305
|
+
"aliasPermutations": [],
|
|
306
|
+
"permutations": [
|
|
307
|
+
"simply:package:dependencies:manage",
|
|
308
|
+
"package:simply:dependencies:manage",
|
|
309
|
+
"package:dependencies:simply:manage",
|
|
310
|
+
"package:dependencies:manage:simply",
|
|
311
|
+
"simply:dependencies:package:manage",
|
|
312
|
+
"dependencies:simply:package:manage",
|
|
313
|
+
"dependencies:package:simply:manage",
|
|
314
|
+
"dependencies:package:manage:simply",
|
|
315
|
+
"simply:dependencies:manage:package",
|
|
316
|
+
"dependencies:simply:manage:package",
|
|
317
|
+
"dependencies:manage:simply:package",
|
|
318
|
+
"dependencies:manage:package:simply",
|
|
319
|
+
"simply:package:manage:dependencies",
|
|
320
|
+
"package:simply:manage:dependencies",
|
|
321
|
+
"package:manage:simply:dependencies",
|
|
322
|
+
"package:manage:dependencies:simply",
|
|
323
|
+
"simply:manage:package:dependencies",
|
|
324
|
+
"manage:simply:package:dependencies",
|
|
325
|
+
"manage:package:simply:dependencies",
|
|
326
|
+
"manage:package:dependencies:simply",
|
|
327
|
+
"simply:manage:dependencies:package",
|
|
328
|
+
"manage:simply:dependencies:package",
|
|
329
|
+
"manage:dependencies:simply:package",
|
|
330
|
+
"manage:dependencies:package:simply"
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
"simply:package:version:cleanup": {
|
|
334
|
+
"aliases": [],
|
|
335
|
+
"args": {},
|
|
336
|
+
"description": "Delete package versions for a given package provided a MAJOR.MINOR.PATCH matcher. Does not delete released pacakge versions.",
|
|
337
|
+
"examples": [
|
|
338
|
+
"<%= config.bin %> <%= command.id %> --package 0Hoxx00000000CqCAI --matcher 2.10.0 --target-dev-hub myDevHub"
|
|
339
|
+
],
|
|
340
|
+
"flags": {
|
|
341
|
+
"json": {
|
|
342
|
+
"description": "Format output as json.",
|
|
343
|
+
"helpGroup": "GLOBAL",
|
|
344
|
+
"name": "json",
|
|
345
|
+
"allowNo": false,
|
|
346
|
+
"type": "boolean"
|
|
347
|
+
},
|
|
348
|
+
"flags-dir": {
|
|
349
|
+
"helpGroup": "GLOBAL",
|
|
350
|
+
"name": "flags-dir",
|
|
351
|
+
"summary": "Import flag values from a directory.",
|
|
352
|
+
"hasDynamicHelp": false,
|
|
353
|
+
"multiple": false,
|
|
354
|
+
"type": "option"
|
|
355
|
+
},
|
|
356
|
+
"api-version": {
|
|
357
|
+
"description": "Override the api version used for api requests made by this command",
|
|
358
|
+
"name": "api-version",
|
|
359
|
+
"hasDynamicHelp": false,
|
|
360
|
+
"multiple": false,
|
|
361
|
+
"type": "option"
|
|
362
|
+
},
|
|
363
|
+
"matcher": {
|
|
364
|
+
"char": "s",
|
|
365
|
+
"description": "The MAJOR.MINOR.PATCH matcher that should be used to find package versions to delete.",
|
|
366
|
+
"name": "matcher",
|
|
367
|
+
"required": true,
|
|
368
|
+
"summary": "MAJOR.MINOR.PATCH",
|
|
369
|
+
"hasDynamicHelp": false,
|
|
370
|
+
"multiple": false,
|
|
371
|
+
"type": "option"
|
|
372
|
+
},
|
|
373
|
+
"package": {
|
|
374
|
+
"char": "p",
|
|
375
|
+
"description": "The 0Ht Package Id that you wish to cleanup versions for.",
|
|
376
|
+
"name": "package",
|
|
377
|
+
"required": true,
|
|
378
|
+
"summary": "Package Id",
|
|
379
|
+
"hasDynamicHelp": false,
|
|
380
|
+
"multiple": false,
|
|
381
|
+
"type": "option"
|
|
382
|
+
},
|
|
383
|
+
"target-dev-hub": {
|
|
384
|
+
"char": "v",
|
|
385
|
+
"name": "target-dev-hub",
|
|
386
|
+
"noCacheDefault": true,
|
|
387
|
+
"required": true,
|
|
388
|
+
"summary": "Username or alias of the Dev Hub org. Not required if the `target-dev-hub` configuration variable is already set.",
|
|
389
|
+
"hasDynamicHelp": true,
|
|
390
|
+
"multiple": false,
|
|
391
|
+
"type": "option"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"hasDynamicHelp": true,
|
|
395
|
+
"hiddenAliases": [],
|
|
396
|
+
"id": "simply:package:version:cleanup",
|
|
397
|
+
"pluginAlias": "@simplysf/simply-package",
|
|
398
|
+
"pluginName": "@simplysf/simply-package",
|
|
399
|
+
"pluginType": "core",
|
|
400
|
+
"strict": true,
|
|
401
|
+
"summary": "Cleanup package versions.",
|
|
402
|
+
"enableJsonFlag": true,
|
|
403
|
+
"requiresProject": true,
|
|
404
|
+
"isESM": true,
|
|
405
|
+
"relativePath": [
|
|
406
|
+
"lib",
|
|
407
|
+
"commands",
|
|
408
|
+
"simply",
|
|
409
|
+
"package",
|
|
410
|
+
"version",
|
|
411
|
+
"cleanup.js"
|
|
412
|
+
],
|
|
413
|
+
"aliasPermutations": [],
|
|
414
|
+
"permutations": [
|
|
415
|
+
"simply:package:version:cleanup",
|
|
416
|
+
"package:simply:version:cleanup",
|
|
417
|
+
"package:version:simply:cleanup",
|
|
418
|
+
"package:version:cleanup:simply",
|
|
419
|
+
"simply:version:package:cleanup",
|
|
420
|
+
"version:simply:package:cleanup",
|
|
421
|
+
"version:package:simply:cleanup",
|
|
422
|
+
"version:package:cleanup:simply",
|
|
423
|
+
"simply:version:cleanup:package",
|
|
424
|
+
"version:simply:cleanup:package",
|
|
425
|
+
"version:cleanup:simply:package",
|
|
426
|
+
"version:cleanup:package:simply",
|
|
427
|
+
"simply:package:cleanup:version",
|
|
428
|
+
"package:simply:cleanup:version",
|
|
429
|
+
"package:cleanup:simply:version",
|
|
430
|
+
"package:cleanup:version:simply",
|
|
431
|
+
"simply:cleanup:package:version",
|
|
432
|
+
"cleanup:simply:package:version",
|
|
433
|
+
"cleanup:package:simply:version",
|
|
434
|
+
"cleanup:package:version:simply",
|
|
435
|
+
"simply:cleanup:version:package",
|
|
436
|
+
"cleanup:simply:version:package",
|
|
437
|
+
"cleanup:version:simply:package",
|
|
438
|
+
"cleanup:version:package:simply"
|
|
439
|
+
]
|
|
320
440
|
}
|
|
321
441
|
},
|
|
322
|
-
"version": "2.
|
|
442
|
+
"version": "2.3.0"
|
|
323
443
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply-package",
|
|
3
3
|
"description": "Utilities for working with packages",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"bugs": "https://github.com/SimplySF/simply-package/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"@salesforce/kit": "^3.2.6",
|
|
11
11
|
"@salesforce/packaging": "^4.22.16",
|
|
12
12
|
"@salesforce/sf-plugins-core": "^12.2.16",
|
|
13
|
+
"@inquirer/prompts": "^7.10.1",
|
|
13
14
|
"@salesforce/ts-types": "^2.0.12",
|
|
14
15
|
"zod": "^4.1.12"
|
|
15
16
|
},
|