create-typescript-app 2.4.5 → 2.5.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.
Files changed (66) hide show
  1. package/lib/base.d.ts +13 -0
  2. package/lib/base.js +12 -0
  3. package/lib/blocks/blockAllContributors.d.ts +5 -0
  4. package/lib/blocks/blockAreTheTypesWrong.d.ts +5 -0
  5. package/lib/blocks/blockCSpell.d.ts +5 -0
  6. package/lib/blocks/blockCodecov.d.ts +5 -0
  7. package/lib/blocks/blockContributingDocs.d.ts +5 -0
  8. package/lib/blocks/blockContributorCovenant.d.ts +5 -0
  9. package/lib/blocks/blockDevelopmentDocs.d.ts +5 -0
  10. package/lib/blocks/blockESLint.d.ts +5 -0
  11. package/lib/blocks/blockESLintComments.d.ts +5 -0
  12. package/lib/blocks/blockESLintJSDoc.d.ts +5 -0
  13. package/lib/blocks/blockESLintJSONC.d.ts +5 -0
  14. package/lib/blocks/blockESLintMarkdown.d.ts +5 -0
  15. package/lib/blocks/blockESLintMoreStyling.d.ts +5 -0
  16. package/lib/blocks/blockESLintNode.d.ts +5 -0
  17. package/lib/blocks/blockESLintPackageJson.d.ts +5 -0
  18. package/lib/blocks/blockESLintPerfectionist.d.ts +5 -0
  19. package/lib/blocks/blockESLintRegexp.d.ts +5 -0
  20. package/lib/blocks/blockESLintYML.d.ts +5 -0
  21. package/lib/blocks/blockExampleFiles.d.ts +5 -0
  22. package/lib/blocks/blockFunding.d.ts +5 -0
  23. package/lib/blocks/blockGitHubActionsCI.d.ts +5 -0
  24. package/lib/blocks/blockGitHubApps.d.ts +5 -0
  25. package/lib/blocks/blockGitHubIssueTemplates.d.ts +5 -0
  26. package/lib/blocks/blockGitHubPRTemplate.d.ts +5 -0
  27. package/lib/blocks/blockGitignore.d.ts +5 -0
  28. package/lib/blocks/blockKnip.d.ts +5 -0
  29. package/lib/blocks/blockMITLicense.d.ts +5 -0
  30. package/lib/blocks/blockMarkdownlint.d.ts +5 -0
  31. package/lib/blocks/blockNvmrc.d.ts +5 -0
  32. package/lib/blocks/blockPRCompliance.d.ts +5 -0
  33. package/lib/blocks/blockPackageJson.d.ts +5 -0
  34. package/lib/blocks/blockPnpmDedupe.d.ts +5 -0
  35. package/lib/blocks/blockPrettier.d.ts +5 -0
  36. package/lib/blocks/blockPrettierPluginCurly.d.ts +5 -0
  37. package/lib/blocks/blockPrettierPluginPackageJson.d.ts +5 -0
  38. package/lib/blocks/blockPrettierPluginSh.d.ts +5 -0
  39. package/lib/blocks/blockREADME.d.ts +5 -0
  40. package/lib/blocks/blockReleaseIt.d.ts +5 -0
  41. package/lib/blocks/blockRenovate.d.ts +5 -0
  42. package/lib/blocks/blockRepositoryBranchRuleset.d.ts +6 -1
  43. package/lib/blocks/blockRepositoryBranchRuleset.js +25 -32
  44. package/lib/blocks/blockRepositoryLabels.d.ts +5 -0
  45. package/lib/blocks/blockRepositoryLabels.js +47 -12
  46. package/lib/blocks/blockRepositorySecrets.d.ts +5 -0
  47. package/lib/blocks/blockRepositorySettings.d.ts +5 -0
  48. package/lib/blocks/blockRepositorySettings.js +22 -23
  49. package/lib/blocks/blockSecurityDocs.d.ts +5 -0
  50. package/lib/blocks/blockTSup.d.ts +5 -0
  51. package/lib/blocks/blockTemplatedWith.d.ts +5 -0
  52. package/lib/blocks/blockTypeScript.d.ts +5 -0
  53. package/lib/blocks/blockVSCode.d.ts +5 -0
  54. package/lib/blocks/blockVitest.d.ts +5 -0
  55. package/lib/blocks/index.d.ts +215 -0
  56. package/lib/blocks/outcomeLabels.js +2 -2
  57. package/lib/data/packageData.d.ts +7 -5
  58. package/lib/index.d.ts +18 -0
  59. package/lib/options/getExistingLabels.d.ts +9 -0
  60. package/lib/options/getExistingLabels.js +22 -0
  61. package/lib/presets/common.d.ts +13 -0
  62. package/lib/presets/everything.d.ts +13 -0
  63. package/lib/presets/index.d.ts +39 -0
  64. package/lib/presets/minimal.d.ts +13 -0
  65. package/lib/template.d.ts +13 -0
  66. package/package.json +7 -5
