create-typescript-app 2.45.0 → 2.46.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 (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
@@ -1,21 +1,23 @@
1
+ //#region src/options/readDocumentation.ts
1
2
  async function readDocumentation(getDevelopmentDocumentation, getReadmeAdditional, getReadmeExplainer, getReadmeFootnotes, getReadmeUsage) {
2
- const [additional, explainer, footnotes, development, usage] = await Promise.all([
3
- getReadmeAdditional(),
4
- getReadmeExplainer(),
5
- getReadmeFootnotes(),
6
- getDevelopmentDocumentation(),
7
- getReadmeUsage()
8
- ]);
9
- return {
10
- development,
11
- readme: {
12
- additional,
13
- explainer,
14
- footnotes,
15
- usage
16
- }
17
- };
3
+ const [additional, explainer, footnotes, development, usage] = await Promise.all([
4
+ getReadmeAdditional(),
5
+ getReadmeExplainer(),
6
+ getReadmeFootnotes(),
7
+ getDevelopmentDocumentation(),
8
+ getReadmeUsage()
9
+ ]);
10
+ return {
11
+ development,
12
+ readme: {
13
+ additional,
14
+ explainer,
15
+ footnotes,
16
+ usage
17
+ }
18
+ };
18
19
  }
19
- export {
20
- readDocumentation
21
- };
20
+
21
+ //#endregion
22
+ export { readDocumentation };
23
+ //# sourceMappingURL=readDocumentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readDocumentation.js","names":["getDevelopmentDocumentation: () => Promise<string | undefined>","getReadmeAdditional: () => Promise<string | undefined>","getReadmeExplainer: () => Promise<string | undefined>","getReadmeFootnotes: () => Promise<string | undefined>","getReadmeUsage: () => Promise<string | undefined>"],"sources":["../../src/options/readDocumentation.ts"],"sourcesContent":["import { Documentation } from \"../schemas.js\";\n\nexport async function readDocumentation(\n\tgetDevelopmentDocumentation: () => Promise<string | undefined>,\n\tgetReadmeAdditional: () => Promise<string | undefined>,\n\tgetReadmeExplainer: () => Promise<string | undefined>,\n\tgetReadmeFootnotes: () => Promise<string | undefined>,\n\tgetReadmeUsage: () => Promise<string | undefined>,\n): Promise<Documentation> {\n\tconst [additional, explainer, footnotes, development, usage] =\n\t\tawait Promise.all([\n\t\t\tgetReadmeAdditional(),\n\t\t\tgetReadmeExplainer(),\n\t\t\tgetReadmeFootnotes(),\n\t\t\tgetDevelopmentDocumentation(),\n\t\t\tgetReadmeUsage(),\n\t\t]);\n\n\treturn {\n\t\tdevelopment,\n\t\treadme: {\n\t\t\tadditional,\n\t\t\texplainer,\n\t\t\tfootnotes,\n\t\t\tusage,\n\t\t},\n\t};\n}\n"],"mappings":";AAEA,eAAsB,kBACrBA,6BACAC,qBACAC,oBACAC,oBACAC,gBACyB;CACzB,MAAM,CAAC,YAAY,WAAW,WAAW,aAAa,MAAM,GAC3D,MAAM,QAAQ,IAAI;EACjB,qBAAqB;EACrB,oBAAoB;EACpB,oBAAoB;EACpB,6BAA6B;EAC7B,gBAAgB;CAChB,EAAC;AAEH,QAAO;EACN;EACA,QAAQ;GACP;GACA;GACA;GACA;EACA;CACD;AACD"}
@@ -1,5 +1,9 @@
1
- import { TakeInput } from 'bingo';
1
+ import { TakeInput } from "bingo";
2
2
 
3
+ //#region src/options/readEmailFromCodeOfConduct.d.ts
3
4
  declare function readEmailFromCodeOfConduct(take: TakeInput): Promise<string | undefined>;
5
+ //# sourceMappingURL=readEmailFromCodeOfConduct.d.ts.map
4
6
 
7
+ //#endregion
5
8
  export { readEmailFromCodeOfConduct };
9
+ //# sourceMappingURL=readEmailFromCodeOfConduct.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readEmailFromCodeOfConduct.d.ts","names":[],"sources":["../../src/options/readEmailFromCodeOfConduct.ts"],"sourcesContent":[],"mappings":";;;iBAGsB,0BAAA,OAAiC,YAAS"}
@@ -1,10 +1,11 @@
1
1
  import { inputFromFile } from "input-from-file";
2
+
3
+ //#region src/options/readEmailFromCodeOfConduct.ts
2
4
  async function readEmailFromCodeOfConduct(take) {
3
- const codeOfConduct = await take(inputFromFile, {
4
- filePath: ".github/CODE_OF_CONDUCT.md"
5
- });
6
- return typeof codeOfConduct === "string" && codeOfConduct.includes("Contributor Covenant Code of Conduct") ? /for enforcement at[\r\n]+(.+)\.[\r\n]+All/.exec(codeOfConduct)?.[1] : void 0;
5
+ const codeOfConduct = await take(inputFromFile, { filePath: ".github/CODE_OF_CONDUCT.md" });
6
+ return typeof codeOfConduct === "string" && codeOfConduct.includes("Contributor Covenant Code of Conduct") ? /for enforcement at[\r\n]+(.+)\.[\r\n]+All/.exec(codeOfConduct)?.[1] : void 0;
7
7
  }
8
- export {
9
- readEmailFromCodeOfConduct
10
- };
8
+
9
+ //#endregion
10
+ export { readEmailFromCodeOfConduct };
11
+ //# sourceMappingURL=readEmailFromCodeOfConduct.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readEmailFromCodeOfConduct.js","names":["take: TakeInput"],"sources":["../../src/options/readEmailFromCodeOfConduct.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { inputFromFile } from \"input-from-file\";\n\nexport async function readEmailFromCodeOfConduct(take: TakeInput) {\n\tconst codeOfConduct = await take(inputFromFile, {\n\t\tfilePath: \".github/CODE_OF_CONDUCT.md\",\n\t});\n\n\treturn typeof codeOfConduct === \"string\" &&\n\t\tcodeOfConduct.includes(\"Contributor Covenant Code of Conduct\")\n\t\t? /for enforcement at[\\r\\n]+(.+)\\.[\\r\\n]+All/.exec(codeOfConduct)?.[1]\n\t\t: undefined;\n}\n"],"mappings":";;;AAGA,eAAsB,2BAA2BA,MAAiB;CACjE,MAAM,gBAAgB,MAAM,KAAK,eAAe,EAC/C,UAAU,6BACV,EAAC;AAEF,eAAc,kBAAkB,YAC/B,cAAc,SAAS,uCAAuC,GAC5D,4CAA4C,KAAK,cAAc,GAAG;AAErE"}
@@ -1,5 +1,9 @@
1
- import { TakeInput } from 'bingo';
1
+ import { TakeInput } from "bingo";
2
2
 
3
+ //#region src/options/readEmailFromGit.d.ts
3
4
  declare function readEmailFromGit(take: TakeInput): Promise<string | undefined>;
5
+ //# sourceMappingURL=readEmailFromGit.d.ts.map
4
6
 
7
+ //#endregion
5
8
  export { readEmailFromGit };
9
+ //# sourceMappingURL=readEmailFromGit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readEmailFromGit.d.ts","names":[],"sources":["../../src/options/readEmailFromGit.ts"],"sourcesContent":[],"mappings":";;;iBAGsB,gBAAA,OAAuB,YAAS"}
@@ -1,7 +1,10 @@
1
1
  import { inputFromScript } from "input-from-script";
2
+
3
+ //#region src/options/readEmailFromGit.ts
2
4
  async function readEmailFromGit(take) {
3
- return (await take(inputFromScript, { command: "git config --get user.email" })).stdout?.toString();
5
+ return (await take(inputFromScript, { command: "git config --get user.email" })).stdout?.toString();
4
6
  }
5
- export {
6
- readEmailFromGit
7
- };
7
+
8
+ //#endregion
9
+ export { readEmailFromGit };
10
+ //# sourceMappingURL=readEmailFromGit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readEmailFromGit.js","names":["take: TakeInput"],"sources":["../../src/options/readEmailFromGit.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { inputFromScript } from \"input-from-script\";\n\nexport async function readEmailFromGit(take: TakeInput) {\n\treturn (\n\t\tawait take(inputFromScript, { command: \"git config --get user.email\" })\n\t).stdout?.toString();\n}\n"],"mappings":";;;AAGA,eAAsB,iBAAiBA,MAAiB;AACvD,QAAO,CACN,MAAM,KAAK,iBAAiB,EAAE,SAAS,8BAA+B,EAAC,EACtE,QAAQ,UAAU;AACpB"}
@@ -1,7 +1,10 @@
1
- import { UserInfo } from 'npm-user';
2
- import { PackageAuthor } from './readPackageAuthor.js';
3
- import '../types.js';
1
+ import { PackageAuthor } from "./readPackageAuthor.js";
2
+ import { UserInfo } from "npm-user";
4
3
 
4
+ //#region src/options/readEmailFromNpm.d.ts
5
5
  declare function readEmailFromNpm(getNpmDefaults: () => Promise<undefined | UserInfo>, getPackageAuthor: () => Promise<PackageAuthor>): Promise<string | undefined>;
6
+ //# sourceMappingURL=readEmailFromNpm.d.ts.map
6
7
 
8
+ //#endregion
7
9
  export { readEmailFromNpm };
10
+ //# sourceMappingURL=readEmailFromNpm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readEmailFromNpm.d.ts","names":[],"sources":["../../src/options/readEmailFromNpm.ts"],"sourcesContent":[],"mappings":";;;;iBAIsB,gBAAA,uBACC,oBAAoB,mCAClB,QAAQ,iBAAc"}
@@ -1,6 +1,8 @@
1
+ //#region src/options/readEmailFromNpm.ts
1
2
  async function readEmailFromNpm(getNpmDefaults, getPackageAuthor) {
2
- return (await getNpmDefaults())?.email ?? (await getPackageAuthor()).email;
3
+ return (await getNpmDefaults())?.email ?? (await getPackageAuthor()).email;
3
4
  }
4
- export {
5
- readEmailFromNpm
6
- };
5
+
6
+ //#endregion
7
+ export { readEmailFromNpm };
8
+ //# sourceMappingURL=readEmailFromNpm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readEmailFromNpm.js","names":["getNpmDefaults: () => Promise<undefined | UserInfo>","getPackageAuthor: () => Promise<PackageAuthor>"],"sources":["../../src/options/readEmailFromNpm.ts"],"sourcesContent":["import { UserInfo } from \"npm-user\";\n\nimport { PackageAuthor } from \"./readPackageAuthor.js\";\n\nexport async function readEmailFromNpm(\n\tgetNpmDefaults: () => Promise<undefined | UserInfo>,\n\tgetPackageAuthor: () => Promise<PackageAuthor>,\n) {\n\treturn (await getNpmDefaults())?.email ?? (await getPackageAuthor()).email;\n}\n"],"mappings":";AAIA,eAAsB,iBACrBA,gBACAC,kBACC;AACD,SAAQ,MAAM,gBAAgB,GAAG,UAAU,MAAM,kBAAkB,EAAE;AACrE"}
@@ -1,9 +1,12 @@
1
- import { PackageAuthor } from './readPackageAuthor.js';
2
- import '../types.js';
1
+ import { PackageAuthor } from "./readPackageAuthor.js";
3
2
 
3
+ //#region src/options/readEmails.d.ts
4
4
  declare function readEmails(getEmailFromCodeOfConduct: () => Promise<string | undefined>, getEmailFromGit: () => Promise<string | undefined>, getEmailFromNpm: () => Promise<string | undefined>, getPackageAuthor: () => Promise<PackageAuthor>): Promise<{
5
- github: string;
6
- npm: string;
5
+ github: string;
6
+ npm: string;
7
7
  } | undefined>;
8
+ //# sourceMappingURL=readEmails.d.ts.map
8
9
 
10
+ //#endregion
9
11
  export { readEmails };
12
+ //# sourceMappingURL=readEmails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readEmails.d.ts","names":[],"sources":["../../src/options/readEmails.ts"],"sourcesContent":[],"mappings":";;;iBAEsB,UAAA,kCACY,oDACV,oDACA,qDACC,QAAQ,iBAAc;;EAJzB,GAAA,EAAA,MAAA;CAAU,GAAA,SAAA,CAAA"}
@@ -1,8 +1,13 @@
1
+ //#region src/options/readEmails.ts
1
2
  async function readEmails(getEmailFromCodeOfConduct, getEmailFromGit, getEmailFromNpm, getPackageAuthor) {
2
- const github = await getEmailFromCodeOfConduct() ?? await getEmailFromGit();
3
- const npm = (await getPackageAuthor()).email ?? await getEmailFromNpm() ?? github;
4
- return npm ? { github: github || npm, npm } : void 0;
3
+ const github = await getEmailFromCodeOfConduct() ?? await getEmailFromGit();
4
+ const npm = (await getPackageAuthor()).email ?? await getEmailFromNpm() ?? github;
5
+ return npm ? {
6
+ github: github || npm,
7
+ npm
8
+ } : void 0;
5
9
  }
6
- export {
7
- readEmails
8
- };
10
+
11
+ //#endregion
12
+ export { readEmails };
13
+ //# sourceMappingURL=readEmails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readEmails.js","names":["getEmailFromCodeOfConduct: () => Promise<string | undefined>","getEmailFromGit: () => Promise<string | undefined>","getEmailFromNpm: () => Promise<string | undefined>","getPackageAuthor: () => Promise<PackageAuthor>"],"sources":["../../src/options/readEmails.ts"],"sourcesContent":["import { PackageAuthor } from \"./readPackageAuthor.js\";\n\nexport async function readEmails(\n\tgetEmailFromCodeOfConduct: () => Promise<string | undefined>,\n\tgetEmailFromGit: () => Promise<string | undefined>,\n\tgetEmailFromNpm: () => Promise<string | undefined>,\n\tgetPackageAuthor: () => Promise<PackageAuthor>,\n) {\n\tconst github =\n\t\t(await getEmailFromCodeOfConduct()) ?? (await getEmailFromGit());\n\tconst npm =\n\t\t(await getPackageAuthor()).email ?? (await getEmailFromNpm()) ?? github;\n\n\treturn npm ? { github: github || npm, npm } : undefined;\n}\n"],"mappings":";AAEA,eAAsB,WACrBA,2BACAC,iBACAC,iBACAC,kBACC;CACD,MAAM,SACJ,MAAM,2BAA2B,IAAM,MAAM,iBAAiB;CAChE,MAAM,OACJ,MAAM,kBAAkB,EAAE,SAAU,MAAM,iBAAiB,IAAK;AAElE,QAAO,MAAM;EAAE,QAAQ,UAAU;EAAK;CAAK;AAC3C"}
@@ -1,3 +1,7 @@
1
+ //#region src/options/readEmoji.d.ts
1
2
  declare function readEmoji(getDescription: () => Promise<string | undefined>): Promise<string>;
3
+ //# sourceMappingURL=readEmoji.d.ts.map
2
4
 
5
+ //#endregion
3
6
  export { readEmoji };
7
+ //# sourceMappingURL=readEmoji.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readEmoji.d.ts","names":[],"sources":["../../src/options/readEmoji.ts"],"sourcesContent":[],"mappings":";iBAAsB,SAAA,uBACC,8BAA2B;AADlD"}
@@ -1,6 +1,8 @@
1
+ //#region src/options/readEmoji.ts
1
2
  async function readEmoji(getDescription) {
2
- return (await getDescription())?.match(/\p{Extended_Pictographic}/gu)?.at(-1) ?? "\u{1F496}";
3
+ return (await getDescription())?.match(/\p{Extended_Pictographic}/gu)?.at(-1) ?? "💖";
3
4
  }
4
- export {
5
- readEmoji
6
- };
5
+
6
+ //#endregion
7
+ export { readEmoji };
8
+ //# sourceMappingURL=readEmoji.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readEmoji.js","names":["getDescription: () => Promise<string | undefined>"],"sources":["../../src/options/readEmoji.ts"],"sourcesContent":["export async function readEmoji(\n\tgetDescription: () => Promise<string | undefined>,\n) {\n\treturn (\n\t\t(await getDescription())?.match(/\\p{Extended_Pictographic}/gu)?.at(-1) ??\n\t\t\"💖\"\n\t);\n}\n"],"mappings":";AAAA,eAAsB,UACrBA,gBACC;AACD,QACC,CAAC,MAAM,gBAAgB,GAAG,MAAM,8BAA8B,EAAE,GAAG,GAAG,IACtE;AAED"}
@@ -1,9 +1,13 @@
1
- import { TakeInput } from 'bingo';
1
+ import { TakeInput } from "bingo";
2
2
 
3
+ //#region src/options/readExistingLabels.d.ts
3
4
  declare function readExistingLabels(take: TakeInput, getOwner: () => Promise<string | undefined>, getRepository: () => Promise<string | undefined>): Promise<{
4
- color: string;
5
- description: string;
6
- name: string;
5
+ color: string;
6
+ description: string;
7
+ name: string;
7
8
  }[]>;
9
+ //# sourceMappingURL=readExistingLabels.d.ts.map
8
10
 
11
+ //#endregion
9
12
  export { readExistingLabels };
13
+ //# sourceMappingURL=readExistingLabels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readExistingLabels.d.ts","names":[],"sources":["../../src/options/readExistingLabels.ts"],"sourcesContent":[],"mappings":";;;iBAMsB,kBAAA,OACf,2BACU,kDACK,8BAA2B;;EAH3B,WAAA,EAAA,MAAA;EAAkB,IAAA,EAAA,MAAA;CAAA,EAAA,CAAA"}
@@ -1,23 +1,24 @@
1
- import { githubDefaultLabels } from "github-default-labels";
2
1
  import { inputFromOctokit } from "../inputs/inputFromOctokit.js";
2
+ import { githubDefaultLabels } from "github-default-labels";
3
+
4
+ //#region src/options/readExistingLabels.ts
3
5
  async function readExistingLabels(take, getOwner, getRepository) {
4
- const [owner, repository] = await Promise.all([getOwner(), getRepository()]);
5
- const existingLabelsActual = owner && repository && await take(inputFromOctokit, {
6
- endpoint: "GET /repos/{owner}/{repo}/labels",
7
- options: {
8
- owner,
9
- repo: repository
10
- }
11
- });
12
- if (existingLabelsActual) {
13
- return existingLabelsActual.map((label) => ({
14
- color: label.color,
15
- description: label.description,
16
- name: label.name
17
- }));
18
- }
19
- return githubDefaultLabels;
6
+ const [owner, repository] = await Promise.all([getOwner(), getRepository()]);
7
+ const existingLabelsActual = owner && repository && await take(inputFromOctokit, {
8
+ endpoint: "GET /repos/{owner}/{repo}/labels",
9
+ options: {
10
+ owner,
11
+ repo: repository
12
+ }
13
+ });
14
+ if (existingLabelsActual) return existingLabelsActual.map((label) => ({
15
+ color: label.color,
16
+ description: label.description,
17
+ name: label.name
18
+ }));
19
+ return githubDefaultLabels;
20
20
  }
21
- export {
22
- readExistingLabels
23
- };
21
+
22
+ //#endregion
23
+ export { readExistingLabels };
24
+ //# sourceMappingURL=readExistingLabels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readExistingLabels.js","names":["take: TakeInput","getOwner: () => Promise<string | undefined>","getRepository: () => Promise<string | undefined>"],"sources":["../../src/options/readExistingLabels.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { githubDefaultLabels } from \"github-default-labels\";\nimport { OutcomeLabel } from \"set-github-repository-labels\";\n\nimport { inputFromOctokit } from \"../inputs/inputFromOctokit.js\";\n\nexport async function readExistingLabels(\n\ttake: TakeInput,\n\tgetOwner: () => Promise<string | undefined>,\n\tgetRepository: () => Promise<string | undefined>,\n) {\n\tconst [owner, repository] = await Promise.all([getOwner(), getRepository()]);\n\n\t// When transitioning an existing repo, it should already have labels\n\tconst existingLabelsActual =\n\t\towner &&\n\t\trepository &&\n\t\t((await take(inputFromOctokit, {\n\t\t\tendpoint: \"GET /repos/{owner}/{repo}/labels\",\n\t\t\toptions: {\n\t\t\t\towner,\n\t\t\t\trepo: repository,\n\t\t\t},\n\t\t})) as OutcomeLabel[] | undefined);\n\n\tif (existingLabelsActual) {\n\t\t// The labels API includes more properties than we use\n\t\treturn existingLabelsActual.map((label) => ({\n\t\t\tcolor: label.color,\n\t\t\tdescription: label.description,\n\t\t\tname: label.name,\n\t\t}));\n\t}\n\n\t// In setup mode, options evaluate before creating the repository.\n\t// We'd want the owner's defaults in case they've customized them...\n\t// ...except, GitHub doesn't have an API for this 🙁.\n\t// We instead go with the known default labels:\n\treturn githubDefaultLabels;\n}\n"],"mappings":";;;;AAMA,eAAsB,mBACrBA,MACAC,UACAC,eACC;CACD,MAAM,CAAC,OAAO,WAAW,GAAG,MAAM,QAAQ,IAAI,CAAC,UAAU,EAAE,eAAe,AAAC,EAAC;CAG5E,MAAM,uBACL,SACA,cACE,MAAM,KAAK,kBAAkB;EAC9B,UAAU;EACV,SAAS;GACR;GACA,MAAM;EACN;CACD,EAAC;AAEH,KAAI,qBAEH,QAAO,qBAAqB,IAAI,CAAC,WAAW;EAC3C,OAAO,MAAM;EACb,aAAa,MAAM;EACnB,MAAM,MAAM;CACZ,GAAE;AAOJ,QAAO;AACP"}
@@ -1,3 +1,7 @@
1
+ //#region src/options/readFileAsJson.d.ts
1
2
  declare function readFileAsJson(filePath: string): Promise<unknown>;
3
+ //# sourceMappingURL=readFileAsJson.d.ts.map
2
4
 
5
+ //#endregion
3
6
  export { readFileAsJson };
7
+ //# sourceMappingURL=readFileAsJson.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readFileAsJson.d.ts","names":[],"sources":["../../src/options/readFileAsJson.ts"],"sourcesContent":[],"mappings":";iBAEsB,cAAA,oBAA+B;AAArD"}
@@ -1,14 +1,14 @@
1
1
  import * as fs from "node:fs/promises";
2
+
3
+ //#region src/options/readFileAsJson.ts
2
4
  async function readFileAsJson(filePath) {
3
- try {
4
- return JSON.parse((await fs.readFile(filePath)).toString());
5
- } catch (error) {
6
- throw new Error(
7
- `Could not read file from ${filePath} as JSON. Please ensure the file exists and is valid JSON.`,
8
- { cause: error }
9
- );
10
- }
5
+ try {
6
+ return JSON.parse((await fs.readFile(filePath)).toString());
7
+ } catch (error) {
8
+ throw new Error(`Could not read file from ${filePath} as JSON. Please ensure the file exists and is valid JSON.`, { cause: error });
9
+ }
11
10
  }
12
- export {
13
- readFileAsJson
14
- };
11
+
12
+ //#endregion
13
+ export { readFileAsJson };
14
+ //# sourceMappingURL=readFileAsJson.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readFileAsJson.js","names":["filePath: string"],"sources":["../../src/options/readFileAsJson.ts"],"sourcesContent":["import * as fs from \"node:fs/promises\";\n\nexport async function readFileAsJson(filePath: string) {\n\ttry {\n\t\treturn JSON.parse((await fs.readFile(filePath)).toString()) as unknown;\n\t} catch (error) {\n\t\tthrow new Error(\n\t\t\t`Could not read file from ${filePath} as JSON. Please ensure the file exists and is valid JSON.`,\n\t\t\t{ cause: error },\n\t\t);\n\t}\n}\n"],"mappings":";;;AAEA,eAAsB,eAAeA,UAAkB;AACtD,KAAI;AACH,SAAO,KAAK,MAAM,CAAC,MAAM,GAAG,SAAS,SAAS,EAAE,UAAU,CAAC;CAC3D,SAAQ,OAAO;AACf,QAAM,IAAI,OACR,2BAA2B,SAAS,6DACrC,EAAE,OAAO,MAAO;CAEjB;AACD"}
@@ -1,3 +1,7 @@
1
+ //#region src/options/readFileSafe.d.ts
1
2
  declare function readFileSafe(filePath: string | URL, fallback: string): Promise<string>;
3
+ //# sourceMappingURL=readFileSafe.d.ts.map
2
4
 
5
+ //#endregion
3
6
  export { readFileSafe };
7
+ //# sourceMappingURL=readFileSafe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readFileSafe.d.ts","names":[],"sources":["../../src/options/readFileSafe.ts"],"sourcesContent":[],"mappings":";iBAEsB,YAAA,oBAAgC,wBAAqB;AAA3E"}
@@ -1,11 +1,14 @@
1
1
  import * as fs from "node:fs/promises";
2
+
3
+ //#region src/options/readFileSafe.ts
2
4
  async function readFileSafe(filePath, fallback) {
3
- try {
4
- return (await fs.readFile(filePath)).toString();
5
- } catch {
6
- return fallback;
7
- }
5
+ try {
6
+ return (await fs.readFile(filePath)).toString();
7
+ } catch {
8
+ return fallback;
9
+ }
8
10
  }
9
- export {
10
- readFileSafe
11
- };
11
+
12
+ //#endregion
13
+ export { readFileSafe };
14
+ //# sourceMappingURL=readFileSafe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readFileSafe.js","names":["filePath: string | URL","fallback: string"],"sources":["../../src/options/readFileSafe.ts"],"sourcesContent":["import * as fs from \"node:fs/promises\";\n\nexport async function readFileSafe(filePath: string | URL, fallback: string) {\n\ttry {\n\t\treturn (await fs.readFile(filePath)).toString();\n\t} catch {\n\t\treturn fallback;\n\t}\n}\n"],"mappings":";;;AAEA,eAAsB,aAAaA,UAAwBC,UAAkB;AAC5E,KAAI;AACH,SAAO,CAAC,MAAM,GAAG,SAAS,SAAS,EAAE,UAAU;CAC/C,QAAO;AACP,SAAO;CACP;AACD"}
@@ -1,5 +1,9 @@
1
- import { TakeInput } from 'bingo';
1
+ import { TakeInput } from "bingo";
2
2
 
3
+ //#region src/options/readFunding.d.ts
3
4
  declare function readFunding(take: TakeInput): Promise<string | undefined>;
5
+ //# sourceMappingURL=readFunding.d.ts.map
4
6
 
7
+ //#endregion
5
8
  export { readFunding };
9
+ //# sourceMappingURL=readFunding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readFunding.d.ts","names":[],"sources":["../../src/options/readFunding.ts"],"sourcesContent":[],"mappings":";;;iBAKsB,WAAA,OAAkB,YAAS"}
@@ -1,10 +1,11 @@
1
- import { inputFromFile } from "input-from-file";
2
1
  import { swallowError } from "../utils/swallowError.js";
2
+ import { inputFromFile } from "input-from-file";
3
+
4
+ //#region src/options/readFunding.ts
3
5
  async function readFunding(take) {
4
- return swallowError(
5
- await take(inputFromFile, { filePath: ".github/FUNDING.yml" })
6
- )?.split(":")[1]?.trim();
6
+ return swallowError(await take(inputFromFile, { filePath: ".github/FUNDING.yml" }))?.split(":")[1]?.trim();
7
7
  }
8
- export {
9
- readFunding
10
- };
8
+
9
+ //#endregion
10
+ export { readFunding };
11
+ //# sourceMappingURL=readFunding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readFunding.js","names":["take: TakeInput"],"sources":["../../src/options/readFunding.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { inputFromFile } from \"input-from-file\";\n\nimport { swallowError } from \"../utils/swallowError.js\";\n\nexport async function readFunding(take: TakeInput) {\n\treturn swallowError(\n\t\tawait take(inputFromFile, { filePath: \".github/FUNDING.yml\" }),\n\t)\n\t\t?.split(\":\")[1]\n\t\t?.trim();\n}\n"],"mappings":";;;;AAKA,eAAsB,YAAYA,MAAiB;AAClD,QAAO,aACN,MAAM,KAAK,eAAe,EAAE,UAAU,sBAAuB,EAAC,CAC9D,EACE,MAAM,IAAI,CAAC,IACX,MAAM;AACT"}
@@ -1,6 +1,10 @@
1
- import { TakeInput } from 'bingo';
2
- import gitUrlParse from 'git-url-parse';
1
+ import { TakeInput } from "bingo";
2
+ import gitUrlParse from "git-url-parse";
3
3
 
4
+ //#region src/options/readGitDefaults.d.ts
4
5
  declare function readGitDefaults(take: TakeInput): Promise<gitUrlParse.GitUrl | undefined>;
6
+ //# sourceMappingURL=readGitDefaults.d.ts.map
5
7
 
8
+ //#endregion
6
9
  export { readGitDefaults };
10
+ //# sourceMappingURL=readGitDefaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readGitDefaults.d.ts","names":[],"sources":["../../src/options/readGitDefaults.ts"],"sourcesContent":[],"mappings":";;;;iBAIsB,eAAA,OAAsB,YAAS,QAAA,WAAA,CAAA"}
@@ -1,11 +1,12 @@
1
- import gitUrlParse from "git-url-parse";
2
1
  import { inputFromScript } from "input-from-script";
2
+ import gitUrlParse from "git-url-parse";
3
+
4
+ //#region src/options/readGitDefaults.ts
3
5
  async function readGitDefaults(take) {
4
- const url = await take(inputFromScript, {
5
- command: "git remote get-url origin"
6
- });
7
- return url.stdout ? gitUrlParse(url.stdout.toString()) : void 0;
6
+ const url = await take(inputFromScript, { command: "git remote get-url origin" });
7
+ return url.stdout ? gitUrlParse(url.stdout.toString()) : void 0;
8
8
  }
9
- export {
10
- readGitDefaults
11
- };
9
+
10
+ //#endregion
11
+ export { readGitDefaults };
12
+ //# sourceMappingURL=readGitDefaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readGitDefaults.js","names":["take: TakeInput"],"sources":["../../src/options/readGitDefaults.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport gitUrlParse from \"git-url-parse\";\nimport { inputFromScript } from \"input-from-script\";\n\nexport async function readGitDefaults(take: TakeInput) {\n\tconst url = await take(inputFromScript, {\n\t\tcommand: \"git remote get-url origin\",\n\t});\n\n\treturn url.stdout ? gitUrlParse(url.stdout.toString()) : undefined;\n}\n"],"mappings":";;;;AAIA,eAAsB,gBAAgBA,MAAiB;CACtD,MAAM,MAAM,MAAM,KAAK,iBAAiB,EACvC,SAAS,4BACT,EAAC;AAEF,QAAO,IAAI,SAAS,YAAY,IAAI,OAAO,UAAU,CAAC;AACtD"}
@@ -1,8 +1,12 @@
1
- import { TakeInput } from 'bingo';
1
+ import { TakeInput } from "bingo";
2
2
 
3
+ //#region src/options/readGuide.d.ts
3
4
  declare function readGuide(take: TakeInput): Promise<{
4
- href: string;
5
- title: string;
5
+ href: string;
6
+ title: string;
6
7
  } | undefined>;
8
+ //# sourceMappingURL=readGuide.d.ts.map
7
9
 
10
+ //#endregion
8
11
  export { readGuide };
12
+ //# sourceMappingURL=readGuide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readGuide.d.ts","names":[],"sources":["../../src/options/readGuide.ts"],"sourcesContent":[],"mappings":";;;iBAGsB,SAAA,OAAgB,YAAS;;EAAzB,KAAA,EAAA,MAAS;CAAA,GAAA,SAAA,CAAA"}
@@ -1,22 +1,17 @@
1
1
  import { inputFromFile } from "input-from-file";
2
+
3
+ //#region src/options/readGuide.ts
2
4
  async function readGuide(take) {
3
- const development = await take(inputFromFile, {
4
- filePath: ".github/DEVELOPMENT.md"
5
- });
6
- if (development instanceof Error) {
7
- return void 0;
8
- }
9
- const tag = /> .*guided walkthrough, see \[((?!\[).+)\]\((.+)\)/i.exec(
10
- development
11
- );
12
- if (!tag) {
13
- return void 0;
14
- }
15
- return {
16
- href: tag[2],
17
- title: tag[1]
18
- };
5
+ const development = await take(inputFromFile, { filePath: ".github/DEVELOPMENT.md" });
6
+ if (development instanceof Error) return void 0;
7
+ const tag = /> .*guided walkthrough, see \[((?!\[).+)\]\((.+)\)/i.exec(development);
8
+ if (!tag) return void 0;
9
+ return {
10
+ href: tag[2],
11
+ title: tag[1]
12
+ };
19
13
  }
20
- export {
21
- readGuide
22
- };
14
+
15
+ //#endregion
16
+ export { readGuide };
17
+ //# sourceMappingURL=readGuide.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readGuide.js","names":["take: TakeInput"],"sources":["../../src/options/readGuide.ts"],"sourcesContent":["import { TakeInput } from \"bingo\";\nimport { inputFromFile } from \"input-from-file\";\n\nexport async function readGuide(take: TakeInput) {\n\tconst development = await take(inputFromFile, {\n\t\tfilePath: \".github/DEVELOPMENT.md\",\n\t});\n\n\tif (development instanceof Error) {\n\t\treturn undefined;\n\t}\n\n\tconst tag = /> .*guided walkthrough, see \\[((?!\\[).+)\\]\\((.+)\\)/i.exec(\n\t\tdevelopment,\n\t);\n\n\tif (!tag) {\n\t\treturn undefined;\n\t}\n\n\treturn {\n\t\thref: tag[2],\n\t\ttitle: tag[1],\n\t};\n}\n"],"mappings":";;;AAGA,eAAsB,UAAUA,MAAiB;CAChD,MAAM,cAAc,MAAM,KAAK,eAAe,EAC7C,UAAU,yBACV,EAAC;AAEF,KAAI,uBAAuB,MAC1B;CAGD,MAAM,MAAM,sDAAsD,KACjE,YACA;AAED,MAAK,IACJ;AAGD,QAAO;EACN,MAAM,IAAI;EACV,OAAO,IAAI;CACX;AACD"}
@@ -1,5 +1,9 @@
1
- import { PartialPackageData } from '../types.js';
1
+ import { PartialPackageData } from "../types.js";
2
2
 
3
+ //#region src/options/readKeywords.d.ts
3
4
  declare function readKeywords(getPackageData: () => Promise<PartialPackageData>): Promise<string[] | undefined>;
5
+ //# sourceMappingURL=readKeywords.d.ts.map
4
6
 
7
+ //#endregion
5
8
  export { readKeywords };
9
+ //# sourceMappingURL=readKeywords.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readKeywords.d.ts","names":[],"sources":["../../src/options/readKeywords.ts"],"sourcesContent":[],"mappings":";;;iBAEsB,YAAA,uBACC,QAAQ,sBAAmB"}
@@ -1,7 +1,9 @@
1
+ //#region src/options/readKeywords.ts
1
2
  async function readKeywords(getPackageData) {
2
- const { keywords } = await getPackageData();
3
- return keywords && Array.from(new Set((await getPackageData()).keywords)).sort();
3
+ const { keywords } = await getPackageData();
4
+ return keywords && Array.from(new Set((await getPackageData()).keywords)).sort();
4
5
  }
5
- export {
6
- readKeywords
7
- };
6
+
7
+ //#endregion
8
+ export { readKeywords };
9
+ //# sourceMappingURL=readKeywords.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readKeywords.js","names":["getPackageData: () => Promise<PartialPackageData>"],"sources":["../../src/options/readKeywords.ts"],"sourcesContent":["import { PartialPackageData } from \"../types.js\";\n\nexport async function readKeywords(\n\tgetPackageData: () => Promise<PartialPackageData>,\n) {\n\tconst { keywords } = await getPackageData();\n\n\treturn (\n\t\tkeywords && Array.from(new Set((await getPackageData()).keywords)).sort()\n\t);\n}\n"],"mappings":";AAEA,eAAsB,aACrBA,gBACC;CACD,MAAM,EAAE,UAAU,GAAG,MAAM,gBAAgB;AAE3C,QACC,YAAY,MAAM,KAAK,IAAI,KAAK,MAAM,gBAAgB,EAAE,UAAU,CAAC,MAAM;AAE1E"}
@@ -1,8 +1,12 @@
1
+ //#region src/options/readLogo.d.ts
1
2
  declare function readLogo(getReadme: () => Promise<string>): Promise<{
2
- height?: number;
3
- width?: number;
4
- alt: string;
5
- src: string;
3
+ height?: number;
4
+ width?: number;
5
+ alt: string;
6
+ src: string;
6
7
  } | undefined>;
8
+ //# sourceMappingURL=readLogo.d.ts.map
7
9
 
10
+ //#endregion
8
11
  export { readLogo };
12
+ //# sourceMappingURL=readLogo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readLogo.d.ts","names":[],"sources":["../../src/options/readLogo.ts"],"sourcesContent":[],"mappings":";iBAIsB,QAAA,kBAA0B,kBAAe;EAAzC,MAAA,CAAA,EAAA,MAAQ;EAAA,KAAA,CAAA,EAAA,MAAA;EAAA,GAAkB,EAAA,MAAA;EAAO,GAAQ,EAAA,MAAA;AAAA,CAAA,GAAA,SAAA,CAAA"}