create-typescript-app 2.45.0 → 2.46.1

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 (549) hide show
  1. package/lib/base.d.ts +170 -167
  2. package/lib/base.d.ts.map +1 -0
  3. package/lib/base.js +132 -204
  4. package/lib/base.js.map +1 -0
  5. package/lib/blocks/actions/resolveUses.d.ts +5 -2
  6. package/lib/blocks/actions/resolveUses.d.ts.map +1 -0
  7. package/lib/blocks/actions/resolveUses.js +13 -20
  8. package/lib/blocks/actions/resolveUses.js.map +1 -0
  9. package/lib/blocks/actions/steps.d.ts +25 -21
  10. package/lib/blocks/actions/steps.d.ts.map +1 -0
  11. package/lib/blocks/actions/steps.js +18 -23
  12. package/lib/blocks/actions/steps.js.map +1 -0
  13. package/lib/blocks/bin/getPrimaryBin.d.ts +4 -0
  14. package/lib/blocks/bin/getPrimaryBin.d.ts.map +1 -0
  15. package/lib/blocks/bin/getPrimaryBin.js +6 -4
  16. package/lib/blocks/bin/getPrimaryBin.js.map +1 -0
  17. package/lib/blocks/blockAllContributors.d.ts +70 -67
  18. package/lib/blocks/blockAllContributors.d.ts.map +1 -0
  19. package/lib/blocks/blockAllContributors.js +122 -170
  20. package/lib/blocks/blockAllContributors.js.map +1 -0
  21. package/lib/blocks/blockAreTheTypesWrong.d.ts +70 -67
  22. package/lib/blocks/blockAreTheTypesWrong.d.ts.map +1 -0
  23. package/lib/blocks/blockAreTheTypesWrong.js +13 -25
  24. package/lib/blocks/blockAreTheTypesWrong.js.map +1 -0
  25. package/lib/blocks/blockCSpell.d.ts +72 -69
  26. package/lib/blocks/blockCSpell.d.ts.map +1 -0
  27. package/lib/blocks/blockCSpell.js +68 -105
  28. package/lib/blocks/blockCSpell.js.map +1 -0
  29. package/lib/blocks/blockCTATransitions.d.ts +70 -67
  30. package/lib/blocks/blockCTATransitions.d.ts.map +1 -0
  31. package/lib/blocks/blockCTATransitions.js +108 -158
  32. package/lib/blocks/blockCTATransitions.js.map +1 -0
  33. package/lib/blocks/blockCodecov.d.ts +71 -68
  34. package/lib/blocks/blockCodecov.d.ts.map +1 -0
  35. package/lib/blocks/blockCodecov.js +48 -75
  36. package/lib/blocks/blockCodecov.js.map +1 -0
  37. package/lib/blocks/blockContributingDocs.d.ts +70 -67
  38. package/lib/blocks/blockContributingDocs.d.ts.map +1 -0
  39. package/lib/blocks/blockContributingDocs.js +14 -21
  40. package/lib/blocks/blockContributingDocs.js.map +1 -0
  41. package/lib/blocks/blockContributorCovenant.d.ts +70 -67
  42. package/lib/blocks/blockContributorCovenant.d.ts.map +1 -0
  43. package/lib/blocks/blockContributorCovenant.js +23 -37
  44. package/lib/blocks/blockContributorCovenant.js.map +1 -0
  45. package/lib/blocks/blockDevelopmentDocs.d.ts +83 -80
  46. package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -0
  47. package/lib/blocks/blockDevelopmentDocs.js +64 -74
  48. package/lib/blocks/blockDevelopmentDocs.js.map +1 -0
  49. package/lib/blocks/blockESLint.d.ts +95 -92
  50. package/lib/blocks/blockESLint.d.ts.map +1 -0
  51. package/lib/blocks/blockESLint.js +169 -263
  52. package/lib/blocks/blockESLint.js.map +1 -0
  53. package/lib/blocks/blockESLintComments.d.ts +70 -67
  54. package/lib/blocks/blockESLintComments.d.ts.map +1 -0
  55. package/lib/blocks/blockESLintComments.js +16 -21
  56. package/lib/blocks/blockESLintComments.js.map +1 -0
  57. package/lib/blocks/blockESLintJSDoc.d.ts +70 -67
  58. package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -0
  59. package/lib/blocks/blockESLintJSDoc.js +20 -20
  60. package/lib/blocks/blockESLintJSDoc.js.map +1 -0
  61. package/lib/blocks/blockESLintJSONC.d.ts +70 -67
  62. package/lib/blocks/blockESLintJSONC.d.ts.map +1 -0
  63. package/lib/blocks/blockESLintJSONC.js +16 -16
  64. package/lib/blocks/blockESLintJSONC.js.map +1 -0
  65. package/lib/blocks/blockESLintMarkdown.d.ts +70 -67
  66. package/lib/blocks/blockESLintMarkdown.d.ts.map +1 -0
  67. package/lib/blocks/blockESLintMarkdown.js +17 -22
  68. package/lib/blocks/blockESLintMarkdown.js.map +1 -0
  69. package/lib/blocks/blockESLintMoreStyling.d.ts +70 -67
  70. package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -0
  71. package/lib/blocks/blockESLintMoreStyling.js +22 -30
  72. package/lib/blocks/blockESLintMoreStyling.js.map +1 -0
  73. package/lib/blocks/blockESLintNode.d.ts +70 -67
  74. package/lib/blocks/blockESLintNode.d.ts.map +1 -0
  75. package/lib/blocks/blockESLintNode.js +20 -23
  76. package/lib/blocks/blockESLintNode.js.map +1 -0
  77. package/lib/blocks/blockESLintPackageJson.d.ts +70 -67
  78. package/lib/blocks/blockESLintPackageJson.d.ts.map +1 -0
  79. package/lib/blocks/blockESLintPackageJson.js +26 -49
  80. package/lib/blocks/blockESLintPackageJson.js.map +1 -0
  81. package/lib/blocks/blockESLintPerfectionist.d.ts +70 -67
  82. package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -0
  83. package/lib/blocks/blockESLintPerfectionist.js +20 -27
  84. package/lib/blocks/blockESLintPerfectionist.js.map +1 -0
  85. package/lib/blocks/blockESLintPlugin.d.ts +71 -68
  86. package/lib/blocks/blockESLintPlugin.d.ts.map +1 -0
  87. package/lib/blocks/blockESLintPlugin.js +89 -137
  88. package/lib/blocks/blockESLintPlugin.js.map +1 -0
  89. package/lib/blocks/blockESLintRegexp.d.ts +70 -67
  90. package/lib/blocks/blockESLintRegexp.d.ts.map +1 -0
  91. package/lib/blocks/blockESLintRegexp.js +16 -18
  92. package/lib/blocks/blockESLintRegexp.js.map +1 -0
  93. package/lib/blocks/blockESLintYML.d.ts +70 -67
  94. package/lib/blocks/blockESLintYML.d.ts.map +1 -0
  95. package/lib/blocks/blockESLintYML.js +30 -41
  96. package/lib/blocks/blockESLintYML.js.map +1 -0
  97. package/lib/blocks/blockExampleFiles.d.ts +72 -69
  98. package/lib/blocks/blockExampleFiles.d.ts.map +1 -0
  99. package/lib/blocks/blockExampleFiles.js +22 -29
  100. package/lib/blocks/blockExampleFiles.js.map +1 -0
  101. package/lib/blocks/blockFunding.d.ts +70 -67
  102. package/lib/blocks/blockFunding.d.ts.map +1 -0
  103. package/lib/blocks/blockFunding.js +10 -15
  104. package/lib/blocks/blockFunding.js.map +1 -0
  105. package/lib/blocks/blockGitHubActionsCI.d.ts +85 -82
  106. package/lib/blocks/blockGitHubActionsCI.d.ts.map +1 -0
  107. package/lib/blocks/blockGitHubActionsCI.js +83 -134
  108. package/lib/blocks/blockGitHubActionsCI.js.map +1 -0
  109. package/lib/blocks/blockGitHubApps.d.ts +74 -71
  110. package/lib/blocks/blockGitHubApps.d.ts.map +1 -0
  111. package/lib/blocks/blockGitHubApps.js +15 -24
  112. package/lib/blocks/blockGitHubApps.js.map +1 -0
  113. package/lib/blocks/blockGitHubIssueTemplates.d.ts +70 -67
  114. package/lib/blocks/blockGitHubIssueTemplates.d.ts.map +1 -0
  115. package/lib/blocks/blockGitHubIssueTemplates.js +185 -204
  116. package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -0
  117. package/lib/blocks/blockGitHubPRTemplate.d.ts +70 -67
  118. package/lib/blocks/blockGitHubPRTemplate.d.ts.map +1 -0
  119. package/lib/blocks/blockGitHubPRTemplate.js +11 -16
  120. package/lib/blocks/blockGitHubPRTemplate.js.map +1 -0
  121. package/lib/blocks/blockGitignore.d.ts +71 -68
  122. package/lib/blocks/blockGitignore.d.ts.map +1 -0
  123. package/lib/blocks/blockGitignore.js +13 -18
  124. package/lib/blocks/blockGitignore.js.map +1 -0
  125. package/lib/blocks/blockKnip.d.ts +73 -70
  126. package/lib/blocks/blockKnip.d.ts.map +1 -0
  127. package/lib/blocks/blockKnip.js +60 -88
  128. package/lib/blocks/blockKnip.js.map +1 -0
  129. package/lib/blocks/blockMITLicense.d.ts +70 -67
  130. package/lib/blocks/blockMITLicense.d.ts.map +1 -0
  131. package/lib/blocks/blockMITLicense.js +21 -31
  132. package/lib/blocks/blockMITLicense.js.map +1 -0
  133. package/lib/blocks/blockMain.d.ts +72 -69
  134. package/lib/blocks/blockMain.d.ts.map +1 -0
  135. package/lib/blocks/blockMain.js +17 -29
  136. package/lib/blocks/blockMain.js.map +1 -0
  137. package/lib/blocks/blockMarkdownlint.d.ts +71 -68
  138. package/lib/blocks/blockMarkdownlint.d.ts.map +1 -0
  139. package/lib/blocks/blockMarkdownlint.js +55 -94
  140. package/lib/blocks/blockMarkdownlint.js.map +1 -0
  141. package/lib/blocks/blockNcc.d.ts +71 -68
  142. package/lib/blocks/blockNcc.d.ts.map +1 -0
  143. package/lib/blocks/blockNcc.js +44 -72
  144. package/lib/blocks/blockNcc.js.map +1 -0
  145. package/lib/blocks/blockNvmrc.d.ts +70 -67
  146. package/lib/blocks/blockNvmrc.d.ts.map +1 -0
  147. package/lib/blocks/blockNvmrc.js +16 -21
  148. package/lib/blocks/blockNvmrc.js.map +1 -0
  149. package/lib/blocks/blockOctoGuide.d.ts +71 -68
  150. package/lib/blocks/blockOctoGuide.d.ts.map +1 -0
  151. package/lib/blocks/blockOctoGuide.js +65 -93
  152. package/lib/blocks/blockOctoGuide.js.map +1 -0
  153. package/lib/blocks/blockOctoGuideStrict.d.ts +70 -67
  154. package/lib/blocks/blockOctoGuideStrict.d.ts.map +1 -0
  155. package/lib/blocks/blockOctoGuideStrict.js +10 -15
  156. package/lib/blocks/blockOctoGuideStrict.js.map +1 -0
  157. package/lib/blocks/blockPackageJson.d.ts +144 -141
  158. package/lib/blocks/blockPackageJson.d.ts.map +1 -0
  159. package/lib/blocks/blockPackageJson.js +82 -113
  160. package/lib/blocks/blockPackageJson.js.map +1 -0
  161. package/lib/blocks/blockPnpmDedupe.d.ts +70 -67
  162. package/lib/blocks/blockPnpmDedupe.d.ts.map +1 -0
  163. package/lib/blocks/blockPnpmDedupe.js +24 -49
  164. package/lib/blocks/blockPnpmDedupe.js.map +1 -0
  165. package/lib/blocks/blockPrettier.d.ts +79 -76
  166. package/lib/blocks/blockPrettier.d.ts.map +1 -0
  167. package/lib/blocks/blockPrettier.js +82 -116
  168. package/lib/blocks/blockPrettier.js.map +1 -0
  169. package/lib/blocks/blockPrettierPluginCurly.d.ts +70 -67
  170. package/lib/blocks/blockPrettierPluginCurly.d.ts.map +1 -0
  171. package/lib/blocks/blockPrettierPluginCurly.js +10 -15
  172. package/lib/blocks/blockPrettierPluginCurly.js.map +1 -0
  173. package/lib/blocks/blockPrettierPluginPackageJson.d.ts +70 -67
  174. package/lib/blocks/blockPrettierPluginPackageJson.d.ts.map +1 -0
  175. package/lib/blocks/blockPrettierPluginPackageJson.js +10 -15
  176. package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -0
  177. package/lib/blocks/blockPrettierPluginSh.d.ts +70 -67
  178. package/lib/blocks/blockPrettierPluginSh.d.ts.map +1 -0
  179. package/lib/blocks/blockPrettierPluginSh.js +10 -15
  180. package/lib/blocks/blockPrettierPluginSh.js.map +1 -0
  181. package/lib/blocks/blockREADME.d.ts +82 -79
  182. package/lib/blocks/blockREADME.d.ts.map +1 -0
  183. package/lib/blocks/blockREADME.js +46 -60
  184. package/lib/blocks/blockREADME.js.map +1 -0
  185. package/lib/blocks/blockReleaseIt.d.ts +74 -71
  186. package/lib/blocks/blockReleaseIt.d.ts.map +1 -0
  187. package/lib/blocks/blockReleaseIt.js +152 -181
  188. package/lib/blocks/blockReleaseIt.js.map +1 -0
  189. package/lib/blocks/blockRemoveDependencies.d.ts +71 -68
  190. package/lib/blocks/blockRemoveDependencies.d.ts.map +1 -0
  191. package/lib/blocks/blockRemoveDependencies.js +18 -27
  192. package/lib/blocks/blockRemoveDependencies.js.map +1 -0
  193. package/lib/blocks/blockRemoveFiles.d.ts +71 -68
  194. package/lib/blocks/blockRemoveFiles.d.ts.map +1 -0
  195. package/lib/blocks/blockRemoveFiles.js +19 -28
  196. package/lib/blocks/blockRemoveFiles.js.map +1 -0
  197. package/lib/blocks/blockRemoveWorkflows.d.ts +71 -68
  198. package/lib/blocks/blockRemoveWorkflows.d.ts.map +1 -0
  199. package/lib/blocks/blockRemoveWorkflows.js +16 -27
  200. package/lib/blocks/blockRemoveWorkflows.js.map +1 -0
  201. package/lib/blocks/blockRenovate.d.ts +71 -68
  202. package/lib/blocks/blockRenovate.d.ts.map +1 -0
  203. package/lib/blocks/blockRenovate.js +37 -52
  204. package/lib/blocks/blockRenovate.js.map +1 -0
  205. package/lib/blocks/blockRepositoryBranchRuleset.d.ts +71 -68
  206. package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -0
  207. package/lib/blocks/blockRepositoryBranchRuleset.js +77 -107
  208. package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -0
  209. package/lib/blocks/blockRepositoryLabels.d.ts +70 -67
  210. package/lib/blocks/blockRepositoryLabels.d.ts.map +1 -0
  211. package/lib/blocks/blockRepositoryLabels.js +51 -58
  212. package/lib/blocks/blockRepositoryLabels.js.map +1 -0
  213. package/lib/blocks/blockRepositorySecrets.d.ts +74 -71
  214. package/lib/blocks/blockRepositorySecrets.d.ts.map +1 -0
  215. package/lib/blocks/blockRepositorySecrets.js +15 -26
  216. package/lib/blocks/blockRepositorySecrets.js.map +1 -0
  217. package/lib/blocks/blockRepositorySettings.d.ts +70 -67
  218. package/lib/blocks/blockRepositorySettings.d.ts.map +1 -0
  219. package/lib/blocks/blockRepositorySettings.js +32 -39
  220. package/lib/blocks/blockRepositorySettings.js.map +1 -0
  221. package/lib/blocks/blockSecurityDocs.d.ts +70 -67
  222. package/lib/blocks/blockSecurityDocs.d.ts.map +1 -0
  223. package/lib/blocks/blockSecurityDocs.js +11 -16
  224. package/lib/blocks/blockSecurityDocs.js.map +1 -0
  225. package/lib/blocks/blockTSDown.d.ts +79 -0
  226. package/lib/blocks/blockTSDown.d.ts.map +1 -0
  227. package/lib/blocks/blockTSDown.js +111 -0
  228. package/lib/blocks/blockTSDown.js.map +1 -0
  229. package/lib/blocks/blockTemplatedWith.d.ts +70 -67
  230. package/lib/blocks/blockTemplatedWith.d.ts.map +1 -0
  231. package/lib/blocks/blockTemplatedWith.js +12 -20
  232. package/lib/blocks/blockTemplatedWith.js.map +1 -0
  233. package/lib/blocks/blockTypeScript.d.ts +181 -178
  234. package/lib/blocks/blockTypeScript.d.ts.map +1 -0
  235. package/lib/blocks/blockTypeScript.js +94 -127
  236. package/lib/blocks/blockTypeScript.js.map +1 -0
  237. package/lib/blocks/blockVSCode.d.ts +78 -75
  238. package/lib/blocks/blockVSCode.d.ts.map +1 -0
  239. package/lib/blocks/blockVSCode.js +51 -81
  240. package/lib/blocks/blockVSCode.js.map +1 -0
  241. package/lib/blocks/blockVitest.d.ts +86 -83
  242. package/lib/blocks/blockVitest.d.ts.map +1 -0
  243. package/lib/blocks/blockVitest.js +115 -168
  244. package/lib/blocks/blockVitest.js.map +1 -0
  245. package/lib/blocks/blockWebExt.d.ts +70 -67
  246. package/lib/blocks/blockWebExt.d.ts.map +1 -0
  247. package/lib/blocks/blockWebExt.js +59 -83
  248. package/lib/blocks/blockWebExt.js.map +1 -0
  249. package/lib/blocks/eslint/blockESLintIntake.d.ts +9 -6
  250. package/lib/blocks/eslint/blockESLintIntake.d.ts.map +1 -0
  251. package/lib/blocks/eslint/blockESLintIntake.js +84 -111
  252. package/lib/blocks/eslint/blockESLintIntake.js.map +1 -0
  253. package/lib/blocks/eslint/blockESLintPluginIntake.d.ts +5 -2
  254. package/lib/blocks/eslint/blockESLintPluginIntake.d.ts.map +1 -0
  255. package/lib/blocks/eslint/blockESLintPluginIntake.js +26 -44
  256. package/lib/blocks/eslint/blockESLintPluginIntake.js.map +1 -0
  257. package/lib/blocks/eslint/schemas.d.ts +77 -73
  258. package/lib/blocks/eslint/schemas.d.ts.map +1 -0
  259. package/lib/blocks/eslint/schemas.js +31 -36
  260. package/lib/blocks/eslint/schemas.js.map +1 -0
  261. package/lib/blocks/files/createJobName.d.ts +4 -0
  262. package/lib/blocks/files/createJobName.d.ts.map +1 -0
  263. package/lib/blocks/files/createJobName.js +6 -4
  264. package/lib/blocks/files/createJobName.js.map +1 -0
  265. package/lib/blocks/files/createMultiWorkflowFile.d.ts +21 -14
  266. package/lib/blocks/files/createMultiWorkflowFile.d.ts.map +1 -0
  267. package/lib/blocks/files/createMultiWorkflowFile.js +27 -35
  268. package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -0
  269. package/lib/blocks/files/createSoloWorkflowFile.d.ts +61 -52
  270. package/lib/blocks/files/createSoloWorkflowFile.d.ts.map +1 -0
  271. package/lib/blocks/files/createSoloWorkflowFile.js +19 -25
  272. package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -0
  273. package/lib/blocks/files/formatIgnoreFile.d.ts +4 -0
  274. package/lib/blocks/files/formatIgnoreFile.d.ts.map +1 -0
  275. package/lib/blocks/files/formatIgnoreFile.js +6 -4
  276. package/lib/blocks/files/formatIgnoreFile.js.map +1 -0
  277. package/lib/blocks/files/formatWorkflowYaml.d.ts +4 -0
  278. package/lib/blocks/files/formatWorkflowYaml.d.ts.map +1 -0
  279. package/lib/blocks/files/formatWorkflowYaml.js +7 -4
  280. package/lib/blocks/files/formatWorkflowYaml.js.map +1 -0
  281. package/lib/blocks/files/formatYaml.d.ts +4 -0
  282. package/lib/blocks/files/formatYaml.d.ts.map +1 -0
  283. package/lib/blocks/files/formatYaml.js +16 -21
  284. package/lib/blocks/files/formatYaml.js.map +1 -0
  285. package/lib/blocks/files/removeUsesQuotes.d.ts +4 -0
  286. package/lib/blocks/files/removeUsesQuotes.d.ts.map +1 -0
  287. package/lib/blocks/files/removeUsesQuotes.js +6 -7
  288. package/lib/blocks/files/removeUsesQuotes.js.map +1 -0
  289. package/lib/blocks/getInstallationSuggestions.d.ts +4 -0
  290. package/lib/blocks/getInstallationSuggestions.d.ts.map +1 -0
  291. package/lib/blocks/getInstallationSuggestions.js +11 -12
  292. package/lib/blocks/getInstallationSuggestions.js.map +1 -0
  293. package/lib/blocks/index.d.ts +3646 -3644
  294. package/lib/blocks/index.d.ts.map +1 -0
  295. package/lib/blocks/index.js +83 -177
  296. package/lib/blocks/index.js.map +1 -0
  297. package/lib/blocks/intake/intakeFile.d.ts +5 -1
  298. package/lib/blocks/intake/intakeFile.d.ts.map +1 -0
  299. package/lib/blocks/intake/intakeFile.js +12 -18
  300. package/lib/blocks/intake/intakeFile.js.map +1 -0
  301. package/lib/blocks/intake/intakeFileAsJson.d.ts +5 -1
  302. package/lib/blocks/intake/intakeFileAsJson.d.ts.map +1 -0
  303. package/lib/blocks/intake/intakeFileAsJson.js +13 -10
  304. package/lib/blocks/intake/intakeFileAsJson.js.map +1 -0
  305. package/lib/blocks/intake/intakeFileAsYaml.d.ts +5 -1
  306. package/lib/blocks/intake/intakeFileAsYaml.d.ts.map +1 -0
  307. package/lib/blocks/intake/intakeFileAsYaml.js +13 -10
  308. package/lib/blocks/intake/intakeFileAsYaml.js.map +1 -0
  309. package/lib/blocks/intake/intakeFileDefineConfig.d.ts +5 -1
  310. package/lib/blocks/intake/intakeFileDefineConfig.d.ts.map +1 -0
  311. package/lib/blocks/intake/intakeFileDefineConfig.js +20 -23
  312. package/lib/blocks/intake/intakeFileDefineConfig.js.map +1 -0
  313. package/lib/blocks/options.fakes.d.ts +23 -20
  314. package/lib/blocks/options.fakes.d.ts.map +1 -0
  315. package/lib/blocks/options.fakes.js +19 -23
  316. package/lib/blocks/options.fakes.js.map +1 -0
  317. package/lib/blocks/outcomeLabels.d.ts +12 -9
  318. package/lib/blocks/outcomeLabels.d.ts.map +1 -0
  319. package/lib/blocks/outcomeLabels.js +93 -92
  320. package/lib/blocks/outcomeLabels.js.map +1 -0
  321. package/lib/blocks/phases.d.ts +9 -6
  322. package/lib/blocks/phases.d.ts.map +1 -0
  323. package/lib/blocks/phases.js +10 -8
  324. package/lib/blocks/phases.js.map +1 -0
  325. package/lib/constants.d.ts +8 -5
  326. package/lib/constants.d.ts.map +1 -0
  327. package/lib/constants.js +9 -9
  328. package/lib/constants.js.map +1 -0
  329. package/lib/data/contributions.d.ts +4 -0
  330. package/lib/data/contributions.d.ts.map +1 -0
  331. package/lib/data/contributions.js +13 -11
  332. package/lib/data/contributions.js.map +1 -0
  333. package/lib/data/packageData.d.ts +7 -166
  334. package/lib/data/packageData.d.ts.map +1 -0
  335. package/lib/data/packageData.js +16 -24
  336. package/lib/data/packageData.js.map +1 -0
  337. package/lib/index.d.ts +290 -288
  338. package/lib/index.d.ts.map +1 -0
  339. package/lib/index.js +61 -7
  340. package/lib/index.js.map +1 -0
  341. package/lib/inputs/inputFromDirectory.d.ts +8 -4
  342. package/lib/inputs/inputFromDirectory.d.ts.map +1 -0
  343. package/lib/inputs/inputFromDirectory.js +11 -10
  344. package/lib/inputs/inputFromDirectory.js.map +1 -0
  345. package/lib/inputs/inputFromOctokit.d.ts +9 -5
  346. package/lib/inputs/inputFromOctokit.d.ts.map +1 -0
  347. package/lib/inputs/inputFromOctokit.js +23 -24
  348. package/lib/inputs/inputFromOctokit.js.map +1 -0
  349. package/lib/options/readAccess.d.ts +5 -1
  350. package/lib/options/readAccess.d.ts.map +1 -0
  351. package/lib/options/readAccess.js +6 -4
  352. package/lib/options/readAccess.js.map +1 -0
  353. package/lib/options/readAllContributors.d.ts +6 -2
  354. package/lib/options/readAllContributors.d.ts.map +1 -0
  355. package/lib/options/readAllContributors.js +17 -22
  356. package/lib/options/readAllContributors.js.map +1 -0
  357. package/lib/options/readAuthor.d.ts +6 -3
  358. package/lib/options/readAuthor.d.ts.map +1 -0
  359. package/lib/options/readAuthor.js +6 -4
  360. package/lib/options/readAuthor.js.map +1 -0
  361. package/lib/options/readBin.d.ts +5 -1
  362. package/lib/options/readBin.d.ts.map +1 -0
  363. package/lib/options/readBin.js +8 -10
  364. package/lib/options/readBin.js.map +1 -0
  365. package/lib/options/readDescription.d.ts +5 -1
  366. package/lib/options/readDescription.d.ts.map +1 -0
  367. package/lib/options/readDescription.js +16 -23
  368. package/lib/options/readDescription.js.map +1 -0
  369. package/lib/options/readDescriptionFromReadme.d.ts +4 -0
  370. package/lib/options/readDescriptionFromReadme.d.ts.map +1 -0
  371. package/lib/options/readDescriptionFromReadme.js +11 -13
  372. package/lib/options/readDescriptionFromReadme.js.map +1 -0
  373. package/lib/options/readDevelopmentDocumentation.d.ts +5 -1
  374. package/lib/options/readDevelopmentDocumentation.d.ts.map +1 -0
  375. package/lib/options/readDevelopmentDocumentation.js +18 -21
  376. package/lib/options/readDevelopmentDocumentation.js.map +1 -0
  377. package/lib/options/readDocumentation.d.ts +5 -2
  378. package/lib/options/readDocumentation.d.ts.map +1 -0
  379. package/lib/options/readDocumentation.js +21 -19
  380. package/lib/options/readDocumentation.js.map +1 -0
  381. package/lib/options/readEmailFromCodeOfConduct.d.ts +5 -1
  382. package/lib/options/readEmailFromCodeOfConduct.d.ts.map +1 -0
  383. package/lib/options/readEmailFromCodeOfConduct.js +8 -7
  384. package/lib/options/readEmailFromCodeOfConduct.js.map +1 -0
  385. package/lib/options/readEmailFromGit.d.ts +5 -1
  386. package/lib/options/readEmailFromGit.d.ts.map +1 -0
  387. package/lib/options/readEmailFromGit.js +7 -4
  388. package/lib/options/readEmailFromGit.js.map +1 -0
  389. package/lib/options/readEmailFromNpm.d.ts +6 -3
  390. package/lib/options/readEmailFromNpm.d.ts.map +1 -0
  391. package/lib/options/readEmailFromNpm.js +6 -4
  392. package/lib/options/readEmailFromNpm.js.map +1 -0
  393. package/lib/options/readEmails.d.ts +7 -4
  394. package/lib/options/readEmails.d.ts.map +1 -0
  395. package/lib/options/readEmails.js +11 -6
  396. package/lib/options/readEmails.js.map +1 -0
  397. package/lib/options/readEmoji.d.ts +4 -0
  398. package/lib/options/readEmoji.d.ts.map +1 -0
  399. package/lib/options/readEmoji.js +6 -4
  400. package/lib/options/readEmoji.js.map +1 -0
  401. package/lib/options/readExistingLabels.d.ts +8 -4
  402. package/lib/options/readExistingLabels.d.ts.map +1 -0
  403. package/lib/options/readExistingLabels.js +21 -20
  404. package/lib/options/readExistingLabels.js.map +1 -0
  405. package/lib/options/readFileAsJson.d.ts +4 -0
  406. package/lib/options/readFileAsJson.d.ts.map +1 -0
  407. package/lib/options/readFileAsJson.js +11 -11
  408. package/lib/options/readFileAsJson.js.map +1 -0
  409. package/lib/options/readFileSafe.d.ts +4 -0
  410. package/lib/options/readFileSafe.d.ts.map +1 -0
  411. package/lib/options/readFileSafe.js +11 -8
  412. package/lib/options/readFileSafe.js.map +1 -0
  413. package/lib/options/readFunding.d.ts +5 -1
  414. package/lib/options/readFunding.d.ts.map +1 -0
  415. package/lib/options/readFunding.js +8 -7
  416. package/lib/options/readFunding.js.map +1 -0
  417. package/lib/options/readGitDefaults.d.ts +6 -2
  418. package/lib/options/readGitDefaults.d.ts.map +1 -0
  419. package/lib/options/readGitDefaults.js +9 -8
  420. package/lib/options/readGitDefaults.js.map +1 -0
  421. package/lib/options/readGuide.d.ts +7 -3
  422. package/lib/options/readGuide.d.ts.map +1 -0
  423. package/lib/options/readGuide.js +14 -19
  424. package/lib/options/readGuide.js.map +1 -0
  425. package/lib/options/readKeywords.d.ts +5 -1
  426. package/lib/options/readKeywords.d.ts.map +1 -0
  427. package/lib/options/readKeywords.js +7 -5
  428. package/lib/options/readKeywords.js.map +1 -0
  429. package/lib/options/readLogo.d.ts +8 -4
  430. package/lib/options/readLogo.d.ts.map +1 -0
  431. package/lib/options/readLogo.js +19 -22
  432. package/lib/options/readLogo.js.map +1 -0
  433. package/lib/options/readLogoSizing.d.ts +7 -3
  434. package/lib/options/readLogoSizing.d.ts.map +1 -0
  435. package/lib/options/readLogoSizing.js +26 -22
  436. package/lib/options/readLogoSizing.js.map +1 -0
  437. package/lib/options/readNode.d.ts +7 -3
  438. package/lib/options/readNode.d.ts.map +1 -0
  439. package/lib/options/readNode.js +12 -9
  440. package/lib/options/readNode.js.map +1 -0
  441. package/lib/options/readNpmDefaults.d.ts +7 -3
  442. package/lib/options/readNpmDefaults.d.ts.map +1 -0
  443. package/lib/options/readNpmDefaults.js +9 -6
  444. package/lib/options/readNpmDefaults.js.map +1 -0
  445. package/lib/options/readOwner.d.ts +7 -4
  446. package/lib/options/readOwner.d.ts.map +1 -0
  447. package/lib/options/readOwner.js +7 -6
  448. package/lib/options/readOwner.js.map +1 -0
  449. package/lib/options/readPackageAuthor.d.ts +8 -4
  450. package/lib/options/readPackageAuthor.d.ts.map +1 -0
  451. package/lib/options/readPackageAuthor.js +12 -12
  452. package/lib/options/readPackageAuthor.js.map +1 -0
  453. package/lib/options/readPackageData.d.ts +6 -2
  454. package/lib/options/readPackageData.d.ts.map +1 -0
  455. package/lib/options/readPackageData.js +8 -9
  456. package/lib/options/readPackageData.js.map +1 -0
  457. package/lib/options/readPnpm.d.ts +5 -1
  458. package/lib/options/readPnpm.d.ts.map +1 -0
  459. package/lib/options/readPnpm.js +7 -5
  460. package/lib/options/readPnpm.js.map +1 -0
  461. package/lib/options/readReadmeAdditional.d.ts +4 -0
  462. package/lib/options/readReadmeAdditional.d.ts.map +1 -0
  463. package/lib/options/readReadmeAdditional.js +15 -22
  464. package/lib/options/readReadmeAdditional.js.map +1 -0
  465. package/lib/options/readReadmeExplainer.d.ts +4 -0
  466. package/lib/options/readReadmeExplainer.d.ts.map +1 -0
  467. package/lib/options/readReadmeExplainer.js +24 -25
  468. package/lib/options/readReadmeExplainer.js.map +1 -0
  469. package/lib/options/readReadmeFootnotes.d.ts +4 -0
  470. package/lib/options/readReadmeFootnotes.d.ts.map +1 -0
  471. package/lib/options/readReadmeFootnotes.js +15 -24
  472. package/lib/options/readReadmeFootnotes.js.map +1 -0
  473. package/lib/options/readReadmeUsage.d.ts +4 -0
  474. package/lib/options/readReadmeUsage.d.ts.map +1 -0
  475. package/lib/options/readReadmeUsage.js +13 -15
  476. package/lib/options/readReadmeUsage.js.map +1 -0
  477. package/lib/options/readRepository.d.ts +8 -4
  478. package/lib/options/readRepository.d.ts.map +1 -0
  479. package/lib/options/readRepository.js +6 -4
  480. package/lib/options/readRepository.js.map +1 -0
  481. package/lib/options/readRulesetId.d.ts +5 -1
  482. package/lib/options/readRulesetId.d.ts.map +1 -0
  483. package/lib/options/readRulesetId.js +14 -13
  484. package/lib/options/readRulesetId.js.map +1 -0
  485. package/lib/options/readTitle.d.ts +4 -0
  486. package/lib/options/readTitle.d.ts.map +1 -0
  487. package/lib/options/readTitle.js +11 -10
  488. package/lib/options/readTitle.js.map +1 -0
  489. package/lib/options/readWords.d.ts +5 -1
  490. package/lib/options/readWords.d.ts.map +1 -0
  491. package/lib/options/readWords.js +9 -10
  492. package/lib/options/readWords.js.map +1 -0
  493. package/lib/options/readWorkflowsVersions.d.ts +6 -3
  494. package/lib/options/readWorkflowsVersions.d.ts.map +1 -0
  495. package/lib/options/readWorkflowsVersions.js +45 -63
  496. package/lib/options/readWorkflowsVersions.js.map +1 -0
  497. package/lib/presets/common.d.ts +169 -166
  498. package/lib/presets/common.d.ts.map +1 -0
  499. package/lib/presets/common.js +21 -18
  500. package/lib/presets/common.js.map +1 -0
  501. package/lib/presets/everything.d.ts +169 -166
  502. package/lib/presets/everything.d.ts.map +1 -0
  503. package/lib/presets/everything.js +39 -36
  504. package/lib/presets/everything.js.map +1 -0
  505. package/lib/presets/index.d.ts +504 -502
  506. package/lib/presets/index.d.ts.map +1 -0
  507. package/lib/presets/index.js +10 -13
  508. package/lib/presets/index.js.map +1 -0
  509. package/lib/presets/minimal.d.ts +169 -166
  510. package/lib/presets/minimal.d.ts.map +1 -0
  511. package/lib/presets/minimal.js +51 -48
  512. package/lib/presets/minimal.js.map +1 -0
  513. package/lib/schemas.d.ts +75 -71
  514. package/lib/schemas.d.ts.map +1 -0
  515. package/lib/schemas.js +19 -21
  516. package/lib/schemas.js.map +1 -0
  517. package/lib/template.d.ts +169 -166
  518. package/lib/template.d.ts.map +1 -0
  519. package/lib/template.js +31 -24
  520. package/lib/template.js.map +1 -0
  521. package/lib/types.d.ts +32 -30
  522. package/lib/types.d.ts.map +1 -0
  523. package/lib/utils/htmlToTextSafe.d.ts +4 -0
  524. package/lib/utils/htmlToTextSafe.d.ts.map +1 -0
  525. package/lib/utils/htmlToTextSafe.js +13 -12
  526. package/lib/utils/htmlToTextSafe.js.map +1 -0
  527. package/lib/utils/resolveBin.d.ts +4 -0
  528. package/lib/utils/resolveBin.d.ts.map +1 -0
  529. package/lib/utils/resolveBin.js +7 -4
  530. package/lib/utils/resolveBin.js.map +1 -0
  531. package/lib/utils/swallowError.d.ts +4 -0
  532. package/lib/utils/swallowError.d.ts.map +1 -0
  533. package/lib/utils/swallowError.js +6 -4
  534. package/lib/utils/swallowError.js.map +1 -0
  535. package/lib/utils/swallowErrorAsync.d.ts +4 -0
  536. package/lib/utils/swallowErrorAsync.d.ts.map +1 -0
  537. package/lib/utils/swallowErrorAsync.js +10 -8
  538. package/lib/utils/swallowErrorAsync.js.map +1 -0
  539. package/lib/utils/trimPrecedingSlash.d.ts +4 -0
  540. package/lib/utils/trimPrecedingSlash.d.ts.map +1 -0
  541. package/lib/utils/trimPrecedingSlash.js +6 -4
  542. package/lib/utils/trimPrecedingSlash.js.map +1 -0
  543. package/lib/utils/tryCatch.d.ts +4 -0
  544. package/lib/utils/tryCatch.d.ts.map +1 -0
  545. package/lib/utils/tryCatch.js +10 -8
  546. package/lib/utils/tryCatch.js.map +1 -0
  547. package/package.json +3 -3
  548. package/lib/blocks/blockTSup.d.ts +0 -76
  549. package/lib/blocks/blockTSup.js +0 -139
