@salesforce/plugin-packaging 1.16.1 → 1.16.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.
Files changed (61) hide show
  1. package/lib/commands/package/convert.d.ts +1 -1
  2. package/lib/commands/package/convert.js +3 -2
  3. package/lib/commands/package/convert.js.map +1 -1
  4. package/lib/commands/package/create.d.ts +1 -1
  5. package/lib/commands/package/create.js +3 -2
  6. package/lib/commands/package/create.js.map +1 -1
  7. package/lib/commands/package/delete.d.ts +1 -1
  8. package/lib/commands/package/delete.js +3 -2
  9. package/lib/commands/package/delete.js.map +1 -1
  10. package/lib/commands/package/list.d.ts +1 -1
  11. package/lib/commands/package/list.js +3 -2
  12. package/lib/commands/package/list.js.map +1 -1
  13. package/lib/commands/package/update.d.ts +1 -1
  14. package/lib/commands/package/update.js +3 -2
  15. package/lib/commands/package/update.js.map +1 -1
  16. package/lib/commands/package/version/create/list.d.ts +1 -1
  17. package/lib/commands/package/version/create/list.js +3 -2
  18. package/lib/commands/package/version/create/list.js.map +1 -1
  19. package/lib/commands/package/version/create/report.d.ts +1 -1
  20. package/lib/commands/package/version/create/report.js +4 -3
  21. package/lib/commands/package/version/create/report.js.map +1 -1
  22. package/lib/commands/package/version/create.d.ts +1 -1
  23. package/lib/commands/package/version/create.js +3 -2
  24. package/lib/commands/package/version/create.js.map +1 -1
  25. package/lib/commands/package/version/delete.d.ts +1 -1
  26. package/lib/commands/package/version/delete.js +3 -2
  27. package/lib/commands/package/version/delete.js.map +1 -1
  28. package/lib/commands/package/version/displayancestry.d.ts +1 -1
  29. package/lib/commands/package/version/displayancestry.js +3 -2
  30. package/lib/commands/package/version/displayancestry.js.map +1 -1
  31. package/lib/commands/package/version/list.d.ts +1 -1
  32. package/lib/commands/package/version/list.js +3 -2
  33. package/lib/commands/package/version/list.js.map +1 -1
  34. package/lib/commands/package/version/promote.d.ts +1 -1
  35. package/lib/commands/package/version/promote.js +3 -2
  36. package/lib/commands/package/version/promote.js.map +1 -1
  37. package/lib/commands/package/version/report.d.ts +3 -3
  38. package/lib/commands/package/version/report.js +9 -6
  39. package/lib/commands/package/version/report.js.map +1 -1
  40. package/lib/commands/package/version/update.d.ts +1 -1
  41. package/lib/commands/package/version/update.js +3 -2
  42. package/lib/commands/package/version/update.js.map +1 -1
  43. package/lib/utils/hubFlag.d.ts +4 -0
  44. package/lib/utils/hubFlag.js +19 -0
  45. package/lib/utils/hubFlag.js.map +1 -0
  46. package/messages/package_convert.md +1 -1
  47. package/messages/package_create.md +1 -1
  48. package/messages/package_delete.md +1 -1
  49. package/messages/package_displayancestry.md +1 -1
  50. package/messages/package_list.md +2 -2
  51. package/messages/package_update.md +1 -1
  52. package/messages/package_version_create.md +1 -1
  53. package/messages/package_version_create_list.md +1 -1
  54. package/messages/package_version_create_report.md +1 -1
  55. package/messages/package_version_list.md +1 -1
  56. package/messages/package_version_promote.md +1 -1
  57. package/messages/package_version_report.md +1 -1
  58. package/messages/package_version_update.md +1 -1
  59. package/oclif.manifest.json +71 -57
  60. package/package.json +127 -27
  61. package/schemas/package-version-report.json +26 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.16.1",