@@ -66,6 +66,11 @@ declare const blocks: {
66
66
  profile: string;
67
67
  }[] | undefined;
68
68
  documentation?: string | undefined;
69
+ existingLabels?: {
70
+ name: string;
71
+ description: string;
72
+ color: string;
73
+ }[] | undefined;
69
74
  explainer?: string[] | undefined;
70
75
  funding?: string | undefined;
71
76
  guide?: {
@@ -114,6 +119,11 @@ declare const blocks: {
114
119
  profile: string;
115
120
  }[] | undefined;
116
121
  documentation?: string | undefined;
122
+ existingLabels?: {
123
+ name: string;
124
+ description: string;
125
+ color: string;
126
+ }[] | undefined;
117
127
  explainer?: string[] | undefined;
118
128
  funding?: string | undefined;
119
129
  guide?: {
@@ -164,6 +174,11 @@ declare const blocks: {
164
174
  profile: string;
165
175
  }[] | undefined;
166
176
  documentation?: string | undefined;
177
+ existingLabels?: {
178
+ name: string;
179
+ description: string;
180
+ color: string;
181
+ }[] | undefined;
167
182
  explainer?: string[] | undefined;
168
183
  funding?: string | undefined;
169
184
  guide?: {
@@ -212,6 +227,11 @@ declare const blocks: {
212
227
  profile: string;
213
228
  }[] | undefined;
214
229
  documentation?: string | undefined;
230
+ existingLabels?: {
231
+ name: string;
232
+ description: string;
233
+ color: string;
234
+ }[] | undefined;
215
235
  explainer?: string[] | undefined;
216
236
  funding?: string | undefined;
217
237
  guide?: {
@@ -260,6 +280,11 @@ declare const blocks: {
260
280
  profile: string;
261
281
  }[] | undefined;
262
282
  documentation?: string | undefined;
283
+ existingLabels?: {
284
+ name: string;
285
+ description: string;
286
+ color: string;
287
+ }[] | undefined;
263
288
  explainer?: string[] | undefined;
264
289
  funding?: string | undefined;
265
290
  guide?: {
@@ -311,6 +336,11 @@ declare const blocks: {
311
336
  profile: string;
312
337
  }[] | undefined;
313
338
  documentation?: string | undefined;
339
+ existingLabels?: {
340
+ name: string;
341
+ description: string;
342
+ color: string;
343
+ }[] | undefined;
314
344
  explainer?: string[] | undefined;
315
345
  funding?: string | undefined;
316
346
  guide?: {
@@ -373,6 +403,11 @@ declare const blocks: {
373
403
  profile: string;
374
404
  }[] | undefined;
375
405
  documentation?: string | undefined;
406
+ existingLabels?: {
407
+ name: string;
408
+ description: string;
409
+ color: string;
410
+ }[] | undefined;
376
411
  explainer?: string[] | undefined;
377
412
  funding?: string | undefined;
378
413
  guide?: {
@@ -447,6 +482,11 @@ declare const blocks: {
447
482
  profile: string;
448
483
  }[] | undefined;
449
484
  documentation?: string | undefined;
485
+ existingLabels?: {
486
+ name: string;
487
+ description: string;
488
+ color: string;
489
+ }[] | undefined;
450
490
  explainer?: string[] | undefined;
451
491
  funding?: string | undefined;
452
492
  guide?: {
@@ -495,6 +535,11 @@ declare const blocks: {
495
535
  profile: string;
496
536
  }[] | undefined;
497
537
  documentation?: string | undefined;
538
+ existingLabels?: {
539
+ name: string;
540
+ description: string;
541
+ color: string;
542
+ }[] | undefined;
498
543
  explainer?: string[] | undefined;
499
544
  funding?: string | undefined;
500
545
  guide?: {
@@ -543,6 +588,11 @@ declare const blocks: {
543
588
  profile: string;
544
589
  }[] | undefined;
545
590
  documentation?: string | undefined;
591
+ existingLabels?: {
592
+ name: string;
593
+ description: string;
594
+ color: string;
595
+ }[] | undefined;
546
596
  explainer?: string[] | undefined;
547
597
  funding?: string | undefined;
548
598
  guide?: {
@@ -591,6 +641,11 @@ declare const blocks: {
591
641
  profile: string;
592
642
  }[] | undefined;
593
643
  documentation?: string | undefined;
644
+ existingLabels?: {
645
+ name: string;
646
+ description: string;
647
+ color: string;
648
+ }[] | undefined;
594
649
  explainer?: string[] | undefined;
595
650
  funding?: string | undefined;
596
651
  guide?: {
@@ -639,6 +694,11 @@ declare const blocks: {
639
694
  profile: string;
640
695
  }[] | undefined;
641
696
  documentation?: string | undefined;
697
+ existingLabels?: {
698
+ name: string;
699
+ description: string;
700
+ color: string;
701
+ }[] | undefined;
642
702
  explainer?: string[] | undefined;
643
703
  funding?: string | undefined;
644
704
  guide?: {
@@ -687,6 +747,11 @@ declare const blocks: {
687
747
  profile: string;
688
748
  }[] | undefined;
689
749
  documentation?: string | undefined;
750
+ existingLabels?: {
751
+ name: string;
752
+ description: string;
753
+ color: string;
754
+ }[] | undefined;
690
755
  explainer?: string[] | undefined;
691
756
  funding?: string | undefined;
692
757
  guide?: {
@@ -735,6 +800,11 @@ declare const blocks: {
735
800
  profile: string;
736
801
  }[] | undefined;
737
802
  documentation?: string | undefined;
803
+ existingLabels?: {
804
+ name: string;
805
+ description: string;
806
+ color: string;
807
+ }[] | undefined;
738
808
  explainer?: string[] | undefined;
739
809
  funding?: string | undefined;
740
810
  guide?: {
@@ -783,6 +853,11 @@ declare const blocks: {
783
853
  profile: string;
784
854
  }[] | undefined;
785
855
  documentation?: string | undefined;
856
+ existingLabels?: {
857
+ name: string;
858
+ description: string;
859
+ color: string;
860
+ }[] | undefined;
786
861
  explainer?: string[] | undefined;
787
862
  funding?: string | undefined;
788
863
  guide?: {
@@ -831,6 +906,11 @@ declare const blocks: {
831
906
  profile: string;
832
907
  }[] | undefined;
833
908
  documentation?: string | undefined;
909
+ existingLabels?: {
910
+ name: string;
911
+ description: string;
912
+ color: string;
913
+ }[] | undefined;
834
914
  explainer?: string[] | undefined;
835
915
  funding?: string | undefined;
836
916
  guide?: {
@@ -879,6 +959,11 @@ declare const blocks: {
879
959
  profile: string;
880
960
  }[] | undefined;
881
961
  documentation?: string | undefined;
962
+ existingLabels?: {
963
+ name: string;
964
+ description: string;
965
+ color: string;
966
+ }[] | undefined;
882
967
  explainer?: string[] | undefined;
883
968
  funding?: string | undefined;
884
969
  guide?: {
@@ -927,6 +1012,11 @@ declare const blocks: {
927
1012
  profile: string;
928
1013
  }[] | undefined;
929
1014
  documentation?: string | undefined;
1015
+ existingLabels?: {
1016
+ name: string;
1017
+ description: string;
1018
+ color: string;
1019
+ }[] | undefined;
930
1020
  explainer?: string[] | undefined;
931
1021
  funding?: string | undefined;
932
1022
  guide?: {
@@ -975,6 +1065,11 @@ declare const blocks: {
975
1065
  profile: string;
976
1066
  }[] | undefined;
977
1067
  documentation?: string | undefined;
1068
+ existingLabels?: {
1069
+ name: string;
1070
+ description: string;
1071
+ color: string;
1072
+ }[] | undefined;
978
1073
  explainer?: string[] | undefined;
979
1074
  funding?: string | undefined;
980
1075
  guide?: {
@@ -1036,6 +1131,11 @@ declare const blocks: {
1036
1131
  profile: string;
1037
1132
  }[] | undefined;
1038
1133
  documentation?: string | undefined;
1134
+ existingLabels?: {
1135
+ name: string;
1136
+ description: string;
1137
+ color: string;
1138
+ }[] | undefined;
1039
1139
  explainer?: string[] | undefined;
1040
1140
  funding?: string | undefined;
1041
1141
  guide?: {
@@ -1084,6 +1184,11 @@ declare const blocks: {
1084
1184
  profile: string;
1085
1185
  }[] | undefined;
1086
1186
  documentation?: string | undefined;
1187
+ existingLabels?: {
1188
+ name: string;
1189
+ description: string;
1190
+ color: string;
1191
+ }[] | undefined;
1087
1192
  explainer?: string[] | undefined;
1088
1193
  funding?: string | undefined;
1089
1194
  guide?: {
@@ -1132,6 +1237,11 @@ declare const blocks: {
1132
1237
  profile: string;
1133
1238
  }[] | undefined;
1134
1239
  documentation?: string | undefined;
1240
+ existingLabels?: {
1241
+ name: string;
1242
+ description: string;
1243
+ color: string;
1244
+ }[] | undefined;
1135
1245
  explainer?: string[] | undefined;
1136
1246
  funding?: string | undefined;
1137
1247
  guide?: {
@@ -1182,6 +1292,11 @@ declare const blocks: {
1182
1292
  profile: string;
1183
1293
  }[] | undefined;
1184
1294
  documentation?: string | undefined;
1295
+ existingLabels?: {
1296
+ name: string;
1297
+ description: string;
1298
+ color: string;
1299
+ }[] | undefined;
1185
1300
  explainer?: string[] | undefined;
1186
1301
  funding?: string | undefined;
1187
1302
  guide?: {
@@ -1232,6 +1347,11 @@ declare const blocks: {
1232
1347
  profile: string;
1233
1348
  }[] | undefined;
1234
1349
  documentation?: string | undefined;
1350
+ existingLabels?: {
1351
+ name: string;
1352
+ description: string;
1353
+ color: string;
1354
+ }[] | undefined;
1235
1355
  explainer?: string[] | undefined;
1236
1356
  funding?: string | undefined;
1237
1357
  guide?: {
@@ -1282,6 +1402,11 @@ declare const blocks: {
1282
1402
  profile: string;
1283
1403
  }[] | undefined;
1284
1404
  documentation?: string | undefined;
1405
+ existingLabels?: {
1406
+ name: string;
1407
+ description: string;
1408
+ color: string;
1409
+ }[] | undefined;
1285
1410
  explainer?: string[] | undefined;
1286
1411
  funding?: string | undefined;
1287
1412
  guide?: {
@@ -1330,6 +1455,11 @@ declare const blocks: {
1330
1455
  profile: string;
1331
1456
  }[] | undefined;
1332
1457
  documentation?: string | undefined;
1458
+ existingLabels?: {
1459
+ name: string;
1460
+ description: string;
1461
+ color: string;
1462
+ }[] | undefined;
1333
1463
  explainer?: string[] | undefined;
1334
1464
  funding?: string | undefined;
1335
1465
  guide?: {
@@ -1378,6 +1508,11 @@ declare const blocks: {
1378
1508
  profile: string;
1379
1509
  }[] | undefined;
1380
1510
  documentation?: string | undefined;
1511
+ existingLabels?: {
1512
+ name: string;
1513
+ description: string;
1514
+ color: string;
1515
+ }[] | undefined;
1381
1516
  explainer?: string[] | undefined;
1382
1517
  funding?: string | undefined;
1383
1518
  guide?: {
@@ -1435,6 +1570,11 @@ declare const blocks: {
1435
1570
  profile: string;
1436
1571
  }[] | undefined;
1437
1572
  documentation?: string | undefined;
1573
+ existingLabels?: {
1574
+ name: string;
1575
+ description: string;
1576
+ color: string;
1577
+ }[] | undefined;
1438
1578
  explainer?: string[] | undefined;
1439
1579
  funding?: string | undefined;
1440
1580
  guide?: {
@@ -1483,6 +1623,11 @@ declare const blocks: {
1483
1623
  profile: string;
1484
1624
  }[] | undefined;
1485
1625
  documentation?: string | undefined;
1626
+ existingLabels?: {
1627
+ name: string;
1628
+ description: string;
1629
+ color: string;
1630
+ }[] | undefined;
1486
1631
  explainer?: string[] | undefined;
1487
1632
  funding?: string | undefined;
1488
1633
  guide?: {
@@ -1531,6 +1676,11 @@ declare const blocks: {
1531
1676
  profile: string;
1532
1677
  }[] | undefined;
1533
1678
  documentation?: string | undefined;
1679
+ existingLabels?: {
1680
+ name: string;
1681
+ description: string;
1682
+ color: string;
1683
+ }[] | undefined;
1534
1684
  explainer?: string[] | undefined;
1535
1685
  funding?: string | undefined;
1536
1686
  guide?: {
@@ -1588,6 +1738,11 @@ declare const blocks: {
1588
1738
  profile: string;
1589
1739
  }[] | undefined;
1590
1740
  documentation?: string | undefined;
1741
+ existingLabels?: {
1742
+ name: string;
1743
+ description: string;
1744
+ color: string;
1745
+ }[] | undefined;
1591
1746
  explainer?: string[] | undefined;
1592
1747
  funding?: string | undefined;
1593
1748
  guide?: {
@@ -1636,6 +1791,11 @@ declare const blocks: {
1636
1791
  profile: string;
1637
1792
  }[] | undefined;
1638
1793
  documentation?: string | undefined;
1794
+ existingLabels?: {
1795
+ name: string;
1796
+ description: string;
1797
+ color: string;
1798
+ }[] | undefined;
1639
1799
  explainer?: string[] | undefined;
1640
1800
  funding?: string | undefined;
1641
1801
  guide?: {
@@ -1684,6 +1844,11 @@ declare const blocks: {
1684
1844
  profile: string;
1685
1845
  }[] | undefined;
1686
1846
  documentation?: string | undefined;
1847
+ existingLabels?: {
1848
+ name: string;
1849
+ description: string;
1850
+ color: string;
1851
+ }[] | undefined;
1687
1852
  explainer?: string[] | undefined;
1688
1853
  funding?: string | undefined;
1689
1854
  guide?: {
@@ -1732,6 +1897,11 @@ declare const blocks: {
1732
1897
  profile: string;
1733
1898
  }[] | undefined;
1734
1899
  documentation?: string | undefined;
1900
+ existingLabels?: {
1901
+ name: string;
1902
+ description: string;
1903
+ color: string;
1904
+ }[] | undefined;
1735
1905
  explainer?: string[] | undefined;
1736
1906
  funding?: string | undefined;
1737
1907
  guide?: {
@@ -1784,6 +1954,11 @@ declare const blocks: {
1784
1954
  profile: string;
1785
1955
  }[] | undefined;
1786
1956
  documentation?: string | undefined;
1957
+ existingLabels?: {
1958
+ name: string;
1959
+ description: string;
1960
+ color: string;
1961
+ }[] | undefined;
1787
1962
  explainer?: string[] | undefined;
1788
1963
  funding?: string | undefined;
1789
1964
  guide?: {
@@ -1832,6 +2007,11 @@ declare const blocks: {
1832
2007
  profile: string;
1833
2008
  }[] | undefined;
1834
2009
  documentation?: string | undefined;
2010
+ existingLabels?: {
2011
+ name: string;
2012
+ description: string;
2013
+ color: string;
2014
+ }[] | undefined;
1835
2015
  explainer?: string[] | undefined;
1836
2016
  funding?: string | undefined;
1837
2017
  guide?: {
@@ -1880,6 +2060,11 @@ declare const blocks: {
1880
2060
  profile: string;
1881
2061
  }[] | undefined;
1882
2062
  documentation?: string | undefined;
2063
+ existingLabels?: {
2064
+ name: string;
2065
+ description: string;
2066
+ color: string;
2067
+ }[] | undefined;
1883
2068
  explainer?: string[] | undefined;
1884
2069
  funding?: string | undefined;
1885
2070
  guide?: {
@@ -1928,6 +2113,11 @@ declare const blocks: {
1928
2113
  profile: string;
1929
2114
  }[] | undefined;
1930
2115
  documentation?: string | undefined;
2116
+ existingLabels?: {
2117
+ name: string;
2118
+ description: string;
2119
+ color: string;
2120
+ }[] | undefined;
1931
2121
  explainer?: string[] | undefined;
1932
2122
  funding?: string | undefined;
1933
2123
  guide?: {
@@ -1976,6 +2166,11 @@ declare const blocks: {
1976
2166
  profile: string;
1977
2167
  }[] | undefined;
1978
2168
  documentation?: string | undefined;
2169
+ existingLabels?: {
2170
+ name: string;
2171
+ description: string;
2172
+ color: string;
2173
+ }[] | undefined;
1979
2174
  explainer?: string[] | undefined;
1980
2175
  funding?: string | undefined;
1981
2176
  guide?: {
@@ -2027,6 +2222,11 @@ declare const blocks: {
2027
2222
  profile: string;
2028
2223
  }[] | undefined;
2029
2224
  documentation?: string | undefined;
2225
+ existingLabels?: {
2226
+ name: string;
2227
+ description: string;
2228
+ color: string;
2229
+ }[] | undefined;
2030
2230
  explainer?: string[] | undefined;
2031
2231
  funding?: string | undefined;
2032
2232
  guide?: {
@@ -2075,6 +2275,11 @@ declare const blocks: {
2075
2275
  profile: string;
2076
2276
  }[] | undefined;
2077
2277
  documentation?: string | undefined;
2278
+ existingLabels?: {
2279
+ name: string;
2280
+ description: string;
2281
+ color: string;
2282
+ }[] | undefined;
2078
2283
  explainer?: string[] | undefined;
2079
2284
  funding?: string | undefined;
2080
2285
  guide?: {
@@ -2138,6 +2343,11 @@ declare const blocks: {
2138
2343
  profile: string;
2139
2344
  }[] | undefined;
2140
2345
  documentation?: string | undefined;
2346
+ existingLabels?: {
2347
+ name: string;
2348
+ description: string;
2349
+ color: string;
2350
+ }[] | undefined;
2141
2351
  explainer?: string[] | undefined;
2142
2352
  funding?: string | undefined;
2143
2353
  guide?: {
@@ -2195,6 +2405,11 @@ declare const blocks: {
2195
2405
  profile: string;
2196
2406
  }[] | undefined;
2197
2407
  documentation?: string | undefined;
2408
+ existingLabels?: {
2409
+ name: string;
2410
+ description: string;
2411
+ color: string;
2412
+ }[] | undefined;
2198
2413
  explainer?: string[] | undefined;
2199
2414
  funding?: string | undefined;
2200
2415
  guide?: {
@@ -37,7 +37,7 @@ const outcomeLabels = [
37
37
  name: "status: aged away"
38
38
  },
39
39
  {
40
- color: "#ddcccc",
40
+ color: "ddcccc",
41
41
  description: "Waiting for something else to be resolved \u{1F645}",
42
42
  name: "status: blocked"
43
43
  },
@@ -47,7 +47,7 @@ const outcomeLabels = [
47
47
  name: "status: duplicate"
48
48
  },
49
49
  {
50
- color: "#05104F",
50
+ color: "05104F",
51
51
  description: "Not yet ready for implementation or a pull request",
52
52
  name: "status: in discussion"
53
53
  },
@@ -1,5 +1,5 @@
1
1
  var name = "create-typescript-app";
2
- var version = "2.4.4";
2
+ var version = "2.4.6";
3
3
  var description = "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁";
4
4
  var repository = {
5
5
  type: "git",
@@ -33,13 +33,14 @@ var scripts = {
33
33
  tsc: "tsc"
34
34
  };
35
35
  var dependencies = {
36
- bingo: "^0.5.5",
36
+ bingo: "^0.5.8",
37
37
  "bingo-fs": "^0.5.4",
38
- "bingo-stratum": "^0.5.4",
38
+ "bingo-stratum": "^0.5.5",
39
39
  "cspell-populate-words": "^0.3.0",
40
40
  execa: "^9.5.2",
41
41
  "git-remote-origin-url": "^4.0.0",
42
42
  "git-url-parse": "^16.0.1",
43
+ "github-default-labels": "^0.1.0",
43
44
  "html-to-text": "^9.0.5",
44
45
  "image-size": "^1.2.0",
45
46
  "input-from-file": "^0.5.4",
@@ -54,7 +55,7 @@ var dependencies = {
54
55
  "parse-package-name": "^1.0.0",
55
56
  "remove-dependencies": "^0.1.0",
56
57
  "remove-undefined-objects": "^6.0.0",
57
- "set-github-repository-labels": "^0.1.0",
58
+ "set-github-repository-labels": "^0.2.0",
58
59
  "sort-package-json": "^3.0.0",
59
60
  "title-case": "^4.3.2",
60
61
  zod: "^3.24.2"
@@ -74,8 +75,9 @@ var devDependencies = {
74
75
  "@vitest/coverage-v8": "3.0.7",
75
76
  "@vitest/eslint-plugin": "1.1.36",
76
77
  "all-contributors-cli": "6.26.1",
78
+ "bingo-requests": "^0.5.4",
77
79
  "bingo-stratum-testers": "0.5.6",
78
- "bingo-testers": "0.5.4",
80
+ "bingo-testers": "^0.5.6",
79
81
  "console-fail-test": "0.5.0",
80
82
  cspell: "8.17.5",
81
83
  eslint: "9.21.0",
package/lib/index.d.ts CHANGED
@@ -95,6 +95,19 @@ declare const createConfig: bingo.CreateTemplateConfig<{
95
95
  github: string;
96
96
  npm: string;
97
97
  }>;
98
+ existingLabels: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
99
+ color: zod.ZodString;
100
+ description: zod.ZodString;
101
+ name: zod.ZodString;
102
+ }, "strip", zod.ZodTypeAny, {
103
+ name: string;
104
+ description: string;
105
+ color: string;
106
+ }, {
107
+ name: string;
108
+ description: string;
109
+ color: string;
110
+ }>, "many">>;
98
111
  explainer: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
99
112
  funding: zod.ZodOptional<zod.ZodString>;
100
113
  guide: zod.ZodOptional<zod.ZodObject<{
@@ -175,6 +188,11 @@ declare const createConfig: bingo.CreateTemplateConfig<{
175
188
  profile: string;
176
189
  }[] | undefined;
177
190
  documentation?: string | undefined;
191
+ existingLabels?: {
192
+ name: string;
193
+ description: string;
194
+ color: string;
195
+ }[] | undefined;
178
196
  explainer?: string[] | undefined;
179
197
  funding?: string | undefined;
180
198
  guide?: {
@@ -0,0 +1,9 @@
1
+ import { TakeInput } from 'bingo';
2
+
3
+ declare function getExistingLabels(take: TakeInput, owner: string | undefined, repository: string | undefined): Promise<{
4
+ color: string;
5
+ description: string;
6
+ name: string;
7
+ }[]>;
8
+
9
+ export { getExistingLabels };
@@ -0,0 +1,22 @@
1
+ import { githubDefaultLabels } from "github-default-labels";
2
+ import { inputFromOctokit } from "../inputs/inputFromOctokit.js";
3
+ async function getExistingLabels(take, owner, repository) {
4
+ const existingLabelsActual = owner && repository && await take(inputFromOctokit, {
5
+ endpoint: "GET /repos/{owner}/{repo}/labels",
6
+ options: {
7
+ owner,
8
+ repo: repository
9
+ }
10
+ });
11
+ if (existingLabelsActual) {
12
+ return existingLabelsActual.map((label) => ({
13
+ color: label.color,
14
+ description: label.description,
15
+ name: label.name
16
+ }));
17
+ }
18
+ return githubDefaultLabels;
19
+ }
20
+ export {
21
+ getExistingLabels
22
+ };
@@ -43,6 +43,19 @@ declare const presetCommon: bingo_stratum.Preset<{
43
43
  github: string;
44
44
  npm: string;
45
45
  }>;
46
+ existingLabels: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
47
+ color: zod.ZodString;
48
+ description: zod.ZodString;
49
+ name: zod.ZodString;
50
+ }, "strip", zod.ZodTypeAny, {
51
+ name: string;
52
+ description: string;
53
+ color: string;
54
+ }, {
55
+ name: string;
56
+ description: string;
57
+ color: string;
58
+ }>, "many">>;
46
59
  explainer: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
47
60
  funding: zod.ZodOptional<zod.ZodString>;
48
61
  guide: zod.ZodOptional<zod.ZodObject<{
@@ -43,6 +43,19 @@ declare const presetEverything: bingo_stratum.Preset<{
43
43
  github: string;
44
44
  npm: string;
45
45
  }>;
46
+ existingLabels: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
47
+ color: zod.ZodString;
48
+ description: zod.ZodString;
49
+ name: zod.ZodString;
50
+ }, "strip", zod.ZodTypeAny, {
51
+ name: string;
52
+ description: string;
53
+ color: string;
54
+ }, {
55
+ name: string;
56
+ description: string;
57
+ color: string;
58
+ }>, "many">>;
46
59
  explainer: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
47
60
  funding: zod.ZodOptional<zod.ZodString>;
48
61
  guide: zod.ZodOptional<zod.ZodObject<{