package/lib/base.js CHANGED
@@ -1,8 +1,3 @@
1
- import { createBase } from "bingo-stratum";
2
- import { inputFromFile } from "input-from-file";
3
- import { inputFromScript } from "input-from-script";
4
- import lazyValue from "lazy-value";
5
- import { z } from "zod";
6
1
  import { readAccess } from "./options/readAccess.js";
7
2
  import { readAllContributors } from "./options/readAllContributors.js";
8
3
  import { readAuthor } from "./options/readAuthor.js";
@@ -28,9 +23,9 @@ import { readOwner } from "./options/readOwner.js";
28
23
  import { readPackageAuthor } from "./options/readPackageAuthor.js";
29
24
  import { readPackageData } from "./options/readPackageData.js";
30
25
  import { readPnpm } from "./options/readPnpm.js";
26
+ import { readReadmeFootnotes } from "./options/readReadmeFootnotes.js";
31
27
  import { readReadmeAdditional } from "./options/readReadmeAdditional.js";
32
28
  import { readReadmeExplainer } from "./options/readReadmeExplainer.js";
33
- import { readReadmeFootnotes } from "./options/readReadmeFootnotes.js";
34
29
  import { readReadmeUsage } from "./options/readReadmeUsage.js";
35
30
  import { readRepository } from "./options/readRepository.js";