2
+ "version": "1.16.3",
3
3
  "commands": {
4
4
  "package:convert": {
5
5
  "id": "package:convert",
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "examples": [
18
18
  "Create a second-generation package version from the first-generation package with the specified ID and give it the installation key \"password123\"; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 033... --installation-key password123",
19
- "Similar to previous example, but uses the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 033... --installation-key password123 --target-hub-org devhuborg@example.com"
19
+ "Similar to previous example, but uses the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 033... --installation-key password123 --target-dev-hub devhuborg@example.com"
20
20
  ],
21
21
  "deprecateAliases": true,
22
22
  "flags": {
@@ -38,8 +38,8 @@
38
38
  },
39
39
  "deprecateAliases": true
40
40
  },
41
- "target-hub-org": {
42
- "name": "target-hub-org",
41
+ "target-dev-hub": {
42
+ "name": "target-dev-hub",
43
43
  "type": "option",
44
44
  "char": "v",
45
45
  "summary": "Username or alias of the Dev Hub org.",
@@ -47,7 +47,8 @@
47
47
  "multiple": false,
48
48
  "deprecateAliases": true,
49
49
  "aliases": [
50
- "targetdevhubusername"
50
+ "targetdevhubusername",
51
+ "target-hub-org"
51
52
  ]
52
53
  },
53
54
  "api-version": {
@@ -156,7 +157,7 @@
156
157
  ],
157
158
  "examples": [
158
159
  "Create an unlocked package from the files in the \"force-app\" directory; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --name MyUnlockedPackage --package-type Unlocked --path force-app",
159
- "Create a managed packaged from the \"force-app\" directory files, give the package a description, and use the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --name MyManagedPackage --description \"Your Package Descripton\" --package-type Managed --path force-app --target-hub-org devhub@example.com"
160
+ "Create a managed packaged from the \"force-app\" directory files, give the package a description, and use the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --name MyManagedPackage --description \"Your Package Descripton\" --package-type Managed --path force-app --target-dev-hub devhub@example.com"
160
161
  ],
161
162
  "deprecateAliases": true,
162
163
  "flags": {
@@ -178,8 +179,8 @@
178
179
  },
179
180
  "deprecateAliases": true
180
181
  },
181
- "target-hub-org": {
182
- "name": "target-hub-org",
182
+ "target-dev-hub": {
183
+ "name": "target-dev-hub",
183
184
  "type": "option",
184
185
  "char": "v",
185
186
  "summary": "Username or alias of the Dev Hub org.",
@@ -187,7 +188,8 @@
187
188
  "multiple": false,
188
189
  "deprecateAliases": true,
189
190
  "aliases": [
190
- "targetdevhubusername"
191
+ "targetdevhubusername",
192
+ "target-hub-org"
191
193
  ]
192
194
  },
193
195
  "api-version": {
@@ -297,7 +299,7 @@
297
299
  ],
298
300
  "examples": [
299
301
  "Delete a package using its alias from your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\"",
300
- "Delete a package using its ID from the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 0Ho... --target-hub-org devhub@example.com"
302
+ "Delete a package using its ID from the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 0Ho... --target-dev-hub devhub@example.com"
301
303
  ],
302
304
  "deprecateAliases": true,
303
305
  "flags": {
@@ -319,8 +321,8 @@
319
321
  },
320
322
  "deprecateAliases": true
321
323
  },
322
- "target-hub-org": {
323
- "name": "target-hub-org",
324
+ "target-dev-hub": {
325
+ "name": "target-dev-hub",
324
326
  "type": "option",
325
327
  "char": "v",
326
328
  "summary": "Username or alias of the Dev Hub org.",
@@ -328,7 +330,8 @@
328
330
  "multiple": false,
329
331
  "deprecateAliases": true,
330
332
  "aliases": [
331
- "targetdevhubusername"
333
+ "targetdevhubusername",
334
+ "target-hub-org"
332
335
  ]
333
336
  },
334
337
  "api-version": {
@@ -575,8 +578,8 @@
575
578
  "force:package:list"
576
579
  ],
577
580
  "examples": [
578
- "List all packages in the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --target-hub-org devhub@example.com",
579
- "List all packages details in the specified Dev Hub org, and show extended details about each package:\n<%= config.bin %> <%= command.id %> --target-hub-org devhub@example.com --verbose"
581
+ "List all packages in the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --target-dev-hub devhub@example.com",
582
+ "List all packages details in the specified Dev Hub org, and show extended details about each package:\n<%= config.bin %> <%= command.id %> --target-dev-hub devhub@example.com --verbose"
580
583
  ],
581
584
  "deprecateAliases": true,
582
585
  "flags": {
@@ -598,8 +601,8 @@
598
601
  },
599
602
  "deprecateAliases": true
600
603
  },
601
- "target-hub-org": {
602
- "name": "target-hub-org",
604
+ "target-dev-hub": {
605
+ "name": "target-dev-hub",
603
606
  "type": "option",
604
607
  "char": "v",
605
608
  "summary": "Username or alias of the Dev Hub org.",
@@ -607,7 +610,8 @@
607
610
  "multiple": false,
608
611
  "deprecateAliases": true,
609
612
  "aliases": [
610
- "targetdevhubusername"
613
+ "targetdevhubusername",
614
+ "target-hub-org"
611
615
  ]
612
616
  },
613
617
  "api-version": {
@@ -731,7 +735,7 @@
731
735
  ],
732
736
  "examples": [
733
737
  "Update the name of the package with the specified alias; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --name \"New Package Name\"",
734
- "Update the description of the package with the specified ID; uses the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 0Ho... --description \"New Package Description\" --target-hub-org devhub@example.com"
738
+ "Update the description of the package with the specified ID; uses the specified Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 0Ho... --description \"New Package Description\" --target-dev-hub devhub@example.com"
735
739
  ],
736
740
  "deprecateAliases": true,
737
741
  "flags": {
@@ -753,8 +757,8 @@
753
757
  },
754
758
  "deprecateAliases": true
755
759
  },
756
- "target-hub-org": {
757
- "name": "target-hub-org",
760
+ "target-dev-hub": {
761
+ "name": "target-dev-hub",
758
762
  "type": "option",
759
763
  "char": "v",
760
764
  "summary": "Username or alias of the Dev Hub org.",
@@ -762,7 +766,8 @@
762
766
  "multiple": false,
763
767
  "deprecateAliases": true,
764
768
  "aliases": [
765
- "targetdevhubusername"
769
+ "targetdevhubusername",
770
+ "target-hub-org"
766
771
  ]
767
772
  },
768
773
  "api-version": {
@@ -1042,7 +1047,7 @@
1042
1047
  ],
1043
1048
  "examples": [
1044
1049
  "Create a package version from the contents of the \"common\" directory and give it an installation key of \"password123\"; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --path common --installation-key password123",
1045
- "Create a package version from a package with the specified alias; uses the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --installation-key password123 --target-hub-org devhub@example.com",
1050
+ "Create a package version from a package with the specified alias; uses the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --installation-key password123 --target-dev-hub devhub@example.com",
1046
1051
  "Create a package version from a package with the specified ID:\n<%= config.bin %> <%= command.id %> --package 0Ho... --installation-key password123",
1047
1052
  "Create a package version and skip the validation step:\n<%= config.bin %> <%= command.id %> --path common --installation-key password123 --skip-validation"
1048
1053
  ],
@@ -1066,8 +1071,8 @@
1066
1071
  },
1067
1072
  "deprecateAliases": true
1068
1073
  },
1069
- "target-hub-org": {
1070
- "name": "target-hub-org",
1074
+ "target-dev-hub": {
1075
+ "name": "target-dev-hub",
1071
1076
  "type": "option",
1072
1077
  "char": "v",
1073
1078
  "summary": "Username or alias of the Dev Hub org.",
@@ -1075,7 +1080,8 @@
1075
1080
  "multiple": false,
1076
1081
  "deprecateAliases": true,
1077
1082
  "aliases": [
1078
- "targetdevhubusername"
1083
+ "targetdevhubusername",
1084
+ "target-hub-org"
1079
1085
  ]
1080
1086
  },
1081
1087
  "api-version": {
@@ -1372,8 +1378,8 @@
1372
1378
  },
1373
1379
  "deprecateAliases": true
1374
1380
  },
1375
- "target-hub-org": {
1376
- "name": "target-hub-org",
1381
+ "target-dev-hub": {
1382
+ "name": "target-dev-hub",
1377
1383
  "type": "option",
1378
1384
  "char": "v",
1379
1385
  "summary": "Username or alias of the Dev Hub org.",
@@ -1381,7 +1387,8 @@
1381
1387
  "multiple": false,
1382
1388
  "deprecateAliases": true,
1383
1389
  "aliases": [
1384
- "targetdevhubusername"
1390
+ "targetdevhubusername",
1391
+ "target-hub-org"
1385
1392
  ]
1386
1393
  },
1387
1394
  "api-version": {
@@ -1441,7 +1448,7 @@
1441
1448
  "examples": [
1442
1449
  "Display the ancestry tree for a package version with the specified alias, using your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package package_version_alias",
1443
1450
  "Similar to previous example, but display the output in DOT code:\n<%= config.bin %> <%= command.id %> --package package_version_alias --dot-code",
1444
- "Display the ancestry tree for a package with the specified ID, using the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package OHo... --target-hub-org devhub@example.com",
1451
+ "Display the ancestry tree for a package with the specified ID, using the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package OHo... --target-dev-hub devhub@example.com",
1445
1452
  "Display the ancestry tree of a package version with the specified ID, using your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 04t..."
1446
1453
  ],
1447
1454
  "deprecateAliases": true,
@@ -1464,8 +1471,8 @@
1464
1471
  },
1465
1472
  "deprecateAliases": true
1466
1473
  },