36
31
  import { readRulesetId } from "./options/readRulesetId.js";
@@ -38,203 +33,136 @@ import { readTitle } from "./options/readTitle.js";
38
33
  import { readWords } from "./options/readWords.js";
39
34
  import { readWorkflowsVersions } from "./options/readWorkflowsVersions.js";
40
35
  import { zContributor, zDocumentation, zWorkflowsVersions } from "./schemas.js";
36
+ import { createBase } from "bingo-stratum";
37
+ import { inputFromFile } from "input-from-file";
38
+ import { inputFromScript } from "input-from-script";
39
+ import lazyValue from "lazy-value";
40
+ import { z } from "zod";
41
+
42
+ //#region src/base.ts
41
43
  const base = createBase({
42
- options: {
43
- access: z.union([z.literal("public"), z.literal("restricted")]).describe("which `npm publish --access` to release npm packages with"),
44
- author: z.string().optional().describe("username on npm to publish packages under"),
45
- bin: z.union([z.string(), z.record(z.string())]).optional().describe('value to set in `package.json`\'s `"bin"` property'),
46
- contributors: z.array(zContributor).optional().describe("AllContributors contributors to store in .all-contributorsrc"),
47
- description: z.string().default("A very lovely package. Hooray!").describe("'Sentence case.' description of the repository"),
48
- directory: z.string().describe("Directory to create the repository in"),
49
- documentation: zDocumentation.describe(
50
- "additional docs to add to .md files"
51
- ),
52
- email: z.union([
53
- z.string(),
54
- z.object({
55
- github: z.string(),
56
- npm: z.string()
57
- })
58
- ]).transform(
59
- (email) => typeof email === "string" ? { github: email, npm: email } : email
60
- ).describe(
61
- "email address to be listed as the point of contact in docs and packages"
62
- ),
63
- emoji: z.string().optional().describe("decorative emoji to use in descriptions and docs"),
64
- existingLabels: z.array(
65
- z.object({
66
- color: z.string(),
67
- description: z.string(),
68
- name: z.string()
69
- })
70
- ).optional().describe("existing labels from the GitHub repository"),
71
- funding: z.string().optional().describe("GitHub organization or username to mention in `funding.yml`"),
72
- guide: z.object({
73
- href: z.string(),
74
- title: z.string()
75
- }).optional().describe(
76
- "link to a contribution guide to place at the top of development docs"
77
- ),
78
- keywords: z.array(z.string()).optional().describe("any number of keywords to include in `package.json`"),
79
- logo: z.object({
80
- alt: z.string(),
81
- height: z.number().optional(),
82
- src: z.string(),
83
- width: z.number().optional()
84
- }).optional().describe(
85
- "local image file and alt text to display near the top of the README.md"
86
- ),
87
- node: z.object({
88
- minimum: z.string(),
89
- pinned: z.string().optional()
90
- }).describe("Node.js engine version(s) to pin and require a minimum of"),
91
- owner: z.string().describe("organization or user owning the repository"),
92
- packageData: z.object({
93
- dependencies: z.record(z.string(), z.string()).optional(),
94
- devDependencies: z.record(z.string(), z.string()).optional(),
95
- peerDependencies: z.record(z.string(), z.string()).optional(),
96
- peerDependenciesMeta: z.record(z.unknown()).optional(),
97
- scripts: z.record(z.string(), z.string().optional()).optional()
98
- }).optional().describe("additional properties to include in `package.json`"),
99
- pnpm: z.string().optional().describe("pnpm version for package.json's packageManager field"),
100
- repository: z.string().describe("'kebab-case' or 'PascalCase' title of the repository"),
101
- rulesetId: z.string().optional().describe("GitHub branch ruleset ID for main branch protections"),
102
- title: z.string().describe("'Title Case' title for the repository"),
103
- type: z.union([z.literal("commonjs"), z.literal("module")]).optional().describe("package.json modules type"),
104
- version: z.string().optional().describe("package version to publish as and store in `package.json`"),
105
- words: z.array(z.string()).optional().describe("additional words to add to the CSpell dictionary"),
106
- workflowsVersions: zWorkflowsVersions.optional().describe("existing versions of GitHub Actions workflows used")
107
- },
108
- prepare({ options, take }) {
109
- const getAccess = lazyValue(async () => await readAccess(getPackageData));
110
- const getAllContributors = lazyValue(
111
- async () => await readAllContributors(take)
112
- );
113
- const getAuthor = lazyValue(
114
- async () => await readAuthor(getPackageAuthor, getNpmDefaults, options.owner)
115
- );
116
- const getBin = lazyValue(async () => await readBin(getPackageData));
117
- const getEmoji = lazyValue(async () => await readEmoji(getDescription));
118
- const getDescription = lazyValue(
119
- async () => await readDescription(getPackageData, getReadme, getRepository)
120
- );
121
- const getDevelopmentDocumentation = lazyValue(
122
- async () => await readDevelopmentDocumentation(take)
123
- );
124
- const getDocumentation = lazyValue(
125
- async () => await readDocumentation(
126
- getDevelopmentDocumentation,
127
- getReadmeAdditional,
128
- getReadmeExplainer,
129
- getReadmeFootnotes,
130
- getReadmeUsage
131
- )
132
- );
133
- const getEmail = lazyValue(
134
- async () => await readEmails(
135
- getEmailFromCodeOfConduct,
136
- getEmailFromGit,
137
- getEmailFromNpm,
138
- getPackageAuthor
139
- )
140
- );
141
- const getKeywords = lazyValue(
142
- async () => await readKeywords(getPackageData)
143
- );
144
- const getEmailFromCodeOfConduct = lazyValue(
145
- async () => await readEmailFromCodeOfConduct(take)
146
- );
147
- const getEmailFromGit = lazyValue(async () => await readEmailFromGit(take));
148
- const getEmailFromNpm = lazyValue(
149
- async () => await readEmailFromNpm(getNpmDefaults, getPackageAuthor)
150
- );
151
- const getExistingLabels = lazyValue(
152
- async () => await readExistingLabels(take, getOwner, getRepository)
153
- );
154
- const getFunding = lazyValue(async () => await readFunding(take));
155
- const getGitDefaults = lazyValue(async () => await readGitDefaults(take));
156
- const getGuide = lazyValue(async () => await readGuide(take));
157
- const getLogo = lazyValue(async () => await readLogo(getReadme));
158
- const getPackageData = lazyValue(async () => await readPackageData(take));
159
- const getNode = lazyValue(
160
- async () => await readNode(getNvmrc, getPackageData)
161
- );
162
- const getNpmDefaults = lazyValue(
163
- async () => await readNpmDefaults(getNpmWhoami)
164
- );
165
- const getNpmWhoami = lazyValue(
166
- async () => await take(inputFromScript, { command: "npm whoami --offline" })
167
- );
168
- const getNvmrc = lazyValue(
169
- async () => await take(inputFromFile, {
170
- filePath: ".nvmrc"
171
- })
172
- );
173
- const getOwner = lazyValue(
174
- async () => await readOwner(take, getGitDefaults, getPackageAuthor)
175
- );
176
- const getPackageAuthor = lazyValue(
177
- async () => await readPackageAuthor(getPackageData)
178
- );
179
- const getPnpm = lazyValue(async () => await readPnpm(getPackageData));
180
- const getReadme = lazyValue(
181
- async () => await readFileSafe("README.md", "")
182
- );
183
- const getReadmeAdditional = lazyValue(
184
- async () => await readReadmeAdditional(getReadme)
185
- );
186
- const getReadmeExplainer = lazyValue(
187
- async () => await readReadmeExplainer(getReadme)
188
- );
189
- const getReadmeFootnotes = lazyValue(
190
- async () => await readReadmeFootnotes(getReadme)
191
- );
192
- const getReadmeUsage = lazyValue(
193
- async () => await readReadmeUsage(getReadme)
194
- );
195
- const getRepository = lazyValue(
196
- async () => await readRepository(getGitDefaults, getPackageData, options)
197
- );
198
- const getRulesetId = lazyValue(
199
- async () => await readRulesetId(take, getOwner, getRepository)
200
- );
201
- const getTitle = lazyValue(
202
- async () => await readTitle(getReadme, getRepository)
203
- );
204
- const getType = lazyValue(async () => (await getPackageData()).type);
205
- const getVersion = lazyValue(async () => (await getPackageData()).version);
206
- const getWords = lazyValue(async () => await readWords(take));
207
- const getWorkflowData = lazyValue(
208
- async () => await readWorkflowsVersions(take)
209
- );
210
- return {
211
- access: getAccess,
212
- author: getAuthor,
213
- bin: getBin,
214
- contributors: getAllContributors,
215
- description: getDescription,
216
- documentation: getDocumentation,
217
- email: getEmail,
218
- emoji: getEmoji,
219
- existingLabels: getExistingLabels,
220
- funding: getFunding,
221
- guide: getGuide,
222
- keywords: getKeywords,
223
- logo: getLogo,
224
- node: getNode,
225
- owner: getOwner,
226
- packageData: getPackageData,
227
- pnpm: getPnpm,
228
- repository: getRepository,
229
- rulesetId: getRulesetId,
230
- title: getTitle,
231
- type: getType,
232
- version: getVersion,
233
- words: getWords,
234
- workflowsVersions: getWorkflowData
235
- };
236
- }
44
+ options: {
45
+ access: z.union([z.literal("public"), z.literal("restricted")]).describe("which `npm publish --access` to release npm packages with"),
46
+ author: z.string().optional().describe("username on npm to publish packages under"),
47
+ bin: z.union([z.string(), z.record(z.string())]).optional().describe("value to set in `package.json`'s `\"bin\"` property"),
48
+ contributors: z.array(zContributor).optional().describe("AllContributors contributors to store in .all-contributorsrc"),
49
+ description: z.string().default("A very lovely package. Hooray!").describe("'Sentence case.' description of the repository"),
50
+ directory: z.string().describe("Directory to create the repository in"),
51
+ documentation: zDocumentation.describe("additional docs to add to .md files"),
52
+ email: z.union([z.string(), z.object({
53
+ github: z.string(),
54
+ npm: z.string()
55
+ })]).transform((email) => typeof email === "string" ? {
56
+ github: email,
57
+ npm: email
58
+ } : email).describe("email address to be listed as the point of contact in docs and packages"),
59
+ emoji: z.string().optional().describe("decorative emoji to use in descriptions and docs"),
60
+ existingLabels: z.array(z.object({
61
+ color: z.string(),
62
+ description: z.string(),
63
+ name: z.string()
64
+ })).optional().describe("existing labels from the GitHub repository"),
65
+ funding: z.string().optional().describe("GitHub organization or username to mention in `funding.yml`"),
66
+ guide: z.object({
67
+ href: z.string(),
68
+ title: z.string()
69
+ }).optional().describe("link to a contribution guide to place at the top of development docs"),
70
+ keywords: z.array(z.string()).optional().describe("any number of keywords to include in `package.json`"),
71
+ logo: z.object({
72
+ alt: z.string(),
73
+ height: z.number().optional(),
74
+ src: z.string(),
75
+ width: z.number().optional()
76
+ }).optional().describe("local image file and alt text to display near the top of the README.md"),
77
+ node: z.object({
78
+ minimum: z.string(),
79
+ pinned: z.string().optional()
80
+ }).describe("Node.js engine version(s) to pin and require a minimum of"),
81
+ owner: z.string().describe("organization or user owning the repository"),
82
+ packageData: z.object({
83
+ dependencies: z.record(z.string(), z.string()).optional(),
84
+ devDependencies: z.record(z.string(), z.string()).optional(),
85
+ peerDependencies: z.record(z.string(), z.string()).optional(),
86
+ peerDependenciesMeta: z.record(z.unknown()).optional(),
87
+ scripts: z.record(z.string(), z.string().optional()).optional()
88
+ }).optional().describe("additional properties to include in `package.json`"),
89
+ pnpm: z.string().optional().describe("pnpm version for package.json's packageManager field"),
90
+ repository: z.string().describe("'kebab-case' or 'PascalCase' title of the repository"),
91
+ rulesetId: z.string().optional().describe("GitHub branch ruleset ID for main branch protections"),
92
+ title: z.string().describe("'Title Case' title for the repository"),
93
+ type: z.union([z.literal("commonjs"), z.literal("module")]).optional().describe("package.json modules type"),
94
+ version: z.string().optional().describe("package version to publish as and store in `package.json`"),
95
+ words: z.array(z.string()).optional().describe("additional words to add to the CSpell dictionary"),
96
+ workflowsVersions: zWorkflowsVersions.optional().describe("existing versions of GitHub Actions workflows used")
97
+ },
98
+ prepare({ options, take }) {
99
+ const getAccess = lazyValue(async () => await readAccess(getPackageData));
100
+ const getAllContributors = lazyValue(async () => await readAllContributors(take));
101
+ const getAuthor = lazyValue(async () => await readAuthor(getPackageAuthor, getNpmDefaults, options.owner));
102
+ const getBin = lazyValue(async () => await readBin(getPackageData));
103
+ const getEmoji = lazyValue(async () => await readEmoji(getDescription));
104
+ const getDescription = lazyValue(async () => await readDescription(getPackageData, getReadme, getRepository));
105
+ const getDevelopmentDocumentation = lazyValue(async () => await readDevelopmentDocumentation(take));
106
+ const getDocumentation = lazyValue(async () => await readDocumentation(getDevelopmentDocumentation, getReadmeAdditional, getReadmeExplainer, getReadmeFootnotes, getReadmeUsage));
107
+ const getEmail = lazyValue(async () => await readEmails(getEmailFromCodeOfConduct, getEmailFromGit, getEmailFromNpm, getPackageAuthor));
108
+ const getKeywords = lazyValue(async () => await readKeywords(getPackageData));
109
+ const getEmailFromCodeOfConduct = lazyValue(async () => await readEmailFromCodeOfConduct(take));
110
+ const getEmailFromGit = lazyValue(async () => await readEmailFromGit(take));
111
+ const getEmailFromNpm = lazyValue(async () => await readEmailFromNpm(getNpmDefaults, getPackageAuthor));
112
+ const getExistingLabels = lazyValue(async () => await readExistingLabels(take, getOwner, getRepository));
113
+ const getFunding = lazyValue(async () => await readFunding(take));
114
+ const getGitDefaults = lazyValue(async () => await readGitDefaults(take));
115
+ const getGuide = lazyValue(async () => await readGuide(take));
116
+ const getLogo = lazyValue(async () => await readLogo(getReadme));
117
+ const getPackageData = lazyValue(async () => await readPackageData(take));
118
+ const getNode = lazyValue(async () => await readNode(getNvmrc, getPackageData));
119
+ const getNpmDefaults = lazyValue(async () => await readNpmDefaults(getNpmWhoami));
120
+ const getNpmWhoami = lazyValue(async () => await take(inputFromScript, { command: "npm whoami --offline" }));
121
+ const getNvmrc = lazyValue(async () => await take(inputFromFile, { filePath: ".nvmrc" }));
122
+ const getOwner = lazyValue(async () => await readOwner(take, getGitDefaults, getPackageAuthor));
123
+ const getPackageAuthor = lazyValue(async () => await readPackageAuthor(getPackageData));
124
+ const getPnpm = lazyValue(async () => await readPnpm(getPackageData));
125
+ const getReadme = lazyValue(async () => await readFileSafe("README.md", ""));
126
+ const getReadmeAdditional = lazyValue(async () => await readReadmeAdditional(getReadme));
127
+ const getReadmeExplainer = lazyValue(async () => await readReadmeExplainer(getReadme));
128
+ const getReadmeFootnotes = lazyValue(async () => await readReadmeFootnotes(getReadme));
129
+ const getReadmeUsage = lazyValue(async () => await readReadmeUsage(getReadme));
130
+ const getRepository = lazyValue(async () => await readRepository(getGitDefaults, getPackageData, options));
131
+ const getRulesetId = lazyValue(async () => await readRulesetId(take, getOwner, getRepository));
132
+ const getTitle = lazyValue(async () => await readTitle(getReadme, getRepository));
133
+ const getType = lazyValue(async () => (await getPackageData()).type);
134
+ const getVersion = lazyValue(async () => (await getPackageData()).version);
135
+ const getWords = lazyValue(async () => await readWords(take));
136
+ const getWorkflowData = lazyValue(async () => await readWorkflowsVersions(take));
137
+ return {
138
+ access: getAccess,
139
+ author: getAuthor,
140
+ bin: getBin,
141
+ contributors: getAllContributors,
142
+ description: getDescription,
143
+ documentation: getDocumentation,
144
+ email: getEmail,
145
+ emoji: getEmoji,
146
+ existingLabels: getExistingLabels,
147
+ funding: getFunding,
148
+ guide: getGuide,
149
+ keywords: getKeywords,
150
+ logo: getLogo,
151
+ node: getNode,
152
+ owner: getOwner,
153
+ packageData: getPackageData,
154
+ pnpm: getPnpm,
155
+ repository: getRepository,
156
+ rulesetId: getRulesetId,
157
+ title: getTitle,
158
+ type: getType,
159
+ version: getVersion,
160
+ words: getWords,
161
+ workflowsVersions: getWorkflowData
162
+ };
163
+ }
237
164
  });
238
- export {
239
- base
240
- };
165
+
166
+ //#endregion
167
+ export { base };
168
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","names":[],"sources":["../src/base.ts"],"sourcesContent":["import { BaseOptionsFor, createBase } from \"bingo-stratum\";\nimport { inputFromFile } from \"input-from-file\";\nimport { inputFromScript } from \"input-from-script\";\nimport lazyValue from \"lazy-value\";\nimport { z } from \"zod\";\n\nimport { readAccess } from \"./options/readAccess.js\";\nimport { readAllContributors } from \"./options/readAllContributors.js\";\nimport { readAuthor } from \"./options/readAuthor.js\";\nimport { readBin } from \"./options/readBin.js\";\nimport { readDescription } from \"./options/readDescription.js\";\nimport { readDevelopmentDocumentation } from \"./options/readDevelopmentDocumentation.js\";\nimport { readDocumentation } from \"./options/readDocumentation.js\";\nimport { readEmailFromCodeOfConduct } from \"./options/readEmailFromCodeOfConduct.js\";\nimport { readEmailFromGit } from \"./options/readEmailFromGit.js\";\nimport { readEmailFromNpm } from \"./options/readEmailFromNpm.js\";\nimport { readEmails } from \"./options/readEmails.js\";\nimport { readEmoji } from \"./options/readEmoji.js\";\nimport { readExistingLabels } from \"./options/readExistingLabels.js\";\nimport { readFileSafe } from \"./options/readFileSafe.js\";\nimport { readFunding } from \"./options/readFunding.js\";\nimport { readGitDefaults } from \"./options/readGitDefaults.js\";\nimport { readGuide } from \"./options/readGuide.js\";\nimport { readKeywords } from \"./options/readKeywords.js\";\nimport { readLogo } from \"./options/readLogo.js\";\nimport { readNode } from \"./options/readNode.js\";\nimport { readNpmDefaults } from \"./options/readNpmDefaults.js\";\nimport { readOwner } from \"./options/readOwner.js\";\nimport { readPackageAuthor } from \"./options/readPackageAuthor.js\";\nimport { readPackageData } from \"./options/readPackageData.js\";\nimport { readPnpm } from \"./options/readPnpm.js\";\nimport { readReadmeAdditional } from \"./options/readReadmeAdditional.js\";\nimport { readReadmeExplainer } from \"./options/readReadmeExplainer.js\";\nimport { readReadmeFootnotes } from \"./options/readReadmeFootnotes.js\";\nimport { readReadmeUsage } from \"./options/readReadmeUsage.js\";\nimport { readRepository } from \"./options/readRepository.js\";\nimport { readRulesetId } from \"./options/readRulesetId.js\";\nimport { readTitle } from \"./options/readTitle.js\";\nimport { readWords } from \"./options/readWords.js\";\nimport { readWorkflowsVersions } from \"./options/readWorkflowsVersions.js\";\nimport { zContributor, zDocumentation, zWorkflowsVersions } from \"./schemas.js\";\n\nexport const base = createBase({\n\toptions: {\n\t\taccess: z\n\t\t\t.union([z.literal(\"public\"), z.literal(\"restricted\")])\n\t\t\t.describe(\"which `npm publish --access` to release npm packages with\"),\n\t\tauthor: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"username on npm to publish packages under\"),\n\t\tbin: z\n\t\t\t.union([z.string(), z.record(z.string())])\n\t\t\t.optional()\n\t\t\t.describe('value to set in `package.json`\\'s `\"bin\"` property'),\n\t\tcontributors: z\n\t\t\t.array(zContributor)\n\t\t\t.optional()\n\t\t\t.describe(\"AllContributors contributors to store in .all-contributorsrc\"),\n\t\tdescription: z\n\t\t\t.string()\n\t\t\t.default(\"A very lovely package. Hooray!\")\n\t\t\t.describe(\"'Sentence case.' description of the repository\"),\n\t\tdirectory: z.string().describe(\"Directory to create the repository in\"),\n\t\tdocumentation: zDocumentation.describe(\n\t\t\t\"additional docs to add to .md files\",\n\t\t),\n\t\temail: z\n\t\t\t.union([\n\t\t\t\tz.string(),\n\t\t\t\tz.object({\n\t\t\t\t\tgithub: z.string(),\n\t\t\t\t\tnpm: z.string(),\n\t\t\t\t}),\n\t\t\t])\n\t\t\t// TODO: Test this? Is it still working?\n\t\t\t// https://github.com/JoshuaKGoldberg/create-typescript-app/issues/1991\n\t\t\t.transform((email) =>\n\t\t\t\ttypeof email === \"string\" ? { github: email, npm: email } : email,\n\t\t\t)\n\t\t\t.describe(\n\t\t\t\t\"email address to be listed as the point of contact in docs and packages\",\n\t\t\t),\n\t\temoji: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"decorative emoji to use in descriptions and docs\"),\n\t\texistingLabels: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tcolor: z.string(),\n\t\t\t\t\tdescription: z.string(),\n\t\t\t\t\tname: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional()\n\t\t\t.describe(\"existing labels from the GitHub repository\"),\n\t\tfunding: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"GitHub organization or username to mention in `funding.yml`\"),\n\t\tguide: z\n\t\t\t.object({\n\t\t\t\thref: z.string(),\n\t\t\t\ttitle: z.string(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"link to a contribution guide to place at the top of development docs\",\n\t\t\t),\n\t\tkeywords: z\n\t\t\t.array(z.string())\n\t\t\t.optional()\n\t\t\t.describe(\"any number of keywords to include in `package.json`\"),\n\t\tlogo: z\n\t\t\t.object({\n\t\t\t\talt: z.string(),\n\t\t\t\theight: z.number().optional(),\n\t\t\t\tsrc: z.string(),\n\t\t\t\twidth: z.number().optional(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"local image file and alt text to display near the top of the README.md\",\n\t\t\t),\n\t\tnode: z\n\t\t\t.object({\n\t\t\t\tminimum: z.string(),\n\t\t\t\tpinned: z.string().optional(),\n\t\t\t})\n\t\t\t.describe(\"Node.js engine version(s) to pin and require a minimum of\"),\n\t\towner: z.string().describe(\"organization or user owning the repository\"),\n\t\tpackageData: z\n\t\t\t.object({\n\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tpeerDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tpeerDependenciesMeta: z.record(z.unknown()).optional(),\n\t\t\t\tscripts: z.record(z.string(), z.string().optional()).optional(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\"additional properties to include in `package.json`\"),\n\t\tpnpm: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"pnpm version for package.json's packageManager field\"),\n\t\trepository: z\n\t\t\t.string()\n\t\t\t.describe(\"'kebab-case' or 'PascalCase' title of the repository\"),\n\t\trulesetId: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"GitHub branch ruleset ID for main branch protections\"),\n\t\ttitle: z.string().describe(\"'Title Case' title for the repository\"),\n\t\ttype: z\n\t\t\t.union([z.literal(\"commonjs\"), z.literal(\"module\")])\n\t\t\t.optional()\n\t\t\t.describe(\"package.json modules type\"),\n\t\tversion: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"package version to publish as and store in `package.json`\"),\n\t\twords: z\n\t\t\t.array(z.string())\n\t\t\t.optional()\n\t\t\t.describe(\"additional words to add to the CSpell dictionary\"),\n\t\tworkflowsVersions: zWorkflowsVersions\n\t\t\t.optional()\n\t\t\t.describe(\"existing versions of GitHub Actions workflows used\"),\n\t},\n\tprepare({ options, take }) {\n\t\tconst getAccess = lazyValue(async () => await readAccess(getPackageData));\n\n\t\tconst getAllContributors = lazyValue(\n\t\t\tasync () => await readAllContributors(take),\n\t\t);\n\n\t\tconst getAuthor = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readAuthor(getPackageAuthor, getNpmDefaults, options.owner),\n\t\t);\n\n\t\tconst getBin = lazyValue(async () => await readBin(getPackageData));\n\n\t\tconst getEmoji = lazyValue(async () => await readEmoji(getDescription));\n\n\t\tconst getDescription = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readDescription(getPackageData, getReadme, getRepository),\n\t\t);\n\n\t\tconst getDevelopmentDocumentation = lazyValue(\n\t\t\tasync () => await readDevelopmentDocumentation(take),\n\t\t);\n\n\t\tconst getDocumentation = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readDocumentation(\n\t\t\t\t\tgetDevelopmentDocumentation,\n\t\t\t\t\tgetReadmeAdditional,\n\t\t\t\t\tgetReadmeExplainer,\n\t\t\t\t\tgetReadmeFootnotes,\n\t\t\t\t\tgetReadmeUsage,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getEmail = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait readEmails(\n\t\t\t\t\tgetEmailFromCodeOfConduct,\n\t\t\t\t\tgetEmailFromGit,\n\t\t\t\t\tgetEmailFromNpm,\n\t\t\t\t\tgetPackageAuthor,\n\t\t\t\t),\n\t\t);\n\n\t\tconst getKeywords = lazyValue(\n\t\t\tasync () => await readKeywords(getPackageData),\n\t\t);\n\n\t\tconst getEmailFromCodeOfConduct = lazyValue(\n\t\t\tasync () => await readEmailFromCodeOfConduct(take),\n\t\t);\n\n\t\tconst getEmailFromGit = lazyValue(async () => await readEmailFromGit(take));\n\n\t\tconst getEmailFromNpm = lazyValue(\n\t\t\tasync () => await readEmailFromNpm(getNpmDefaults, getPackageAuthor),\n\t\t);\n\n\t\tconst getExistingLabels = lazyValue(\n\t\t\tasync () => await readExistingLabels(take, getOwner, getRepository),\n\t\t);\n\n\t\tconst getFunding = lazyValue(async () => await readFunding(take));\n\n\t\tconst getGitDefaults = lazyValue(async () => await readGitDefaults(take));\n\n\t\tconst getGuide = lazyValue(async () => await readGuide(take));\n\n\t\tconst getLogo = lazyValue(async () => await readLogo(getReadme));\n\n\t\tconst getPackageData = lazyValue(async () => await readPackageData(take));\n\n\t\tconst getNode = lazyValue(\n\t\t\tasync () => await readNode(getNvmrc, getPackageData),\n\t\t);\n\n\t\tconst getNpmDefaults = lazyValue(\n\t\t\tasync () => await readNpmDefaults(getNpmWhoami),\n\t\t);\n\n\t\tconst getNpmWhoami = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromScript, { command: \"npm whoami --offline\" }),\n\t\t);\n\n\t\tconst getNvmrc = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromFile, {\n\t\t\t\t\tfilePath: \".nvmrc\",\n\t\t\t\t}),\n\t\t);\n\n\t\tconst getOwner = lazyValue(\n\t\t\tasync () => await readOwner(take, getGitDefaults, getPackageAuthor),\n\t\t);\n\n\t\tconst getPackageAuthor = lazyValue(\n\t\t\tasync () => await readPackageAuthor(getPackageData),\n\t\t);\n\n\t\tconst getPnpm = lazyValue(async () => await readPnpm(getPackageData));\n\n\t\tconst getReadme = lazyValue(\n\t\t\tasync () => await readFileSafe(\"README.md\", \"\"),\n\t\t);\n\n\t\tconst getReadmeAdditional = lazyValue(\n\t\t\tasync () => await readReadmeAdditional(getReadme),\n\t\t);\n\n\t\tconst getReadmeExplainer = lazyValue(\n\t\t\tasync () => await readReadmeExplainer(getReadme),\n\t\t);\n\n\t\tconst getReadmeFootnotes = lazyValue(\n\t\t\tasync () => await readReadmeFootnotes(getReadme),\n\t\t);\n\n\t\tconst getReadmeUsage = lazyValue(\n\t\t\tasync () => await readReadmeUsage(getReadme),\n\t\t);\n\n\t\tconst getRepository = lazyValue(\n\t\t\tasync () => await readRepository(getGitDefaults, getPackageData, options),\n\t\t);\n\n\t\tconst getRulesetId = lazyValue(\n\t\t\tasync () => await readRulesetId(take, getOwner, getRepository),\n\t\t);\n\n\t\tconst getTitle = lazyValue(\n\t\t\tasync () => await readTitle(getReadme, getRepository),\n\t\t);\n\n\t\tconst getType = lazyValue(async () => (await getPackageData()).type);\n\n\t\tconst getVersion = lazyValue(async () => (await getPackageData()).version);\n\n\t\tconst getWords = lazyValue(async () => await readWords(take));\n\n\t\tconst getWorkflowData = lazyValue(\n\t\t\tasync () => await readWorkflowsVersions(take),\n\t\t);\n\n\t\treturn {\n\t\t\taccess: getAccess,\n\t\t\tauthor: getAuthor,\n\t\t\tbin: getBin,\n\t\t\tcontributors: getAllContributors,\n\t\t\tdescription: getDescription,\n\t\t\tdocumentation: getDocumentation,\n\t\t\temail: getEmail,\n\t\t\temoji: getEmoji,\n\t\t\texistingLabels: getExistingLabels,\n\t\t\tfunding: getFunding,\n\t\t\tguide: getGuide,\n\t\t\tkeywords: getKeywords,\n\t\t\tlogo: getLogo,\n\t\t\tnode: getNode,\n\t\t\towner: getOwner,\n\t\t\tpackageData: getPackageData,\n\t\t\tpnpm: getPnpm,\n\t\t\trepository: getRepository,\n\t\t\trulesetId: getRulesetId,\n\t\t\ttitle: getTitle,\n\t\t\ttype: getType,\n\t\t\tversion: getVersion,\n\t\t\twords: getWords,\n\t\t\tworkflowsVersions: getWorkflowData,\n\t\t};\n\t},\n});\n\nexport type BaseOptions = BaseOptionsFor<typeof base> & { preset?: string };\n"],"mappings":"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"}
@@ -1,6 +1,9 @@
1
- import { WorkflowsVersions } from '../../schemas.js';
2
- import 'zod';
1
+ import { WorkflowsVersions } from "../../schemas.js";
3
2
 