1467
- "target-hub-org": {
1468
- "name": "target-hub-org",
1474
+ "target-dev-hub": {
1475
+ "name": "target-dev-hub",
1469
1476
  "type": "option",
1470
1477
  "char": "v",
1471
1478
  "summary": "Username or alias of the Dev Hub org.",
@@ -1473,7 +1480,8 @@
1473
1480
  "multiple": false,
1474
1481
  "deprecateAliases": true,
1475
1482
  "aliases": [
1476
- "targetdevhubusername"
1483
+ "targetdevhubusername",
1484
+ "target-hub-org"
1477
1485
  ]
1478
1486
  },
1479
1487
  "api-version": {
@@ -1533,7 +1541,7 @@
1533
1541
  ],
1534
1542
  "examples": [
1535
1543
  "List package versions in your default Dev Hub org that were created in the last 3 days; show only the released versions and order the list using the PatchVersion field. Display extended details about each package version:\n<%= config.bin %> <%= command.id %> --verbose --created-last-days 3 --released --order-by PatchVersion",
1536
- "List the released package versions for the two specified packages that were modified today; use the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --packages 0Ho000000000000,0Ho000000000001 --released --modified-last-days 0 --target-hub-org devhub@example.com",
1544
+ "List the released package versions for the two specified packages that were modified today; use the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --packages 0Ho000000000000,0Ho000000000001 --released --modified-last-days 0 --target-dev-hub devhub@example.com",
1537
1545
  "List all released package versions in your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --released",
1538
1546
  "List package versions that were modified today in your default Dev Hub org; show limited details about each one:\n<%= config.bin %> <%= command.id %> --concise --modified-last-days 0",
1539
1547
  "List released package versions that were created in the last 3 days in your default Dev Hub org; show limited details:\n<%= config.bin %> <%= command.id %> --concise --created-last-days 3 --released",
@@ -1559,8 +1567,8 @@
1559
1567
  },
1560
1568
  "deprecateAliases": true
1561
1569
  },
1562
- "target-hub-org": {
1563
- "name": "target-hub-org",
1570
+ "target-dev-hub": {
1571
+ "name": "target-dev-hub",
1564
1572
  "type": "option",
1565
1573
  "char": "v",
1566
1574
  "summary": "Username or alias of the Dev Hub org.",
@@ -1568,7 +1576,8 @@
1568
1576
  "multiple": false,
1569
1577
  "deprecateAliases": true,
1570
1578
  "aliases": [
1571
- "targetdevhubusername"
1579
+ "targetdevhubusername",
1580
+ "target-hub-org"
1572
1581
  ]
1573
1582
  },
1574
1583
  "api-version": {
@@ -1662,7 +1671,7 @@
1662
1671
  ],
1663
1672
  "examples": [
1664
1673
  "Promote the package version with the specified ID to released; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 04t...",
1665
- "Promote the package version with the specified alias to released; uses the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package awesome_package_alias --target-hub-org devhub@example.com",
1674
+ "Promote the package version with the specified alias to released; uses the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package awesome_package_alias --target-dev-hub devhub@example.com",
1666
1675
  "Promote the package version with an alias that has spaces to released:\n<%= config.bin %> <%= command.id %> --package \"Awesome Package Alias\""
1667
1676
  ],
1668
1677
  "deprecateAliases": true,
@@ -1685,8 +1694,8 @@
1685
1694
  },