3
+ //#region src/blocks/actions/resolveUses.d.ts
4
4
  declare function resolveUses(action: string, version: string, workflowsVersions?: WorkflowsVersions): string;
5
+ //# sourceMappingURL=resolveUses.d.ts.map
5
6
 
7
+ //#endregion
6
8
  export { resolveUses };
9
+ //# sourceMappingURL=resolveUses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveUses.d.ts","names":[],"sources":["../../../src/blocks/actions/resolveUses.ts"],"sourcesContent":[],"mappings":";;;iBASgB,WAAA,sDAGK"}
@@ -1,26 +1,19 @@
1
1
  import { CachedFactory } from "cached-factory";
2
2
  import semver from "semver";
3
+
4
+ //#region src/blocks/actions/resolveUses.ts
3
5
  const semverCoercions = new CachedFactory((version) => {
4
- return semver.coerce(version)?.toString() ?? "0.0.0";
6
+ return semver.coerce(version)?.toString() ?? "0.0.0";
5
7
  });
6
8
  function resolveUses(action, version, workflowsVersions) {
7
- if (!workflowsVersions || !(action in workflowsVersions)) {
8
- return `${action}@${version}`;
9
- }
10
- const workflowVersions = workflowsVersions[action];
11
- const biggestVersion = Object.keys(workflowVersions).reduce(
12
- (highestVersion, potentialVersion) => semver.gt(
13
- semverCoercions.get(potentialVersion),
14
- semverCoercions.get(highestVersion)
15
- ) ? potentialVersion : highestVersion,
16
- version
17
- );
18
- if (!(biggestVersion in workflowVersions)) {
19
- return `${action}@${biggestVersion}`;
20
- }
21
- const atBiggestVersion = workflowVersions[biggestVersion];
22
- return atBiggestVersion.hash ? `${action}@${atBiggestVersion.hash} # ${biggestVersion}` : `${action}@${biggestVersion}`;
9
+ if (!workflowsVersions || !(action in workflowsVersions)) return `${action}@${version}`;
10
+ const workflowVersions = workflowsVersions[action];
11
+ const biggestVersion = Object.keys(workflowVersions).reduce((highestVersion, potentialVersion) => semver.gt(semverCoercions.get(potentialVersion), semverCoercions.get(highestVersion)) ? potentialVersion : highestVersion, version);
12
+ if (!(biggestVersion in workflowVersions)) return `${action}@${biggestVersion}`;
13
+ const atBiggestVersion = workflowVersions[biggestVersion];
14
+ return atBiggestVersion.hash ? `${action}@${atBiggestVersion.hash} # ${biggestVersion}` : `${action}@${biggestVersion}`;
23
15
  }
24
- export {
25
- resolveUses
26
- };
16
+
17
+ //#endregion
18
+ export { resolveUses };
19
+ //# sourceMappingURL=resolveUses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveUses.js","names":["version: string","action: string","workflowsVersions?: WorkflowsVersions"],"sources":["../../../src/blocks/actions/resolveUses.ts"],"sourcesContent":["import { CachedFactory } from \"cached-factory\";\nimport semver from \"semver\";\n\nimport { WorkflowsVersions } from \"../../schemas.js\";\n\nconst semverCoercions = new CachedFactory((version: string) => {\n\treturn semver.coerce(version)?.toString() ?? \"0.0.0\";\n});\n\nexport function resolveUses(\n\taction: string,\n\tversion: string,\n\tworkflowsVersions?: WorkflowsVersions,\n) {\n\tif (!workflowsVersions || !(action in workflowsVersions)) {\n\t\treturn `${action}@${version}`;\n\t}\n\n\tconst workflowVersions = workflowsVersions[action];\n\n\tconst biggestVersion = Object.keys(workflowVersions).reduce(\n\t\t(highestVersion, potentialVersion) =>\n\t\t\tsemver.gt(\n\t\t\t\tsemverCoercions.get(potentialVersion),\n\t\t\t\tsemverCoercions.get(highestVersion),\n\t\t\t)\n\t\t\t\t? potentialVersion\n\t\t\t\t: highestVersion,\n\t\tversion,\n\t);\n\n\tif (!(biggestVersion in workflowVersions)) {\n\t\treturn `${action}@${biggestVersion}`;\n\t}\n\n\tconst atBiggestVersion = workflowVersions[biggestVersion];\n\n\treturn atBiggestVersion.hash\n\t\t? `${action}@${atBiggestVersion.hash} # ${biggestVersion}`\n\t\t: `${action}@${biggestVersion}`;\n}\n"],"mappings":";;;;AAKA,MAAM,kBAAkB,IAAI,cAAc,CAACA,YAAoB;AAC9D,QAAO,OAAO,OAAO,QAAQ,EAAE,UAAU,IAAI;AAC7C;AAED,SAAgB,YACfC,QACAD,SACAE,mBACC;AACD,MAAK,uBAAuB,UAAU,mBACrC,SAAQ,EAAE,OAAO,GAAG,QAAQ;CAG7B,MAAM,mBAAmB,kBAAkB;CAE3C,MAAM,iBAAiB,OAAO,KAAK,iBAAiB,CAAC,OACpD,CAAC,gBAAgB,qBAChB,OAAO,GACN,gBAAgB,IAAI,iBAAiB,EACrC,gBAAgB,IAAI,eAAe,CACnC,GACE,mBACA,gBACJ,QACA;AAED,OAAM,kBAAkB,kBACvB,SAAQ,EAAE,OAAO,GAAG,eAAe;CAGpC,MAAM,mBAAmB,iBAAiB;AAE1C,QAAO,iBAAiB,QACpB,EAAE,OAAO,GAAG,iBAAiB,KAAK,KAAK,eAAe,KACtD,EAAE,OAAO,GAAG,eAAe;AAC/B"}
@@ -1,36 +1,40 @@
1
- import { IntakeDirectory } from 'bingo-fs';
2
- import { z } from 'zod';
1
+ import { z } from "zod";
2
+ import { IntakeDirectory } from "bingo-fs";
3
3
 