1686
1695
  "deprecateAliases": true
1687
1696
  },
1688
- "target-hub-org": {
1689
- "name": "target-hub-org",
1697
+ "target-dev-hub": {
1698
+ "name": "target-dev-hub",
1690
1699
  "type": "option",
1691
1700
  "char": "v",
1692
1701
  "summary": "Username or alias of the Dev Hub org.",
@@ -1694,7 +1703,8 @@
1694
1703
  "multiple": false,
1695
1704
  "deprecateAliases": true,
1696
1705
  "aliases": [
1697
- "targetdevhubusername"
1706
+ "targetdevhubusername",
1707
+ "target-hub-org"
1698
1708
  ]
1699
1709
  },
1700
1710
  "api-version": {
@@ -1746,7 +1756,7 @@
1746
1756
  ],
1747
1757
  "examples": [
1748
1758
  "Retrieve details about the package version with the specified ID from your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package 04t...",
1749
- "Retrieve details about the package version with the specified alias (that contains spaces) from the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --target-hub-org devhub@example.com"
1759
+ "Retrieve details about the package version with the specified alias (that contains spaces) from the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --target-dev-hub devhub@example.com"
1750
1760
  ],
1751
1761
  "deprecateAliases": true,
1752
1762
  "flags": {
@@ -1768,8 +1778,8 @@
1768
1778
  },
1769
1779
  "deprecateAliases": true
1770
1780
  },
1771
- "target-hub-org": {
1772
- "name": "target-hub-org",
1781
+ "target-dev-hub": {
1782
+ "name": "target-dev-hub",
1773
1783
  "type": "option",
1774
1784
  "char": "v",
1775
1785
  "summary": "Username or alias of the Dev Hub org.",
@@ -1777,7 +1787,8 @@
1777
1787
  "multiple": false,
1778
1788
  "deprecateAliases": true,
1779
1789
  "aliases": [
1780
- "targetdevhubusername"
1790
+ "targetdevhubusername",
1791
+ "target-hub-org"
1781
1792
  ]
1782
1793
  },
1783
1794
  "api-version": {
@@ -1825,7 +1836,7 @@
1825
1836
  ],
1826
1837
  "examples": [
1827
1838
  "Update the package version that has the specified alias (that contains spaces) with a new installation key \"password123\"; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package \"Your Package Alias\" --installation-key password123",
1828
- "Update the package version that has the specified ID with a new branch and tag; use the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package 04t... --branch main --tag 'Release 1.0.7' --target-hub-org devhub@example.com",
1839
+ "Update the package version that has the specified ID with a new branch and tag; use the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package 04t... --branch main --tag 'Release 1.0.7' --target-dev-hub devhub@example.com",
1829
1840
  "Update the package version that has the specified ID with a new description:\n<%= config.bin %> <%= command.id %> --package 04t... --version-description \"New Package Version Description\""
1830
1841
  ],
1831
1842
  "deprecateAliases": true,
@@ -1848,8 +1859,8 @@
1848
1859
  },
1849
1860
  "deprecateAliases": true
1850
1861
  },
1851
- "target-hub-org": {
1852
- "name": "target-hub-org",
1862
+ "target-dev-hub": {
1863
+ "name": "target-dev-hub",
1853
1864
  "type": "option",
1854
1865
  "char": "v",
1855
1866
  "summary": "Username or alias of the Dev Hub org.",
@@ -1857,7 +1868,8 @@
1857
1868
  "multiple": false,
1858
1869
  "deprecateAliases": true,
1859
1870
  "aliases": [
1860
- "targetdevhubusername"
1871
+ "targetdevhubusername",
1872
+ "target-hub-org"
1861
1873
  ]
1862
1874
  },
1863
1875
  "api-version": {
@@ -2251,7 +2263,7 @@
2251
2263
  ],
2252
2264
  "examples": [
2253
2265
  "List all package version creation requests in your default Dev Hub org:\n<%= config.bin %> <%= command.id %>",
2254
- "List package version creation requests from the last 3 days in the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --created-last-days 3 --target-hub-org",
2266
+ "List package version creation requests from the last 3 days in the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --created-last-days 3 --target-dev-hub",
2255
2267
  "List package version creation requests with status Error:\n<%= config.bin %> <%= command.id %> --status Error",
2256
2268
  "List package version creation requests with status InProgress:\n<%= config.bin %> <%= command.id %> --status InProgress",
2257
2269
  "List package version creation requests with status Success that were created today:\n<%= config.bin %> <%= command.id %> --created-last-days 0 --status Success"
@@ -2276,8 +2288,8 @@
2276
2288
  },
2277
2289
  "deprecateAliases": true
2278
2290
  },