4
+ //#region src/blocks/actions/steps.d.ts
4
5
  declare const zActionStep: z.ZodIntersection<z.ZodObject<{
5
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6
- if: z.ZodOptional<z.ZodString>;
7
- with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7
+ if: z.ZodOptional<z.ZodString>;
8
+ with: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8
9
  }, "strip", z.ZodTypeAny, {
9
- with?: Record<string, string> | undefined;
10
- env?: Record<string, string> | undefined;
11
- if?: string | undefined;
10
+ env?: Record<string, string> | undefined;
11
+ if?: string | undefined;
12
+ with?: Record<string, string> | undefined;
12
13
  }, {
13
- with?: Record<string, string> | undefined;
14
- env?: Record<string, string> | undefined;
15
- if?: string | undefined;
14
+ env?: Record<string, string> | undefined;
15
+ if?: string | undefined;
16
+ with?: Record<string, string> | undefined;
16
17
  }>, z.ZodUnion<[z.ZodObject<{
17
- run: z.ZodString;
18
+ run: z.ZodString;
18
19
  }, "strip", z.ZodTypeAny, {
19
- run: string;
20
+ run: string;
20
21
  }, {
21
- run: string;
22
+ run: string;
22
23
  }>, z.ZodObject<{
23
- uses: z.ZodString;
24
+ uses: z.ZodString;
24
25
  }, "strip", z.ZodTypeAny, {
25
- uses: string;
26
+ uses: string;
26
27
  }, {
27
- uses: string;
28
+ uses: string;
28
29
  }>]>>;