2279
- "target-hub-org": {
2280
- "name": "target-hub-org",
2291
+ "target-dev-hub": {
2292
+ "name": "target-dev-hub",
2281
2293
  "type": "option",
2282
2294
  "char": "v",
2283
2295
  "summary": "Username or alias of the Dev Hub org.",
@@ -2285,7 +2297,8 @@
2285
2297
  "multiple": false,
2286
2298
  "deprecateAliases": true,
2287
2299
  "aliases": [
2288
- "targetdevhubusername"
2300
+ "targetdevhubusername",
2301
+ "target-hub-org"
2289
2302
  ]
2290
2303
  },
2291
2304
  "api-version": {
@@ -2341,7 +2354,7 @@
2341
2354
  ],
2342
2355
  "examples": [
2343
2356
  "Retrieve details about the package version creation request with the specified ID; uses your default Dev Hub org:\n<%= config.bin %> <%= command.id %> --package-create-request-id 08c...",
2344
- "Retrieve details about the specified package version creation request in the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package-create-request-id 08c... --target-hub-org devhub@example.com"
2357
+ "Retrieve details about the specified package version creation request in the Dev Hub org with username devhub@example.com:\n<%= config.bin %> <%= command.id %> --package-create-request-id 08c... --target-dev-hub devhub@example.com"
2345
2358
  ],
2346
2359
  "deprecateAliases": true,
2347
2360
  "flags": {
@@ -2363,8 +2376,8 @@
2363
2376
  },
2364
2377
  "deprecateAliases": true
2365
2378
  },
2366
- "target-hub-org": {
2367
- "name": "target-hub-org",
2379
+ "target-dev-hub": {
2380
+ "name": "target-dev-hub",
2368
2381
  "type": "option",
2369
2382
  "char": "v",
2370
2383
  "summary": "Username or alias of the Dev Hub org.",
@@ -2372,7 +2385,8 @@
2372
2385
  "multiple": false,
2373
2386
  "deprecateAliases": true,
2374
2387
  "aliases": [
2375
- "targetdevhubusername"
2388
+ "targetdevhubusername",
2389
+ "target-hub-org"
2376
2390
  ]
2377
2391
  },
2378
2392
  "api-version": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-packaging",
3
3
  "description": "SFDX plugin that support Salesforce Packaging Platform",
4
- "version": "1.16.1",
4
+ "version": "1.16.3",
5
5
  "main": "lib/index.js",
6
6
  "author": "Salesforce",
7
7
  "bugs": "https://github.com/forcedotcom/cli/issues",
@@ -15,30 +15,29 @@
15
15
  "tslib": "^2"
16
16
  },
17
17
  "devDependencies": {
18
- "@oclif/plugin-command-snapshot": "^3.3.7",
18
+ "@oclif/plugin-command-snapshot": "^3.3.8",
19
19
  "@oclif/plugin-version": "^1.2.0",
20
- "@salesforce/cli-plugins-testkit": "^3.2.24",
20
+ "@salesforce/cli-plugins-testkit": "^3.3.0",
21
21
  "@salesforce/dev-config": "^3.1.0",
22
- "@salesforce/dev-scripts": "^3.1.1",
23
- "@salesforce/plugin-auth": "^2.7.3",
24
- "@salesforce/plugin-command-reference": "^2.2.9",
25
- "@salesforce/plugin-config": "^1.5.1",
22
+ "@salesforce/dev-scripts": "^4.1.3",
23
+ "@salesforce/plugin-auth": "^2.7.7",
24
+ "@salesforce/plugin-command-reference": "^2.4.1",
26
25
  "@salesforce/prettier-config": "^0.0.2",
27
26
  "@salesforce/ts-sinon": "^1.4.6",
28
27
  "@salesforce/ts-types": "^1.5.20",
29
- "@swc/core": "^1.3.37",
30
- "@typescript-eslint/eslint-plugin": "^5.54.0",
31
- "@typescript-eslint/parser": "^5.54.0",
28
+ "@swc/core": "^1.3.39",
29
+ "@typescript-eslint/eslint-plugin": "^5.54.1",
30
+ "@typescript-eslint/parser": "^5.57.0",
32
31
  "chai": "^4.3.7",
33
32
  "eslint": "^8.35.0",
34
- "eslint-config-prettier": "^8.6.0",
33
+ "eslint-config-prettier": "^8.8.0",
35
34
  "eslint-config-salesforce": "^1.1.0",
36
35
  "eslint-config-salesforce-license": "^0.2.0",
37
36
  "eslint-config-salesforce-typescript": "^1.1.1",
38
37
  "eslint-plugin-header": "^3.1.1",
39
38
  "eslint-plugin-import": "^2.27.5",
40
39
  "eslint-plugin-jsdoc": "^39.8.0",
41
- "eslint-plugin-sf-plugin": "^1.9.2",
40
+ "eslint-plugin-sf-plugin": "^1.14.0",
42
41
  "husky": "^7.0.4",
43
42
  "mocha": "^9.1.3",
44
43
  "nyc": "^15.1.0",
@@ -48,7 +47,8 @@
48
47
  "shx": "0.3.4",
49
48
  "sinon": "^11.1.2",
50
49
  "ts-node": "^10.8.1",
51
- "typescript": "^4.9.4"
50
+ "typescript": "^4.9.4",
51
+ "wireit": "^0.9.5"
52
52
  },
53
53
  "config": {},
54
54
  "engines": {
@@ -82,7 +82,6 @@
82
82
  "@oclif/plugin-help",
83
83
  "@oclif/plugin-command-snapshot",
84
84
  "@salesforce/plugin-command-reference",
85
- "@salesforce/plugin-config",
86
85
  "@salesforce/plugin-auth"
87
86
  ],
88
87
  "plugins": [],
@@ -134,32 +133,133 @@
134
133
  },
135
134
  "repository": "salesforcecli/plugin-packaging",
136
135
  "scripts": {
137
- "build": "sf-build",
136
+ "build": "wireit",
138
137
  "clean": "sf-clean",
139
138
  "clean-all": "sf-clean all",
140
139
  "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
141
- "compile": "sf-compile",
142
- "format": "sf-format",
143
- "lint": "sf-lint",
140
+ "compile": "wireit",
141
+ "format": "wireit",
142
+ "lint": "wireit",
144
143
  "postpack": "shx rm -f oclif.manifest.json",
145
- "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema && yarn test:command-reference",
146
144
  "prepack": "sf-prepack",
147
145
  "prepare": "sf-install",
148
- "pretest": "sf-compile-test",
149
- "test": "sf-test",
150
- "test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
151
- "test:deprecation-policy": "./bin/dev snapshot:compare",
146
+ "test": "wireit",
152
147
  "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 -t 1800000 --parallel --jobs 20",
153
148
  "test:nuts:package": "nyc mocha \"test/commands/package/*.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
154
- "test:nuts:package1": "nyc mocha \"test/commands/package1/*.nut.ts\" --slow 4500 --timeout 600000--parallel --jobs 20",
155
- "test:json-schema": "./bin/dev schema:compare",
149
+ "test:nuts:package1": "nyc mocha \"test/commands/package1/*.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
150
+ "test:only": "wireit",
156
151
  "version": "oclif readme"
157
152
  },
158
153
  "publishConfig": {
159
154
  "access": "public"
160
155
  },