29
30
  interface JobOrRunStep {
30
- env?: Record<string, string>;
31
- uses?: unknown;
32
- with?: Record<string, string>;
31
+ env?: Record<string, string>;
32
+ uses?: unknown;
33
+ with?: Record<string, string>;
33
34
  }
34
35
  declare function intakeFileYamlSteps(files: IntakeDirectory, filePath: string[], ymlPath: string[]): JobOrRunStep[] | undefined;
36
+ //# sourceMappingURL=steps.d.ts.map
35
37
 
36
- export { type JobOrRunStep, intakeFileYamlSteps, zActionStep };
38
+ //#endregion
39
+ export { JobOrRunStep, intakeFileYamlSteps, zActionStep };
40
+ //# sourceMappingURL=steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"steps.d.ts","names":[],"sources":["../../../src/blocks/actions/steps.ts"],"sourcesContent":[],"mappings":";;;;cAMa,aAAW,CAAA,CAAA,gBAAA,CAAA,CAAA;iCAOvB,CAAA,CAAA;EAPY,EAAA,eAOZ,YAAA,CAAA;EAAA,IAAA,eAAA,YAAA,YAAA,aAAA,CAAA,CAAA;CAAA,EAAA,OAAA,cAAA,EAAA;;;;;;;;;OAPuB,CAAA,CAAA;;;;;;MAAA,aAAA;CAAA,EAAA,OAAA,cAAA,EAAA;;;;;UASP,YAAA;QACV;MAViB,CAAA,EAAA,OAAA;EAAA,IAAA,CAAA,EAYhB,MAZgB,CAAA,MAAA,EAAA,MAAA,CAAA;AASxB;AAA6B,iBAMb,mBAAA,CANa,KAAA,EAOrB,eAPqB,EAAA,QAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,MAAA,EAAA,CAAA,EASX,YATW,EAAA,GAAA,SAAA"}
@@ -1,26 +1,21 @@
1
- import _ from "lodash";
2
- import { z } from "zod";
3
1
  import { intakeFileAsYaml } from "../intake/intakeFileAsYaml.js";
4
- const zActionStep = z.intersection(
5
- z.object({
6
- env: z.record(z.string(), z.string()).optional(),
7
- if: z.string().optional(),
8
- with: z.record(z.string(), z.string()).optional()
9
- }),
10
- z.union([z.object({ run: z.string() }), z.object({ uses: z.string() })])
11
- );
2
+ import { z } from "zod";
3
+ import _ from "lodash";
4
+
5
+ //#region src/blocks/actions/steps.ts
6
+ const zActionStep = z.intersection(z.object({
7
+ env: z.record(z.string(), z.string()).optional(),
8
+ if: z.string().optional(),
9
+ with: z.record(z.string(), z.string()).optional()
10
+ }), z.union([z.object({ run: z.string() }), z.object({ uses: z.string() })]));
12
11
  function intakeFileYamlSteps(files, filePath, ymlPath) {
13
- const actionYml = intakeFileAsYaml(files, filePath);
14
- if (!actionYml) {
15
- return void 0;
16
- }
17
- const steps = _.get(actionYml, ymlPath);
18
- if (!steps || !Array.isArray(steps)) {
19
- return void 0;
20
- }
21
- return steps;
12
+ const actionYml = intakeFileAsYaml(files, filePath);
13
+ if (!actionYml) return void 0;
14
+ const steps = _.get(actionYml, ymlPath);
15
+ if (!steps || !Array.isArray(steps)) return void 0;
16
+ return steps;
22
17
  }
23
- export {
24
- intakeFileYamlSteps,
25
- zActionStep
26
- };
18
+
19
+ //#endregion
20
+ export { intakeFileYamlSteps, zActionStep };
21
+ //# sourceMappingURL=steps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"steps.js","names":["files: IntakeDirectory","filePath: string[]","ymlPath: string[]"],"sources":["../../../src/blocks/actions/steps.ts"],"sourcesContent":["import { IntakeDirectory } from \"bingo-fs\";\nimport _ from \"lodash\";\nimport { z } from \"zod\";\n\nimport { intakeFileAsYaml } from \"../intake/intakeFileAsYaml.js\";\n\nexport const zActionStep = z.intersection(\n\tz.object({\n\t\tenv: z.record(z.string(), z.string()).optional(),\n\t\tif: z.string().optional(),\n\t\twith: z.record(z.string(), z.string()).optional(),\n\t}),\n\tz.union([z.object({ run: z.string() }), z.object({ uses: z.string() })]),\n);\n\nexport interface JobOrRunStep {\n\tenv?: Record<string, string>;\n\tuses?: unknown;\n\twith?: Record<string, string>;\n}\n\nexport function intakeFileYamlSteps(\n\tfiles: IntakeDirectory,\n\tfilePath: string[],\n\tymlPath: string[],\n) {\n\tconst actionYml = intakeFileAsYaml(files, filePath);\n\tif (!actionYml) {\n\t\treturn undefined;\n\t}\n\n\tconst steps = _.get(actionYml, ymlPath) as JobOrRunStep[] | undefined;\n\tif (!steps || !Array.isArray(steps)) {\n\t\treturn undefined;\n\t}\n\n\treturn steps;\n}\n"],"mappings":";;;;;AAMA,MAAa,cAAc,EAAE,aAC5B,EAAE,OAAO;CACR,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,UAAU;CAChD,IAAI,EAAE,QAAQ,CAAC,UAAU;CACzB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,UAAU;AACjD,EAAC,EACF,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAE,EAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAE,EAAC,AAAC,EAAC,CACxE;AAQD,SAAgB,oBACfA,OACAC,UACAC,SACC;CACD,MAAM,YAAY,iBAAiB,OAAO,SAAS;AACnD,MAAK,UACJ;CAGD,MAAM,QAAQ,EAAE,IAAI,WAAW,QAAQ;AACvC,MAAK,UAAU,MAAM,QAAQ,MAAM,CAClC;AAGD,QAAO;AACP"}
@@ -1,3 +1,7 @@
1
+ //#region src/blocks/bin/getPrimaryBin.d.ts
1
2
  declare function getPrimaryBin(bin: Record<string, string | undefined> | string | undefined, repository: string): string | undefined;
3
+ //# sourceMappingURL=getPrimaryBin.d.ts.map
2
4
 
5
+ //#endregion
3
6
  export { getPrimaryBin };
7
+ //# sourceMappingURL=getPrimaryBin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPrimaryBin.d.ts","names":[],"sources":["../../../src/blocks/bin/getPrimaryBin.ts"],"sourcesContent":[],"mappings":";iBAAgB,aAAA,MACV;AADN"}
@@ -1,6 +1,8 @@
1
+ //#region src/blocks/bin/getPrimaryBin.ts
1
2
  function getPrimaryBin(bin, repository) {
2
- return typeof bin === "object" ? bin[repository] : bin;
3
+ return typeof bin === "object" ? bin[repository] : bin;
3
4
  }
4
- export {
5
- getPrimaryBin
6
- };
5
+
6
+ //#endregion
7
+ export { getPrimaryBin };
8
+ //# sourceMappingURL=getPrimaryBin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPrimaryBin.js","names":["bin: Record<string, string | undefined> | string | undefined","repository: string"],"sources":["../../../src/blocks/bin/getPrimaryBin.ts"],"sourcesContent":["export function getPrimaryBin(\n\tbin: Record<string, string | undefined> | string | undefined,\n\trepository: string,\n) {\n\treturn typeof bin === \"object\" ? bin[repository] : bin;\n}\n"],"mappings":";AAAA,SAAgB,cACfA,KACAC,YACC;AACD,eAAc,QAAQ,WAAW,IAAI,cAAc;AACnD"}