156
+ "wireit": {
157
+ "build": {
158
+ "dependencies": [
159
+ "compile",
160
+ "lint"
161
+ ]
162
+ },
163
+ "compile": {
164
+ "command": "tsc -p . --pretty --incremental",
165
+ "files": [
166
+ "src/**/*.ts",
167
+ "**/tsconfig.json",
168
+ "messages/**"
169
+ ],
170
+ "output": [
171
+ "lib/**",
172
+ "*.tsbuildinfo"
173
+ ],
174
+ "clean": "if-file-deleted"
175
+ },
176
+ "format": {
177
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
178
+ "files": [
179
+ "src/**/*.ts",
180
+ "test/**/*.ts",
181
+ "schemas/**/*.json",
182
+ "command-snapshot.json",
183
+ ".prettier*"
184
+ ],
185
+ "output": []
186
+ },
187
+ "lint": {
188
+ "command": "eslint src test --color --cache --cache-location .eslintcache",
189
+ "files": [
190
+ "src/**/*.ts",
191
+ "test/**/*.ts",
192
+ "messages/**",
193
+ "**/.eslint*",
194
+ "**/tsconfig.json"
195
+ ],
196
+ "output": []
197
+ },
198
+ "test:compile": {
199
+ "command": "tsc -p \"./test\" --pretty",
200
+ "files": [
201
+ "test/**/*.ts",
202
+ "**/tsconfig.json"
203
+ ],
204
+ "output": []
205
+ },
206
+ "test": {
207
+ "dependencies": [
208
+ "test:compile",
209
+ "test:only",
210
+ "test:command-reference",
211
+ "test:deprecation-policy",
212
+ "lint",
213
+ "test:json-schema"
214
+ ]
215
+ },
216
+ "test:only": {
217
+ "command": "nyc mocha \"test/**/*.test.ts\"",
218
+ "env": {
219
+ "FORCE_COLOR": "2"
220
+ },
221
+ "files": [
222
+ "test/**/*.ts",
223
+ "src/**/*.ts",
224
+ "**/tsconfig.json",
225
+ ".mocha*",
226
+ "!*.nut.ts",
227
+ ".nycrc"
228
+ ],
229
+ "output": []
230
+ },
231
+ "test:command-reference": {
232
+ "command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
233
+ "files": [
234
+ "src/**/*.ts",
235
+ "messages/**",
236
+ "package.json"
237
+ ],
238
+ "output": [
239
+ "tmp/root"
240
+ ]
241
+ },
242
+ "test:deprecation-policy": {
243
+ "command": "\"./bin/dev\" snapshot:compare",
244
+ "files": [
245
+ "src/**/*.ts"
246
+ ],
247
+ "output": [],
248
+ "dependencies": [
249
+ "compile"
250
+ ]
251
+ },
252
+ "test:json-schema": {
253
+ "command": "\"./bin/dev\" schema:compare",
254
+ "files": [
255
+ "src/**/*.ts",
256
+ "schemas"
257
+ ],
258
+ "output": []
259
+ }
260
+ },
161
261
  "sfdx": {
162
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/1.16.1.crt",
163
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/1.16.1.sig"
262
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/1.16.3.crt",
263
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-packaging/1.16.3.sig"
164
264
  }
165
265
  }
@@ -7,7 +7,14 @@
7
7
  "additionalProperties": false,
8
8
  "properties": {
9
9
  "CodeCoverage": {
10
- "type": "string"
10
+ "anyOf": [
11
+ {
12
+ "$ref": "#/definitions/CodeCoverage"
13
+ },
14
+ {
15
+ "type": "string"
16
+ }
17
+ ]
11
18
  },
12
19
  "HasPassedCodeCoverageCheck": {
13
20
  "type": ["boolean", "string"]
@@ -170,7 +177,24 @@
170
177
  "type": "string"
171
178
  }
172
179
  },
173
- "required": ["CodeCoverage", "HasMetadataRemoved", "Package2", "Version"]
180
+ "required": ["HasMetadataRemoved", "Package2", "Version"]
181
+ },
182
+ "CodeCoverage": {
183
+ "anyOf": [
184
+ {
185
+ "type": "null"
186
+ },
187
+ {
188
+ "type": "object",
189
+ "properties": {
190
+ "apexCodeCoveragePercentage": {
191
+ "type": "number"
192
+ }
193
+ },
194
+ "required": ["apexCodeCoveragePercentage"],
195
+ "additionalProperties": false
196
+ }
197
+ ]
174
198
  },
175
199
  "PackageType": {
176
200
  "type": "string",