create-typescript-app 2.0.0-beta.7 → 2.0.0-beta.8

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 (626) hide show
  1. package/README.md +59 -55
  2. package/bin/index.js +14 -2
  3. package/lib/{next/base.d.ts → base.d.ts} +24 -4
  4. package/lib/{next/base.js → base.js} +19 -22
  5. package/lib/base.js.map +1 -0
  6. package/lib/{next/blocks → blocks}/blockAllContributors.d.ts +1 -1
  7. package/lib/blocks/blockAllContributors.js +139 -0
  8. package/lib/blocks/blockAllContributors.js.map +1 -0
  9. package/lib/{next/blocks → blocks}/blockAreTheTypesWrong.d.ts +1 -1
  10. package/lib/blocks/blockAreTheTypesWrong.js.map +1 -0
  11. package/lib/{next/blocks → blocks}/blockCSpell.d.ts +1 -1
  12. package/lib/{next/blocks → blocks}/blockCSpell.js +1 -1
  13. package/lib/blocks/blockCSpell.js.map +1 -0
  14. package/lib/blocks/blockCodecov.d.ts +52 -0
  15. package/lib/blocks/blockCodecov.js +50 -0
  16. package/lib/blocks/blockCodecov.js.map +1 -0
  17. package/lib/{next/blocks → blocks}/blockContributingDocs.d.ts +1 -1
  18. package/lib/{next/blocks → blocks}/blockContributingDocs.js +2 -1
  19. package/lib/blocks/blockContributingDocs.js.map +1 -0
  20. package/lib/{next/blocks → blocks}/blockContributorCovenant.d.ts +1 -1
  21. package/lib/{next/blocks → blocks}/blockContributorCovenant.js +2 -1
  22. package/lib/blocks/blockContributorCovenant.js.map +1 -0
  23. package/lib/{next/blocks → blocks}/blockDevelopmentDocs.d.ts +3 -3
  24. package/lib/{next/blocks → blocks}/blockDevelopmentDocs.js +3 -2
  25. package/lib/blocks/blockDevelopmentDocs.js.map +1 -0
  26. package/lib/{next/blocks → blocks}/blockESLint.d.ts +8 -7
  27. package/lib/{next/blocks → blocks}/blockESLint.js +14 -5
  28. package/lib/blocks/blockESLint.js.map +1 -0
  29. package/lib/{next/blocks → blocks}/blockESLintComments.d.ts +1 -1
  30. package/lib/blocks/blockESLintComments.js.map +1 -0
  31. package/lib/{next/blocks → blocks}/blockESLintJSDoc.d.ts +1 -1
  32. package/lib/blocks/blockESLintJSDoc.js.map +1 -0
  33. package/lib/{next/blocks → blocks}/blockESLintJSONC.d.ts +1 -1
  34. package/lib/blocks/blockESLintJSONC.js.map +1 -0
  35. package/lib/{next/blocks → blocks}/blockESLintMarkdown.d.ts +1 -1
  36. package/lib/blocks/blockESLintMarkdown.js.map +1 -0
  37. package/lib/{next/blocks → blocks}/blockESLintMoreStyling.d.ts +1 -1
  38. package/lib/blocks/blockESLintMoreStyling.js.map +1 -0
  39. package/lib/{next/blocks → blocks}/blockESLintNode.d.ts +1 -1
  40. package/lib/{next/blocks → blocks}/blockESLintNode.js +7 -5
  41. package/lib/blocks/blockESLintNode.js.map +1 -0
  42. package/lib/{next/blocks → blocks}/blockESLintPackageJson.d.ts +1 -1
  43. package/lib/blocks/blockESLintPackageJson.js.map +1 -0
  44. package/lib/{next/blocks → blocks}/blockESLintPerfectionist.d.ts +1 -1
  45. package/lib/blocks/blockESLintPerfectionist.js.map +1 -0
  46. package/lib/{next/blocks → blocks}/blockESLintRegexp.d.ts +1 -1
  47. package/lib/blocks/blockESLintRegexp.js.map +1 -0
  48. package/lib/{next/blocks → blocks}/blockESLintYML.d.ts +1 -1
  49. package/lib/blocks/blockESLintYML.js.map +1 -0
  50. package/lib/{next/blocks → blocks}/blockExampleFiles.d.ts +1 -1
  51. package/lib/blocks/blockExampleFiles.js.map +1 -0
  52. package/lib/{next/blocks → blocks}/blockFunding.d.ts +1 -1
  53. package/lib/{next/blocks → blocks}/blockFunding.js +1 -1
  54. package/lib/blocks/blockFunding.js.map +1 -0
  55. package/lib/{next/blocks → blocks}/blockGitHubActionsCI.d.ts +29 -3
  56. package/lib/{next/blocks → blocks}/blockGitHubActionsCI.js +21 -17
  57. package/lib/blocks/blockGitHubActionsCI.js.map +1 -0
  58. package/lib/{next/blocks → blocks}/blockGitHubApps.d.ts +1 -1
  59. package/lib/blocks/blockGitHubApps.js.map +1 -0
  60. package/lib/{next/blocks → blocks}/blockGitHubIssueTemplates.d.ts +1 -1
  61. package/lib/{next/blocks → blocks}/blockGitHubIssueTemplates.js +1 -1
  62. package/lib/blocks/blockGitHubIssueTemplates.js.map +1 -0
  63. package/lib/{next/blocks → blocks}/blockGitHubPRTemplate.d.ts +1 -1
  64. package/lib/blocks/blockGitHubPRTemplate.js.map +1 -0
  65. package/lib/{next/blocks → blocks}/blockGitignore.d.ts +1 -1
  66. package/lib/{next/blocks → blocks}/blockGitignore.js +1 -1
  67. package/lib/blocks/blockGitignore.js.map +1 -0
  68. package/lib/blocks/blockKnip.d.ts +52 -0
  69. package/lib/{next/blocks → blocks}/blockKnip.js +15 -5
  70. package/lib/blocks/blockKnip.js.map +1 -0
  71. package/lib/{next/blocks → blocks}/blockMITLicense.d.ts +1 -1
  72. package/lib/blocks/blockMITLicense.js.map +1 -0
  73. package/lib/{next/blocks → blocks}/blockMarkdownlint.d.ts +1 -1
  74. package/lib/{next/blocks → blocks}/blockMarkdownlint.js +10 -7
  75. package/lib/blocks/blockMarkdownlint.js.map +1 -0
  76. package/lib/{next/blocks → blocks}/blockNvmrc.d.ts +1 -1
  77. package/lib/blocks/blockNvmrc.js.map +1 -0
  78. package/lib/{next/blocks → blocks}/blockPRCompliance.d.ts +1 -1
  79. package/lib/{next/blocks → blocks}/blockPRCompliance.js +1 -1
  80. package/lib/blocks/blockPRCompliance.js.map +1 -0
  81. package/lib/{next/blocks → blocks}/blockPackageJson.d.ts +2 -2
  82. package/lib/{next/blocks → blocks}/blockPackageJson.js +7 -4
  83. package/lib/blocks/blockPackageJson.js.map +1 -0
  84. package/lib/{next/blocks → blocks}/blockPnpmDedupe.d.ts +1 -1
  85. package/lib/blocks/blockPnpmDedupe.js.map +1 -0
  86. package/lib/{next/blocks → blocks}/blockPrettier.d.ts +2 -2
  87. package/lib/{next/blocks → blocks}/blockPrettier.js +6 -3
  88. package/lib/blocks/blockPrettier.js.map +1 -0
  89. package/lib/{next/blocks → blocks}/blockPrettierPluginCurly.d.ts +1 -1
  90. package/lib/blocks/blockPrettierPluginCurly.js.map +1 -0
  91. package/lib/{next/blocks → blocks}/blockPrettierPluginPackageJson.d.ts +1 -1
  92. package/lib/blocks/blockPrettierPluginPackageJson.js.map +1 -0
  93. package/lib/{next/blocks → blocks}/blockPrettierPluginSh.d.ts +1 -1
  94. package/lib/blocks/blockPrettierPluginSh.js.map +1 -0
  95. package/lib/{next/blocks → blocks}/blockREADME.d.ts +3 -1
  96. package/lib/{next/blocks → blocks}/blockREADME.js +16 -19
  97. package/lib/blocks/blockREADME.js.map +1 -0
  98. package/lib/{next/blocks → blocks}/blockReleaseIt.d.ts +1 -1
  99. package/lib/{next/blocks → blocks}/blockReleaseIt.js +2 -2
  100. package/lib/blocks/blockReleaseIt.js.map +1 -0
  101. package/lib/{next/blocks → blocks}/blockRenovate.d.ts +1 -1
  102. package/lib/{next/blocks → blocks}/blockRenovate.js +6 -1
  103. package/lib/blocks/blockRenovate.js.map +1 -0
  104. package/lib/{next/blocks → blocks}/blockRepositoryBranchRuleset.d.ts +1 -1
  105. package/lib/{next/blocks → blocks}/blockRepositoryBranchRuleset.js +0 -1
  106. package/lib/blocks/blockRepositoryBranchRuleset.js.map +1 -0
  107. package/lib/{next/blocks → blocks}/blockRepositoryLabels.d.ts +1 -1
  108. package/lib/{next/blocks → blocks}/blockRepositoryLabels.js +1 -1
  109. package/lib/blocks/blockRepositoryLabels.js.map +1 -0
  110. package/lib/{next/blocks → blocks}/blockRepositorySecrets.d.ts +2 -2
  111. package/lib/blocks/blockRepositorySecrets.js.map +1 -0
  112. package/lib/{next/blocks → blocks}/blockRepositorySettings.d.ts +1 -1
  113. package/lib/blocks/blockRepositorySettings.js.map +1 -0
  114. package/lib/{next/blocks → blocks}/blockSecurityDocs.d.ts +1 -1
  115. package/lib/blocks/blockSecurityDocs.js.map +1 -0
  116. package/lib/{next/blocks → blocks}/blockTSup.d.ts +2 -1
  117. package/lib/{next/blocks → blocks}/blockTSup.js +18 -4
  118. package/lib/blocks/blockTSup.js.map +1 -0
  119. package/lib/{next/blocks/blockKnip.d.ts → blocks/blockTemplatedWith.d.ts} +3 -3
  120. package/lib/{next/blocks/blockTemplatedBy.js → blocks/blockTemplatedWith.js} +3 -3
  121. package/lib/blocks/blockTemplatedWith.js.map +1 -0
  122. package/lib/{next/blocks → blocks}/blockTypeScript.d.ts +1 -1
  123. package/lib/{next/blocks → blocks}/blockTypeScript.js +2 -2
  124. package/lib/blocks/blockTypeScript.js.map +1 -0
  125. package/lib/{next/blocks → blocks}/blockVSCode.d.ts +1 -1
  126. package/lib/blocks/blockVSCode.js.map +1 -0
  127. package/lib/{next/blocks → blocks}/blockVitest.d.ts +10 -5
  128. package/lib/{next/blocks → blocks}/blockVitest.js +19 -34
  129. package/lib/blocks/blockVitest.js.map +1 -0
  130. package/lib/blocks/files/createJobName.d.ts +3 -0
  131. package/lib/blocks/files/createJobName.js +7 -0
  132. package/lib/blocks/files/createJobName.js.map +1 -0
  133. package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createMultiWorkflowFile.js +2 -1
  134. package/lib/blocks/files/createMultiWorkflowFile.js.map +1 -0
  135. package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createSoloWorkflowFile.js +2 -1
  136. package/lib/blocks/files/createSoloWorkflowFile.js.map +1 -0
  137. package/lib/blocks/files/formatIgnoreFile.js.map +1 -0
  138. package/lib/{steps/writing/creation/dotGitHub → blocks/files}/formatWorkflowYaml.js +1 -1
  139. package/lib/blocks/files/formatWorkflowYaml.js.map +1 -0
  140. package/lib/{steps/writing/creation/formatters → blocks/files}/formatYaml.js +1 -3
  141. package/lib/blocks/files/formatYaml.js.map +1 -0
  142. package/lib/blocks/index.d.ts +2141 -0
  143. package/lib/blocks/index.js +178 -0
  144. package/lib/blocks/index.js.map +1 -0
  145. package/lib/blocks/options.fakes.js.map +1 -0
  146. package/lib/{steps/initializeGitHubRepository → blocks}/outcomeLabels.js +1 -0
  147. package/lib/blocks/outcomeLabels.js.map +1 -0
  148. package/lib/blocks/phases.js.map +1 -0
  149. package/lib/{next/blocks/sourcePackageJson.d.ts → data/packageData.d.ts} +44 -50
  150. package/lib/{next/blocks → data}/packageData.js +9 -3
  151. package/lib/data/packageData.js.map +1 -0
  152. package/lib/index.d.ts +50 -48
  153. package/lib/index.js +4 -5
  154. package/lib/index.js.map +1 -1
  155. package/lib/options/getUsageFromReadme.js.map +1 -0
  156. package/lib/{shared/options/createOptionDefaults → options}/parsePackageAuthor.d.ts +1 -3
  157. package/lib/options/parsePackageAuthor.js.map +1 -0
  158. package/lib/{shared/options/createOptionDefaults → options}/readDefaultsFromReadme.d.ts +1 -0
  159. package/lib/{shared/options/createOptionDefaults → options}/readDefaultsFromReadme.js +12 -3
  160. package/lib/options/readDefaultsFromReadme.js.map +1 -0
  161. package/lib/{next → options}/readDescription.d.ts +1 -3
  162. package/lib/{next → options}/readDescription.js +2 -2
  163. package/lib/options/readDescription.js.map +1 -0
  164. package/lib/options/readDescriptionFromReadme.js.map +1 -0
  165. package/lib/{next → options}/readDocumentation.js +1 -1
  166. package/lib/options/readDocumentation.js.map +1 -0
  167. package/lib/{shared/options/createOptionDefaults → options}/readEmails.js +1 -1
  168. package/lib/options/readEmails.js.map +1 -0
  169. package/lib/options/readFileAsJson.js.map +1 -0
  170. package/lib/options/readFileSafe.js.map +1 -0
  171. package/lib/{shared/options/createOptionDefaults → options}/readFunding.js +1 -1
  172. package/lib/options/readFunding.js.map +1 -0
  173. package/lib/{shared/options/createOptionDefaults → options}/readGitHubEmail.js +1 -1
  174. package/lib/options/readGitHubEmail.js.map +1 -0
  175. package/lib/{shared/options/createOptionDefaults → options}/readGuide.js +1 -1
  176. package/lib/options/readGuide.js.map +1 -0
  177. package/lib/{shared/options → options}/readLogoSizing.js +1 -1
  178. package/lib/options/readLogoSizing.js.map +1 -0
  179. package/lib/options/readPackageData.d.ts +5 -0
  180. package/lib/options/readPackageData.js +8 -0
  181. package/lib/options/readPackageData.js.map +1 -0
  182. package/lib/{next/presets/presetCommon.d.ts → presets/common.d.ts} +1 -1
  183. package/lib/{next/presets/presetCommon.js → presets/common.js} +6 -2
  184. package/lib/presets/common.js.map +1 -0
  185. package/lib/{next/presets/presetEverything.d.ts → presets/everything.d.ts} +1 -1
  186. package/lib/{next/presets/presetEverything.js → presets/everything.js} +2 -4
  187. package/lib/presets/everything.js.map +1 -0
  188. package/lib/presets/index.d.ts +310 -0
  189. package/lib/presets/index.js +18 -0
  190. package/lib/presets/index.js.map +1 -0
  191. package/lib/{next/presets/presetMinimal.d.ts → presets/minimal.d.ts} +1 -1
  192. package/lib/{next/presets/presetMinimal.js → presets/minimal.js} +5 -5
  193. package/lib/presets/minimal.js.map +1 -0
  194. package/lib/{next/template.d.ts → template.d.ts} +1 -1
  195. package/lib/{next/template.js → template.js} +3 -3
  196. package/lib/template.js.map +1 -0
  197. package/lib/types.d.ts +31 -5
  198. package/lib/utils/resolveBin.js.map +1 -0
  199. package/lib/utils/sortObject.js.map +1 -0
  200. package/lib/utils/swallowError.js.map +1 -0
  201. package/lib/utils/tryCatchAsync.js.map +1 -0
  202. package/lib/utils/tryCatchLazyValueAsync.js.map +1 -0
  203. package/package.json +21 -31
  204. package/lib/bin/help.d.ts +0 -3
  205. package/lib/bin/help.js +0 -117
  206. package/lib/bin/help.js.map +0 -1
  207. package/lib/bin/index.d.ts +0 -5
  208. package/lib/bin/index.js +0 -91
  209. package/lib/bin/index.js.map +0 -1
  210. package/lib/bin/packageJson.d.ts +0 -3
  211. package/lib/bin/packageJson.js +0 -13
  212. package/lib/bin/packageJson.js.map +0 -1
  213. package/lib/bin/promptForMode.d.ts +0 -11
  214. package/lib/bin/promptForMode.js +0 -108
  215. package/lib/bin/promptForMode.js.map +0 -1
  216. package/lib/create/createAndEnterGitDirectory.d.ts +0 -3
  217. package/lib/create/createAndEnterGitDirectory.js +0 -20
  218. package/lib/create/createAndEnterGitDirectory.js.map +0 -1
  219. package/lib/create/createRerunDirectorySuggestion.d.ts +0 -7
  220. package/lib/create/createRerunDirectorySuggestion.js +0 -8
  221. package/lib/create/createRerunDirectorySuggestion.js.map +0 -1
  222. package/lib/create/createRerunSuggestion.d.ts +0 -7
  223. package/lib/create/createRerunSuggestion.js +0 -56
  224. package/lib/create/createRerunSuggestion.js.map +0 -1
  225. package/lib/create/createWithOptions.d.ts +0 -11
  226. package/lib/create/createWithOptions.js +0 -68
  227. package/lib/create/createWithOptions.js.map +0 -1
  228. package/lib/create/index.d.ts +0 -7
  229. package/lib/create/index.js +0 -69
  230. package/lib/create/index.js.map +0 -1
  231. package/lib/greet.d.ts +0 -5
  232. package/lib/greet.js +0 -14
  233. package/lib/greet.js.map +0 -1
  234. package/lib/initialize/index.d.ts +0 -7
  235. package/lib/initialize/index.js +0 -43
  236. package/lib/initialize/index.js.map +0 -1
  237. package/lib/initialize/initializeWithOptions.d.ts +0 -9
  238. package/lib/initialize/initializeWithOptions.js +0 -66
  239. package/lib/initialize/initializeWithOptions.js.map +0 -1
  240. package/lib/migrate/index.d.ts +0 -7
  241. package/lib/migrate/index.js +0 -43
  242. package/lib/migrate/index.js.map +0 -1
  243. package/lib/migrate/migrateWithOptions.d.ts +0 -9
  244. package/lib/migrate/migrateWithOptions.js +0 -72
  245. package/lib/migrate/migrateWithOptions.js.map +0 -1
  246. package/lib/next/base.js.map +0 -1
  247. package/lib/next/blocks/blockAllContributors.js +0 -65
  248. package/lib/next/blocks/blockAllContributors.js.map +0 -1
  249. package/lib/next/blocks/blockAreTheTypesWrong.js.map +0 -1
  250. package/lib/next/blocks/blockCSpell.js.map +0 -1
  251. package/lib/next/blocks/blockContributingDocs.js.map +0 -1
  252. package/lib/next/blocks/blockContributorCovenant.js.map +0 -1
  253. package/lib/next/blocks/blockDevelopmentDocs.js.map +0 -1
  254. package/lib/next/blocks/blockESLint.js.map +0 -1
  255. package/lib/next/blocks/blockESLintComments.js.map +0 -1
  256. package/lib/next/blocks/blockESLintJSDoc.js.map +0 -1
  257. package/lib/next/blocks/blockESLintJSONC.js.map +0 -1
  258. package/lib/next/blocks/blockESLintMarkdown.js.map +0 -1
  259. package/lib/next/blocks/blockESLintMoreStyling.js.map +0 -1
  260. package/lib/next/blocks/blockESLintNode.js.map +0 -1
  261. package/lib/next/blocks/blockESLintPackageJson.js.map +0 -1
  262. package/lib/next/blocks/blockESLintPerfectionist.js.map +0 -1
  263. package/lib/next/blocks/blockESLintRegexp.js.map +0 -1
  264. package/lib/next/blocks/blockESLintYML.js.map +0 -1
  265. package/lib/next/blocks/blockExampleFiles.js.map +0 -1
  266. package/lib/next/blocks/blockFunding.js.map +0 -1
  267. package/lib/next/blocks/blockGitHubActionsCI.js.map +0 -1
  268. package/lib/next/blocks/blockGitHubApps.js.map +0 -1
  269. package/lib/next/blocks/blockGitHubIssueTemplates.js.map +0 -1
  270. package/lib/next/blocks/blockGitHubPRTemplate.js.map +0 -1
  271. package/lib/next/blocks/blockGitignore.js.map +0 -1
  272. package/lib/next/blocks/blockKnip.js.map +0 -1
  273. package/lib/next/blocks/blockMITLicense.js.map +0 -1
  274. package/lib/next/blocks/blockMarkdownlint.js.map +0 -1
  275. package/lib/next/blocks/blockNvmrc.js.map +0 -1
  276. package/lib/next/blocks/blockPRCompliance.js.map +0 -1
  277. package/lib/next/blocks/blockPackageJson.js.map +0 -1
  278. package/lib/next/blocks/blockPnpmDedupe.js.map +0 -1
  279. package/lib/next/blocks/blockPrettier.js.map +0 -1
  280. package/lib/next/blocks/blockPrettierPluginCurly.js.map +0 -1
  281. package/lib/next/blocks/blockPrettierPluginPackageJson.js.map +0 -1
  282. package/lib/next/blocks/blockPrettierPluginSh.js.map +0 -1
  283. package/lib/next/blocks/blockREADME.js.map +0 -1
  284. package/lib/next/blocks/blockReleaseIt.js.map +0 -1
  285. package/lib/next/blocks/blockRenovate.js.map +0 -1
  286. package/lib/next/blocks/blockRepositoryBranchRuleset.js.map +0 -1
  287. package/lib/next/blocks/blockRepositoryLabels.js.map +0 -1
  288. package/lib/next/blocks/blockRepositorySecrets.js.map +0 -1
  289. package/lib/next/blocks/blockRepositorySettings.js.map +0 -1
  290. package/lib/next/blocks/blockSecurityDocs.js.map +0 -1
  291. package/lib/next/blocks/blockTSup.js.map +0 -1
  292. package/lib/next/blocks/blockTemplatedBy.d.ts +0 -50
  293. package/lib/next/blocks/blockTemplatedBy.js.map +0 -1
  294. package/lib/next/blocks/blockTypeScript.js.map +0 -1
  295. package/lib/next/blocks/blockVSCode.js.map +0 -1
  296. package/lib/next/blocks/blockVitest.js.map +0 -1
  297. package/lib/next/blocks/index.d.ts +0 -43
  298. package/lib/next/blocks/index.js +0 -43
  299. package/lib/next/blocks/index.js.map +0 -1
  300. package/lib/next/blocks/options.fakes.js.map +0 -1
  301. package/lib/next/blocks/packageData.d.ts +0 -6
  302. package/lib/next/blocks/packageData.js.map +0 -1
  303. package/lib/next/blocks/phases.js.map +0 -1
  304. package/lib/next/blocks/sourcePackageJson.js +0 -10
  305. package/lib/next/blocks/sourcePackageJson.js.map +0 -1
  306. package/lib/next/presets/index.d.ts +0 -5
  307. package/lib/next/presets/index.js +0 -4
  308. package/lib/next/presets/index.js.map +0 -1
  309. package/lib/next/presets/presetCommon.js.map +0 -1
  310. package/lib/next/presets/presetEverything.js.map +0 -1
  311. package/lib/next/presets/presetMinimal.js.map +0 -1
  312. package/lib/next/readDescription.js.map +0 -1
  313. package/lib/next/readDescriptionFromReadme.js.map +0 -1
  314. package/lib/next/readDocumentation.js.map +0 -1
  315. package/lib/next/runCreateEnginePreset.d.ts +0 -7
  316. package/lib/next/runCreateEnginePreset.js +0 -20
  317. package/lib/next/runCreateEnginePreset.js.map +0 -1
  318. package/lib/next/template.js.map +0 -1
  319. package/lib/next/utils/resolveBin.js.map +0 -1
  320. package/lib/next/utils/sortObject.js.map +0 -1
  321. package/lib/next/utils/swallowError.js.map +0 -1
  322. package/lib/shared/cli/lines.d.ts +0 -5
  323. package/lib/shared/cli/lines.js +0 -17
  324. package/lib/shared/cli/lines.js.map +0 -1
  325. package/lib/shared/cli/lowerFirst.d.ts +0 -3
  326. package/lib/shared/cli/lowerFirst.js +0 -7
  327. package/lib/shared/cli/lowerFirst.js.map +0 -1
  328. package/lib/shared/cli/outro.d.ts +0 -8
  329. package/lib/shared/cli/outro.js +0 -21
  330. package/lib/shared/cli/outro.js.map +0 -1
  331. package/lib/shared/cli/spinners.d.ts +0 -6
  332. package/lib/shared/cli/spinners.js +0 -50
  333. package/lib/shared/cli/spinners.js.map +0 -1
  334. package/lib/shared/cli/startLineWithDots.d.ts +0 -3
  335. package/lib/shared/cli/startLineWithDots.js +0 -32
  336. package/lib/shared/cli/startLineWithDots.js.map +0 -1
  337. package/lib/shared/codes.d.ts +0 -8
  338. package/lib/shared/codes.js +0 -9
  339. package/lib/shared/codes.js.map +0 -1
  340. package/lib/shared/createCleanupCommands.d.ts +0 -3
  341. package/lib/shared/createCleanupCommands.js +0 -13
  342. package/lib/shared/createCleanupCommands.js.map +0 -1
  343. package/lib/shared/doesRepositoryExist.d.ts +0 -9
  344. package/lib/shared/doesRepositoryExist.js +0 -18
  345. package/lib/shared/doesRepositoryExist.js.map +0 -1
  346. package/lib/shared/ensureGitRepository.d.ts +0 -3
  347. package/lib/shared/ensureGitRepository.js +0 -12
  348. package/lib/shared/ensureGitRepository.js.map +0 -1
  349. package/lib/shared/generateNextSteps.d.ts +0 -8
  350. package/lib/shared/generateNextSteps.js +0 -60
  351. package/lib/shared/generateNextSteps.js.map +0 -1
  352. package/lib/shared/getGitHubUserAsAllContributor.d.ts +0 -8
  353. package/lib/shared/getGitHubUserAsAllContributor.js +0 -43
  354. package/lib/shared/getGitHubUserAsAllContributor.js.map +0 -1
  355. package/lib/shared/isUsingCreateEngine.d.ts +0 -3
  356. package/lib/shared/isUsingCreateEngine.js +0 -7
  357. package/lib/shared/isUsingCreateEngine.js.map +0 -1
  358. package/lib/shared/options/args.d.ts +0 -273
  359. package/lib/shared/options/args.js +0 -335
  360. package/lib/shared/options/args.js.map +0 -1
  361. package/lib/shared/options/augmentOptionsWithExcludes.d.ts +0 -7
  362. package/lib/shared/options/augmentOptionsWithExcludes.js +0 -94
  363. package/lib/shared/options/augmentOptionsWithExcludes.js.map +0 -1
  364. package/lib/shared/options/createOptionDefaults/getUsageFromReadme.js.map +0 -1
  365. package/lib/shared/options/createOptionDefaults/index.d.ts +0 -28
  366. package/lib/shared/options/createOptionDefaults/index.js +0 -49
  367. package/lib/shared/options/createOptionDefaults/index.js.map +0 -1
  368. package/lib/shared/options/createOptionDefaults/parsePackageAuthor.js.map +0 -1
  369. package/lib/shared/options/createOptionDefaults/readDefaultsFromReadme.js.map +0 -1
  370. package/lib/shared/options/createOptionDefaults/readEmails.js.map +0 -1
  371. package/lib/shared/options/createOptionDefaults/readFunding.js.map +0 -1
  372. package/lib/shared/options/createOptionDefaults/readGitHubEmail.js.map +0 -1
  373. package/lib/shared/options/createOptionDefaults/readGuide.js.map +0 -1
  374. package/lib/shared/options/createRepositoryWithApi.d.ts +0 -10
  375. package/lib/shared/options/createRepositoryWithApi.js +0 -32
  376. package/lib/shared/options/createRepositoryWithApi.js.map +0 -1
  377. package/lib/shared/options/detectEmailRedundancy.d.ts +0 -8
  378. package/lib/shared/options/detectEmailRedundancy.js +0 -16
  379. package/lib/shared/options/detectEmailRedundancy.js.map +0 -1
  380. package/lib/shared/options/ensureRepositoryExists.d.ts +0 -13
  381. package/lib/shared/options/ensureRepositoryExists.js +0 -64
  382. package/lib/shared/options/ensureRepositoryExists.js.map +0 -1
  383. package/lib/shared/options/exclusionKeys.d.ts +0 -15
  384. package/lib/shared/options/exclusionKeys.js +0 -129
  385. package/lib/shared/options/exclusionKeys.js.map +0 -1
  386. package/lib/shared/options/getBase.d.ts +0 -7
  387. package/lib/shared/options/getBase.js +0 -27
  388. package/lib/shared/options/getBase.js.map +0 -1
  389. package/lib/shared/options/getPrefillOrPromptedOption.d.ts +0 -16
  390. package/lib/shared/options/getPrefillOrPromptedOption.js +0 -37
  391. package/lib/shared/options/getPrefillOrPromptedOption.js.map +0 -1
  392. package/lib/shared/options/logInferredOptions.d.ts +0 -8
  393. package/lib/shared/options/logInferredOptions.js +0 -30
  394. package/lib/shared/options/logInferredOptions.js.map +0 -1
  395. package/lib/shared/options/optionsSchema.d.ts +0 -218
  396. package/lib/shared/options/optionsSchema.js +0 -63
  397. package/lib/shared/options/optionsSchema.js.map +0 -1
  398. package/lib/shared/options/readLogoSizing.js.map +0 -1
  399. package/lib/shared/options/readOptions.d.ts +0 -21
  400. package/lib/shared/options/readOptions.js +0 -235
  401. package/lib/shared/options/readOptions.js.map +0 -1
  402. package/lib/shared/packages.d.ts +0 -8
  403. package/lib/shared/packages.js +0 -18
  404. package/lib/shared/packages.js.map +0 -1
  405. package/lib/shared/prompts.d.ts +0 -3
  406. package/lib/shared/prompts.js +0 -8
  407. package/lib/shared/prompts.js.map +0 -1
  408. package/lib/shared/readFileAsJson.js.map +0 -1
  409. package/lib/shared/readFileSafe.js.map +0 -1
  410. package/lib/shared/readFileSafeAsJson.d.ts +0 -3
  411. package/lib/shared/readFileSafeAsJson.js +0 -8
  412. package/lib/shared/readFileSafeAsJson.js.map +0 -1
  413. package/lib/shared/runOrRestore.d.ts +0 -7
  414. package/lib/shared/runOrRestore.js +0 -37
  415. package/lib/shared/runOrRestore.js.map +0 -1
  416. package/lib/shared/tryCatchAsync.js.map +0 -1
  417. package/lib/shared/tryCatchLazyValueAsync.js.map +0 -1
  418. package/lib/shared/types.d.ts +0 -120
  419. package/lib/shared/types.js +0 -1
  420. package/lib/shared/types.js.map +0 -1
  421. package/lib/steps/addOwnerAsAllContributor.d.ts +0 -8
  422. package/lib/steps/addOwnerAsAllContributor.js +0 -43
  423. package/lib/steps/addOwnerAsAllContributor.js.map +0 -1
  424. package/lib/steps/addToolAllContributors.d.ts +0 -8
  425. package/lib/steps/addToolAllContributors.js +0 -12
  426. package/lib/steps/addToolAllContributors.js.map +0 -1
  427. package/lib/steps/clearChangelog.d.ts +0 -3
  428. package/lib/steps/clearChangelog.js +0 -12
  429. package/lib/steps/clearChangelog.js.map +0 -1
  430. package/lib/steps/clearLocalGitTags.d.ts +0 -3
  431. package/lib/steps/clearLocalGitTags.js +0 -9
  432. package/lib/steps/clearLocalGitTags.js.map +0 -1
  433. package/lib/steps/clearUnnecessaryFiles.d.ts +0 -3
  434. package/lib/steps/clearUnnecessaryFiles.js +0 -38
  435. package/lib/steps/clearUnnecessaryFiles.js.map +0 -1
  436. package/lib/steps/createJoshuaKGoldbergReplacement.d.ts +0 -11
  437. package/lib/steps/createJoshuaKGoldbergReplacement.js +0 -16
  438. package/lib/steps/createJoshuaKGoldbergReplacement.js.map +0 -1
  439. package/lib/steps/finalizeDependencies.d.ts +0 -7
  440. package/lib/steps/finalizeDependencies.js +0 -59
  441. package/lib/steps/finalizeDependencies.js.map +0 -1
  442. package/lib/steps/initializeGitHubRepository/index.d.ts +0 -8
  443. package/lib/steps/initializeGitHubRepository/index.js +0 -19
  444. package/lib/steps/initializeGitHubRepository/index.js.map +0 -1
  445. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.d.ts +0 -8
  446. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js +0 -67
  447. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js.map +0 -1
  448. package/lib/steps/initializeGitHubRepository/outcomeLabels.js.map +0 -1
  449. package/lib/steps/initializeGitRemote.d.ts +0 -8
  450. package/lib/steps/initializeGitRemote.js +0 -15
  451. package/lib/steps/initializeGitRemote.js.map +0 -1
  452. package/lib/steps/initializeRepositorySettings.d.ts +0 -9
  453. package/lib/steps/initializeRepositorySettings.js +0 -27
  454. package/lib/steps/initializeRepositorySettings.js.map +0 -1
  455. package/lib/steps/populateCSpellDictionary.d.ts +0 -3
  456. package/lib/steps/populateCSpellDictionary.js +0 -36
  457. package/lib/steps/populateCSpellDictionary.js.map +0 -1
  458. package/lib/steps/removeSetupScripts.d.ts +0 -3
  459. package/lib/steps/removeSetupScripts.js +0 -29
  460. package/lib/steps/removeSetupScripts.js.map +0 -1
  461. package/lib/steps/resetGitTags.d.ts +0 -3
  462. package/lib/steps/resetGitTags.js +0 -12
  463. package/lib/steps/resetGitTags.js.map +0 -1
  464. package/lib/steps/runCleanup.d.ts +0 -7
  465. package/lib/steps/runCleanup.js +0 -37
  466. package/lib/steps/runCleanup.js.map +0 -1
  467. package/lib/steps/uninstallPackages.d.ts +0 -3
  468. package/lib/steps/uninstallPackages.js +0 -64
  469. package/lib/steps/uninstallPackages.js.map +0 -1
  470. package/lib/steps/updateAllContributorsTable.d.ts +0 -7
  471. package/lib/steps/updateAllContributorsTable.js +0 -24
  472. package/lib/steps/updateAllContributorsTable.js.map +0 -1
  473. package/lib/steps/updateLocalFiles.d.ts +0 -7
  474. package/lib/steps/updateLocalFiles.js +0 -84
  475. package/lib/steps/updateLocalFiles.js.map +0 -1
  476. package/lib/steps/updateReadme.d.ts +0 -10
  477. package/lib/steps/updateReadme.js +0 -27
  478. package/lib/steps/updateReadme.js.map +0 -1
  479. package/lib/steps/writeReadme/findExistingBadges.d.ts +0 -4
  480. package/lib/steps/writeReadme/findExistingBadges.js +0 -28
  481. package/lib/steps/writeReadme/findExistingBadges.js.map +0 -1
  482. package/lib/steps/writeReadme/findIntroSectionClose.d.ts +0 -3
  483. package/lib/steps/writeReadme/findIntroSectionClose.js +0 -22
  484. package/lib/steps/writeReadme/findIntroSectionClose.js.map +0 -1
  485. package/lib/steps/writeReadme/generateTopContent.d.ts +0 -7
  486. package/lib/steps/writeReadme/generateTopContent.js +0 -70
  487. package/lib/steps/writeReadme/generateTopContent.js.map +0 -1
  488. package/lib/steps/writeReadme/index.d.ts +0 -7
  489. package/lib/steps/writeReadme/index.js +0 -57
  490. package/lib/steps/writeReadme/index.js.map +0 -1
  491. package/lib/steps/writing/creation/createCSpellConfig.d.ts +0 -7
  492. package/lib/steps/writing/creation/createCSpellConfig.js +0 -27
  493. package/lib/steps/writing/creation/createCSpellConfig.js.map +0 -1
  494. package/lib/steps/writing/creation/createDotGitignore.d.ts +0 -7
  495. package/lib/steps/writing/creation/createDotGitignore.js +0 -14
  496. package/lib/steps/writing/creation/createDotGitignore.js.map +0 -1
  497. package/lib/steps/writing/creation/createESLintConfig.d.ts +0 -7
  498. package/lib/steps/writing/creation/createESLintConfig.js +0 -105
  499. package/lib/steps/writing/creation/createESLintConfig.js.map +0 -1
  500. package/lib/steps/writing/creation/createKnipConfig.d.ts +0 -3
  501. package/lib/steps/writing/creation/createKnipConfig.js +0 -20
  502. package/lib/steps/writing/creation/createKnipConfig.js.map +0 -1
  503. package/lib/steps/writing/creation/createTsupConfig.d.ts +0 -7
  504. package/lib/steps/writing/creation/createTsupConfig.js +0 -19
  505. package/lib/steps/writing/creation/createTsupConfig.js.map +0 -1
  506. package/lib/steps/writing/creation/dotGitHub/actions.d.ts +0 -7
  507. package/lib/steps/writing/creation/dotGitHub/actions.js +0 -32
  508. package/lib/steps/writing/creation/dotGitHub/actions.js.map +0 -1
  509. package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.d.ts +0 -7
  510. package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.js +0 -154
  511. package/lib/steps/writing/creation/dotGitHub/createDevelopment/index.js.map +0 -1
  512. package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.d.ts +0 -3
  513. package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.js +0 -24
  514. package/lib/steps/writing/creation/dotGitHub/createDevelopment/splitIntoSections.js.map +0 -1
  515. package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.d.ts +0 -16
  516. package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js +0 -292
  517. package/lib/steps/writing/creation/dotGitHub/createDotGitHubFiles.js.map +0 -1
  518. package/lib/steps/writing/creation/dotGitHub/createMultiWorkflowFile.js.map +0 -1
  519. package/lib/steps/writing/creation/dotGitHub/createSoloWorkflowFile.js.map +0 -1
  520. package/lib/steps/writing/creation/dotGitHub/createWorkflows.d.ts +0 -15
  521. package/lib/steps/writing/creation/dotGitHub/createWorkflows.js +0 -237
  522. package/lib/steps/writing/creation/dotGitHub/createWorkflows.js.map +0 -1
  523. package/lib/steps/writing/creation/dotGitHub/formatWorkflowYaml.js.map +0 -1
  524. package/lib/steps/writing/creation/dotGitHub/index.d.ts +0 -36
  525. package/lib/steps/writing/creation/dotGitHub/index.js +0 -16
  526. package/lib/steps/writing/creation/dotGitHub/index.js.map +0 -1
  527. package/lib/steps/writing/creation/dotGitHub/issueTemplate.d.ts +0 -12
  528. package/lib/steps/writing/creation/dotGitHub/issueTemplate.js +0 -198
  529. package/lib/steps/writing/creation/dotGitHub/issueTemplate.js.map +0 -1
  530. package/lib/steps/writing/creation/dotHusky.d.ts +0 -6
  531. package/lib/steps/writing/creation/dotHusky.js +0 -11
  532. package/lib/steps/writing/creation/dotHusky.js.map +0 -1
  533. package/lib/steps/writing/creation/dotVSCode.d.ts +0 -12
  534. package/lib/steps/writing/creation/dotVSCode.js +0 -79
  535. package/lib/steps/writing/creation/dotVSCode.js.map +0 -1
  536. package/lib/steps/writing/creation/formatters/formatIgnoreFile.js.map +0 -1
  537. package/lib/steps/writing/creation/formatters/formatJson.d.ts +0 -3
  538. package/lib/steps/writing/creation/formatters/formatJson.js +0 -18
  539. package/lib/steps/writing/creation/formatters/formatJson.js.map +0 -1
  540. package/lib/steps/writing/creation/formatters/formatTypeScript.d.ts +0 -3
  541. package/lib/steps/writing/creation/formatters/formatTypeScript.js +0 -8
  542. package/lib/steps/writing/creation/formatters/formatTypeScript.js.map +0 -1
  543. package/lib/steps/writing/creation/formatters/formatYaml.js.map +0 -1
  544. package/lib/steps/writing/creation/index.d.ts +0 -9
  545. package/lib/steps/writing/creation/index.js +0 -78
  546. package/lib/steps/writing/creation/index.js.map +0 -1
  547. package/lib/steps/writing/creation/rootFiles.d.ts +0 -24
  548. package/lib/steps/writing/creation/rootFiles.js +0 -152
  549. package/lib/steps/writing/creation/rootFiles.js.map +0 -1
  550. package/lib/steps/writing/creation/src.d.ts +0 -12
  551. package/lib/steps/writing/creation/src.js +0 -90
  552. package/lib/steps/writing/creation/src.js.map +0 -1
  553. package/lib/steps/writing/creation/writeAllContributorsRC.d.ts +0 -7
  554. package/lib/steps/writing/creation/writeAllContributorsRC.js +0 -18
  555. package/lib/steps/writing/creation/writeAllContributorsRC.js.map +0 -1
  556. package/lib/steps/writing/creation/writePackageJson.d.ts +0 -7
  557. package/lib/steps/writing/creation/writePackageJson.js +0 -118
  558. package/lib/steps/writing/creation/writePackageJson.js.map +0 -1
  559. package/lib/steps/writing/types.d.ts +0 -5
  560. package/lib/steps/writing/types.js +0 -1
  561. package/lib/steps/writing/types.js.map +0 -1
  562. package/lib/steps/writing/writeStructure.d.ts +0 -7
  563. package/lib/steps/writing/writeStructure.js +0 -22
  564. package/lib/steps/writing/writeStructure.js.map +0 -1
  565. package/lib/steps/writing/writeStructureWorker.d.ts +0 -5
  566. package/lib/steps/writing/writeStructureWorker.js +0 -47
  567. package/lib/steps/writing/writeStructureWorker.js.map +0 -1
  568. /package/lib/{next/blocks → blocks}/blockAreTheTypesWrong.js +0 -0
  569. /package/lib/{next/blocks → blocks}/blockESLintComments.js +0 -0
  570. /package/lib/{next/blocks → blocks}/blockESLintJSDoc.js +0 -0
  571. /package/lib/{next/blocks → blocks}/blockESLintJSONC.js +0 -0
  572. /package/lib/{next/blocks → blocks}/blockESLintMarkdown.js +0 -0
  573. /package/lib/{next/blocks → blocks}/blockESLintMoreStyling.js +0 -0
  574. /package/lib/{next/blocks → blocks}/blockESLintPackageJson.js +0 -0
  575. /package/lib/{next/blocks → blocks}/blockESLintPerfectionist.js +0 -0
  576. /package/lib/{next/blocks → blocks}/blockESLintRegexp.js +0 -0
  577. /package/lib/{next/blocks → blocks}/blockESLintYML.js +0 -0
  578. /package/lib/{next/blocks → blocks}/blockExampleFiles.js +0 -0
  579. /package/lib/{next/blocks → blocks}/blockGitHubApps.js +0 -0
  580. /package/lib/{next/blocks → blocks}/blockGitHubPRTemplate.js +0 -0
  581. /package/lib/{next/blocks → blocks}/blockMITLicense.js +0 -0
  582. /package/lib/{next/blocks → blocks}/blockNvmrc.js +0 -0
  583. /package/lib/{next/blocks → blocks}/blockPnpmDedupe.js +0 -0
  584. /package/lib/{next/blocks → blocks}/blockPrettierPluginCurly.js +0 -0
  585. /package/lib/{next/blocks → blocks}/blockPrettierPluginPackageJson.js +0 -0
  586. /package/lib/{next/blocks → blocks}/blockPrettierPluginSh.js +0 -0
  587. /package/lib/{next/blocks → blocks}/blockRepositorySecrets.js +0 -0
  588. /package/lib/{next/blocks → blocks}/blockRepositorySettings.js +0 -0
  589. /package/lib/{next/blocks → blocks}/blockSecurityDocs.js +0 -0
  590. /package/lib/{next/blocks → blocks}/blockVSCode.js +0 -0
  591. /package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createMultiWorkflowFile.d.ts +0 -0
  592. /package/lib/{steps/writing/creation/dotGitHub → blocks/files}/createSoloWorkflowFile.d.ts +0 -0
  593. /package/lib/{steps/writing/creation/formatters → blocks/files}/formatIgnoreFile.d.ts +0 -0
  594. /package/lib/{steps/writing/creation/formatters → blocks/files}/formatIgnoreFile.js +0 -0
  595. /package/lib/{steps/writing/creation/dotGitHub → blocks/files}/formatWorkflowYaml.d.ts +0 -0
  596. /package/lib/{steps/writing/creation/formatters → blocks/files}/formatYaml.d.ts +0 -0
  597. /package/lib/{next/blocks → blocks}/options.fakes.d.ts +0 -0
  598. /package/lib/{next/blocks → blocks}/options.fakes.js +0 -0
  599. /package/lib/{steps/initializeGitHubRepository → blocks}/outcomeLabels.d.ts +0 -0
  600. /package/lib/{next/blocks → blocks}/phases.d.ts +0 -0
  601. /package/lib/{next/blocks → blocks}/phases.js +0 -0
  602. /package/lib/{shared/options/createOptionDefaults → options}/getUsageFromReadme.d.ts +0 -0
  603. /package/lib/{shared/options/createOptionDefaults → options}/getUsageFromReadme.js +0 -0
  604. /package/lib/{shared/options/createOptionDefaults → options}/parsePackageAuthor.js +0 -0
  605. /package/lib/{next → options}/readDescriptionFromReadme.d.ts +0 -0
  606. /package/lib/{next → options}/readDescriptionFromReadme.js +0 -0
  607. /package/lib/{next → options}/readDocumentation.d.ts +0 -0
  608. /package/lib/{shared/options/createOptionDefaults → options}/readEmails.d.ts +0 -0
  609. /package/lib/{shared → options}/readFileAsJson.d.ts +0 -0
  610. /package/lib/{shared → options}/readFileAsJson.js +0 -0
  611. /package/lib/{shared → options}/readFileSafe.d.ts +0 -0
  612. /package/lib/{shared → options}/readFileSafe.js +0 -0
  613. /package/lib/{shared/options/createOptionDefaults → options}/readFunding.d.ts +0 -0
  614. /package/lib/{shared/options/createOptionDefaults → options}/readGitHubEmail.d.ts +0 -0
  615. /package/lib/{shared/options/createOptionDefaults → options}/readGuide.d.ts +0 -0
  616. /package/lib/{shared/options → options}/readLogoSizing.d.ts +0 -0
  617. /package/lib/{next/utils → utils}/resolveBin.d.ts +0 -0
  618. /package/lib/{next/utils → utils}/resolveBin.js +0 -0
  619. /package/lib/{next/utils → utils}/sortObject.d.ts +0 -0
  620. /package/lib/{next/utils → utils}/sortObject.js +0 -0
  621. /package/lib/{next/utils → utils}/swallowError.d.ts +0 -0
  622. /package/lib/{next/utils → utils}/swallowError.js +0 -0
  623. /package/lib/{shared → utils}/tryCatchAsync.d.ts +0 -0
  624. /package/lib/{shared → utils}/tryCatchAsync.js +0 -0
  625. /package/lib/{shared → utils}/tryCatchLazyValueAsync.d.ts +0 -0
  626. /package/lib/{shared → utils}/tryCatchLazyValueAsync.js +0 -0
@@ -1,50 +0,0 @@
1
- import * as prompts from "@clack/prompts";
2
- import chalk from "chalk";
3
- import readline from "readline";
4
- import { logLine, logNewSection, makeLine } from "./lines.js";
5
- import { lowerFirst } from "./lowerFirst.js";
6
- import { startLineWithDots } from "./startLineWithDots.js";
7
- const s = prompts.spinner();
8
- async function withSpinner(label, task) {
9
- s.start(`${label}...`);
10
- try {
11
- const result = await task();
12
- s.stop(chalk.green(`\u2705 Passed ${lowerFirst(label)}.`));
13
- return result;
14
- } catch (error) {
15
- s.stop(chalk.red(`\u274C Error ${lowerFirst(label)}.`));
16
- throw new Error(`Failed ${lowerFirst(label)}`, { cause: error });
17
- }
18
- }
19
- async function withSpinners(label, tasks) {
20
- logNewSection(`${label}...`);
21
- let currentLabel;
22
- let lastLogged;
23
- for (const [label2, run] of tasks) {
24
- currentLabel = label2;
25
- const line = makeLine(chalk.gray(` - ${label2}`));
26
- const stopWriting = startLineWithDots(line);
27
- try {
28
- await run();
29
- } catch (error) {
30
- const descriptor = `${lowerFirst(label2)} > ${lowerFirst(currentLabel)}`;
31
- logLine(chalk.red(`\u274C Error ${descriptor}.`));
32
- throw new Error(`Failed ${descriptor}`, { cause: error });
33
- } finally {
34
- const lineLength = stopWriting();
35
- readline.clearLine(process.stdout, -1);
36
- readline.moveCursor(process.stdout, -lineLength, 0);
37
- }
38
- lastLogged = chalk.gray(`${line} \u2714\uFE0F
39
- `);
40
- process.stdout.write(lastLogged);
41
- }
42
- readline.moveCursor(process.stdout, -lastLogged.length, -tasks.length - 2);
43
- readline.clearScreenDown(process.stdout);
44
- logNewSection(chalk.green(`\u2705 Passed ${lowerFirst(label)}.`));
45
- }
46
- export {
47
- withSpinner,
48
- withSpinners
49
- };
50
- //# sourceMappingURL=spinners.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/shared/cli/spinners.ts"],"sourcesContent":["import * as prompts from \"@clack/prompts\";\nimport chalk from \"chalk\";\nimport readline from \"readline\";\n\nimport { logLine, logNewSection, makeLine } from \"./lines.js\";\nimport { lowerFirst } from \"./lowerFirst.js\";\nimport { startLineWithDots } from \"./startLineWithDots.js\";\n\nconst s = prompts.spinner();\n\nexport type LabeledSpinnerTask<Return> = [string, SpinnerTask<Return>];\n\nexport type SpinnerTask<Return> = () => Promise<Return>;\n\nexport async function withSpinner<Return>(\n\tlabel: string,\n\ttask: SpinnerTask<Return>,\n) {\n\ts.start(`${label}...`);\n\n\ttry {\n\t\tconst result = await task();\n\n\t\ts.stop(chalk.green(`✅ Passed ${lowerFirst(label)}.`));\n\n\t\treturn result;\n\t} catch (error) {\n\t\ts.stop(chalk.red(`❌ Error ${lowerFirst(label)}.`));\n\n\t\tthrow new Error(`Failed ${lowerFirst(label)}`, { cause: error });\n\t}\n}\n\nexport async function withSpinners(\n\tlabel: string,\n\ttasks: LabeledSpinnerTask<void>[],\n) {\n\tlogNewSection(`${label}...`);\n\n\tlet currentLabel!: string;\n\tlet lastLogged!: string;\n\n\tfor (const [label, run] of tasks) {\n\t\tcurrentLabel = label;\n\n\t\tconst line = makeLine(chalk.gray(` - ${label}`));\n\t\tconst stopWriting = startLineWithDots(line);\n\n\t\ttry {\n\t\t\tawait run();\n\t\t} catch (error) {\n\t\t\tconst descriptor = `${lowerFirst(label)} > ${lowerFirst(currentLabel)}`;\n\n\t\t\tlogLine(chalk.red(`❌ Error ${descriptor}.`));\n\n\t\t\tthrow new Error(`Failed ${descriptor}`, { cause: error });\n\t\t} finally {\n\t\t\tconst lineLength = stopWriting();\n\t\t\treadline.clearLine(process.stdout, -1);\n\t\t\treadline.moveCursor(process.stdout, -lineLength, 0);\n\t\t}\n\n\t\tlastLogged = chalk.gray(`${line} ✔️\\n`);\n\n\t\tprocess.stdout.write(lastLogged);\n\t}\n\n\treadline.moveCursor(process.stdout, -lastLogged.length, -tasks.length - 2);\n\treadline.clearScreenDown(process.stdout);\n\n\tlogNewSection(chalk.green(`✅ Passed ${lowerFirst(label)}.`));\n}\n"],"mappings":"AAAA,YAAY,aAAa;AACzB,OAAO,WAAW;AAClB,OAAO,cAAc;AAErB,SAAS,SAAS,eAAe,gBAAgB;AACjD,SAAS,kBAAkB;AAC3B,SAAS,yBAAyB;AAElC,MAAM,IAAI,QAAQ,QAAQ;AAM1B,eAAsB,YACrB,OACA,MACC;AACD,IAAE,MAAM,GAAG,KAAK,KAAK;AAErB,MAAI;AACH,UAAM,SAAS,MAAM,KAAK;AAE1B,MAAE,KAAK,MAAM,MAAM,iBAAY,WAAW,KAAK,CAAC,GAAG,CAAC;AAEpD,WAAO;AAAA,EACR,SAAS,OAAO;AACf,MAAE,KAAK,MAAM,IAAI,gBAAW,WAAW,KAAK,CAAC,GAAG,CAAC;AAEjD,UAAM,IAAI,MAAM,UAAU,WAAW,KAAK,CAAC,IAAI,EAAE,OAAO,MAAM,CAAC;AAAA,EAChE;AACD;AAEA,eAAsB,aACrB,OACA,OACC;AACD,gBAAc,GAAG,KAAK,KAAK;AAE3B,MAAI;AACJ,MAAI;AAEJ,aAAW,CAACA,QAAO,GAAG,KAAK,OAAO;AACjC,mBAAeA;AAEf,UAAM,OAAO,SAAS,MAAM,KAAK,MAAMA,MAAK,EAAE,CAAC;AAC/C,UAAM,cAAc,kBAAkB,IAAI;AAE1C,QAAI;AACH,YAAM,IAAI;AAAA,IACX,SAAS,OAAO;AACf,YAAM,aAAa,GAAG,WAAWA,MAAK,CAAC,MAAM,WAAW,YAAY,CAAC;AAErE,cAAQ,MAAM,IAAI,gBAAW,UAAU,GAAG,CAAC;AAE3C,YAAM,IAAI,MAAM,UAAU,UAAU,IAAI,EAAE,OAAO,MAAM,CAAC;AAAA,IACzD,UAAE;AACD,YAAM,aAAa,YAAY;AAC/B,eAAS,UAAU,QAAQ,QAAQ,EAAE;AACrC,eAAS,WAAW,QAAQ,QAAQ,CAAC,YAAY,CAAC;AAAA,IACnD;AAEA,iBAAa,MAAM,KAAK,GAAG,IAAI;AAAA,CAAO;AAEtC,YAAQ,OAAO,MAAM,UAAU;AAAA,EAChC;AAEA,WAAS,WAAW,QAAQ,QAAQ,CAAC,WAAW,QAAQ,CAAC,MAAM,SAAS,CAAC;AACzE,WAAS,gBAAgB,QAAQ,MAAM;AAEvC,gBAAc,MAAM,MAAM,iBAAY,WAAW,KAAK,CAAC,GAAG,CAAC;AAC5D;","names":["label"]}
@@ -1,3 +0,0 @@
1
- declare function startLineWithDots(line: string): () => number;
2
-
3
- export { startLineWithDots };
@@ -1,32 +0,0 @@
1
- import readline from "readline";
2
- function startLineWithDots(line) {
3
- const timer = [setTimeout(tick, 500)];
4
- let dots = 0;
5
- let lastLogged;
6
- function clearLine() {
7
- readline.clearLine(process.stdout, -1);
8
- readline.moveCursor(process.stdout, -lastLogged.length, 0);
9
- }
10
- function writeLine() {
11
- dots = (dots + 1) % 4;
12
- const toLog = `${line}${".".repeat(dots)}`;
13
- process.stdout.write(toLog);
14
- lastLogged = toLog;
15
- return toLog;
16
- }
17
- function tick() {
18
- clearLine();
19
- writeLine();
20
- timer[0] = setTimeout(tick, 500);
21
- }
22
- writeLine();
23
- return () => {
24
- clearLine();
25
- clearInterval(timer[0]);
26
- return lastLogged.length;
27
- };
28
- }
29
- export {
30
- startLineWithDots
31
- };
32
- //# sourceMappingURL=startLineWithDots.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/shared/cli/startLineWithDots.ts"],"sourcesContent":["import readline from \"readline\";\n\nexport function startLineWithDots(line: string) {\n\tconst timer = [setTimeout(tick, 500)];\n\tlet dots = 0;\n\tlet lastLogged!: string;\n\n\tfunction clearLine() {\n\t\treadline.clearLine(process.stdout, -1);\n\t\treadline.moveCursor(process.stdout, -lastLogged.length, 0);\n\t}\n\n\tfunction writeLine() {\n\t\tdots = (dots + 1) % 4;\n\n\t\tconst toLog = `${line}${\".\".repeat(dots)}`;\n\n\t\tprocess.stdout.write(toLog);\n\n\t\tlastLogged = toLog;\n\n\t\treturn toLog;\n\t}\n\n\tfunction tick() {\n\t\tclearLine();\n\t\twriteLine();\n\t\ttimer[0] = setTimeout(tick, 500);\n\t}\n\n\twriteLine();\n\n\treturn () => {\n\t\tclearLine();\n\t\tclearInterval(timer[0]);\n\t\treturn lastLogged.length;\n\t};\n}\n"],"mappings":"AAAA,OAAO,cAAc;AAEd,SAAS,kBAAkB,MAAc;AAC/C,QAAM,QAAQ,CAAC,WAAW,MAAM,GAAG,CAAC;AACpC,MAAI,OAAO;AACX,MAAI;AAEJ,WAAS,YAAY;AACpB,aAAS,UAAU,QAAQ,QAAQ,EAAE;AACrC,aAAS,WAAW,QAAQ,QAAQ,CAAC,WAAW,QAAQ,CAAC;AAAA,EAC1D;AAEA,WAAS,YAAY;AACpB,YAAQ,OAAO,KAAK;AAEpB,UAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,OAAO,IAAI,CAAC;AAExC,YAAQ,OAAO,MAAM,KAAK;AAE1B,iBAAa;AAEb,WAAO;AAAA,EACR;AAEA,WAAS,OAAO;AACf,cAAU;AACV,cAAU;AACV,UAAM,CAAC,IAAI,WAAW,MAAM,GAAG;AAAA,EAChC;AAEA,YAAU;AAEV,SAAO,MAAM;AACZ,cAAU;AACV,kBAAc,MAAM,CAAC,CAAC;AACtB,WAAO,WAAW;AAAA,EACnB;AACD;","names":[]}
@@ -1,8 +0,0 @@
1
- declare const StatusCodes: {
2
- readonly Cancelled: 2;
3
- readonly Failure: 1;
4
- readonly Success: 0;
5
- };
6
- type StatusCode = (typeof StatusCodes)[keyof typeof StatusCodes];
7
-
8
- export { type StatusCode, StatusCodes };
@@ -1,9 +0,0 @@
1
- const StatusCodes = {
2
- Cancelled: 2,
3
- Failure: 1,
4
- Success: 0
5
- };
6
- export {
7
- StatusCodes
8
- };
9
- //# sourceMappingURL=codes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/shared/codes.ts"],"sourcesContent":["export const StatusCodes = {\n\tCancelled: 2,\n\tFailure: 1,\n\tSuccess: 0,\n} as const;\n\nexport type StatusCode = (typeof StatusCodes)[keyof typeof StatusCodes];\n"],"mappings":"AAAO,MAAM,cAAc;AAAA,EAC1B,WAAW;AAAA,EACX,SAAS;AAAA,EACT,SAAS;AACV;","names":[]}
@@ -1,3 +0,0 @@
1
- declare function createCleanupCommands(bin: string | undefined, ...prependedCommands: string[]): string[];
2
-
3
- export { createCleanupCommands };
@@ -1,13 +0,0 @@
1
- function createCleanupCommands(bin, ...prependedCommands) {
2
- return [
3
- ...prependedCommands,
4
- // n/no-missing-import rightfully reports on a missing the bin .js file
5
- ...bin ? ["pnpm build"] : [],
6
- "pnpm lint --fix",
7
- "pnpm format --write"
8
- ];
9
- }
10
- export {
11
- createCleanupCommands
12
- };
13
- //# sourceMappingURL=createCleanupCommands.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/shared/createCleanupCommands.ts"],"sourcesContent":["export function createCleanupCommands(\n\tbin: string | undefined,\n\t...prependedCommands: string[]\n) {\n\treturn [\n\t\t...prependedCommands,\n\t\t// n/no-missing-import rightfully reports on a missing the bin .js file\n\t\t...(bin ? [\"pnpm build\"] : []),\n\t\t\"pnpm lint --fix\",\n\t\t\"pnpm format --write\",\n\t];\n}\n"],"mappings":"AAAO,SAAS,sBACf,QACG,mBACF;AACD,SAAO;AAAA,IACN,GAAG;AAAA;AAAA,IAEH,GAAI,MAAM,CAAC,YAAY,IAAI,CAAC;AAAA,IAC5B;AAAA,IACA;AAAA,EACD;AACD;","names":[]}
@@ -1,9 +0,0 @@
1
- import { Octokit } from 'octokit';
2
-
3
- interface DoesRepositoryExistOptions {
4
- owner: string;
5
- repository: string;
6
- }
7
- declare function doesRepositoryExist(octokit: Octokit, options: DoesRepositoryExistOptions): Promise<boolean>;
8
-
9
- export { type DoesRepositoryExistOptions, doesRepositoryExist };
@@ -1,18 +0,0 @@
1
- async function doesRepositoryExist(octokit, options) {
2
- try {
3
- await octokit.rest.repos.get({
4
- owner: options.owner,
5
- repo: options.repository
6
- });
7
- return true;
8
- } catch (error) {
9
- if (error.status !== 404) {
10
- throw error;
11
- }
12
- return false;
13
- }
14
- }
15
- export {
16
- doesRepositoryExist
17
- };
18
- //# sourceMappingURL=doesRepositoryExist.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/shared/doesRepositoryExist.ts"],"sourcesContent":["import { Octokit, RequestError } from \"octokit\";\n\nexport interface DoesRepositoryExistOptions {\n\towner: string;\n\trepository: string;\n}\n\nexport async function doesRepositoryExist(\n\toctokit: Octokit,\n\toptions: DoesRepositoryExistOptions,\n) {\n\t// Because the Octokit SDK throws on 404s (😡),\n\t// we try/catch to check whether the repo exists.\n\ttry {\n\t\tawait octokit.rest.repos.get({\n\t\t\towner: options.owner,\n\t\t\trepo: options.repository,\n\t\t});\n\t\treturn true;\n\t} catch (error) {\n\t\tif ((error as RequestError).status !== 404) {\n\t\t\tthrow error;\n\t\t}\n\n\t\treturn false;\n\t}\n}\n"],"mappings":"AAOA,eAAsB,oBACrB,SACA,SACC;AAGD,MAAI;AACH,UAAM,QAAQ,KAAK,MAAM,IAAI;AAAA,MAC5B,OAAO,QAAQ;AAAA,MACf,MAAM,QAAQ;AAAA,IACf,CAAC;AACD,WAAO;AAAA,EACR,SAAS,OAAO;AACf,QAAK,MAAuB,WAAW,KAAK;AAC3C,YAAM;AAAA,IACP;AAEA,WAAO;AAAA,EACR;AACD;","names":[]}
@@ -1,3 +0,0 @@
1
- declare function ensureGitRepository(): Promise<void>;
2
-
3
- export { ensureGitRepository };
@@ -1,12 +0,0 @@
1
- import { $ } from "execa";
2
- async function ensureGitRepository() {
3
- try {
4
- await $`git status`;
5
- } catch {
6
- await $`git init`;
7
- }
8
- }
9
- export {
10
- ensureGitRepository
11
- };
12
- //# sourceMappingURL=ensureGitRepository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/shared/ensureGitRepository.ts"],"sourcesContent":["import { $ } from \"execa\";\n\nexport async function ensureGitRepository() {\n\ttry {\n\t\tawait $`git status`;\n\t} catch {\n\t\tawait $`git init`;\n\t}\n}\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,eAAsB,sBAAsB;AAC3C,MAAI;AACH,UAAM;AAAA,EACP,QAAQ;AACP,UAAM;AAAA,EACP;AACD;","names":[]}
@@ -1,8 +0,0 @@
1
- import { OutroGroup } from './cli/outro.js';
2
- import { Options } from './types.js';
3
- import 'zod';
4
- import './codes.js';
5
-
6
- declare function generateNextSteps(options: Options): OutroGroup[];
7
-
8
- export { generateNextSteps };
@@ -1,60 +0,0 @@
1
- function generateNextSteps(options) {
2
- const lines = [
3
- joinedMessage(
4
- "enable the",
5
- [
6
- options.excludeTests || ["Codecov", "https://github.com/apps/codecov"],
7
- options.excludeRenovate || [
8
- "Renovate",
9
- "https://github.com/apps/renovate"
10
- ]
11
- ],
12
- "GitHub app"
13
- ),
14
- joinedMessage(
15
- "populate the",
16
- [
17
- options.excludeAllContributors && options.excludeReleases || [
18
- "ACCESS_TOKEN",
19
- "a GitHub PAT with repo and workflow permissions"
20
- ],
21
- options.excludeReleases || [
22
- "NPM_TOKEN",
23
- "an npm access token with automation permissions"
24
- ]
25
- ],
26
- "secret"
27
- )
28
- ].filter((line) => !!line);
29
- switch (lines.length) {
30
- case 0:
31
- return [];
32
- case 1:
33
- return [{ label: `Be sure to ${lines[0]}` }];
34
- default:
35
- return [
36
- {
37
- label: "Be sure to:",
38
- lines: lines.map((line) => `- ${line}`)
39
- }
40
- ];
41
- }
42
- }
43
- const itemBreak = "\n - ";
44
- function joinedMessage(prefix, entries, suffix) {
45
- const realEntries = entries.filter(
46
- (entry) => entry !== true
47
- );
48
- switch (realEntries.length) {
49
- case 0:
50
- return void 0;
51
- case 1:
52
- return `${prefix} ${realEntries[0][0]} ${suffix} (${realEntries[0][1]}).`;
53
- default:
54
- return `${prefix} ${suffix}s: ${itemBreak}${realEntries.map((entry) => `${entry[0]} (${entry[1]})`).join(itemBreak)}`;
55
- }
56
- }
57
- export {
58
- generateNextSteps
59
- };
60
- //# sourceMappingURL=generateNextSteps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/shared/generateNextSteps.ts"],"sourcesContent":["import { OutroGroup } from \"./cli/outro.js\";\nimport { Options } from \"./types.js\";\n\nexport function generateNextSteps(options: Options): OutroGroup[] {\n\tconst lines = [\n\t\tjoinedMessage(\n\t\t\t\"enable the\",\n\t\t\t[\n\t\t\t\toptions.excludeTests || [\"Codecov\", \"https://github.com/apps/codecov\"],\n\t\t\t\toptions.excludeRenovate || [\n\t\t\t\t\t\"Renovate\",\n\t\t\t\t\t\"https://github.com/apps/renovate\",\n\t\t\t\t],\n\t\t\t],\n\t\t\t\"GitHub app\",\n\t\t),\n\t\tjoinedMessage(\n\t\t\t\"populate the\",\n\t\t\t[\n\t\t\t\t(options.excludeAllContributors && options.excludeReleases) || [\n\t\t\t\t\t\"ACCESS_TOKEN\",\n\t\t\t\t\t\"a GitHub PAT with repo and workflow permissions\",\n\t\t\t\t],\n\t\t\t\toptions.excludeReleases || [\n\t\t\t\t\t\"NPM_TOKEN\",\n\t\t\t\t\t\"an npm access token with automation permissions\",\n\t\t\t\t],\n\t\t\t],\n\t\t\t\"secret\",\n\t\t),\n\t].filter((line): line is string => !!line);\n\n\tswitch (lines.length) {\n\t\tcase 0:\n\t\t\treturn [];\n\t\tcase 1:\n\t\t\treturn [{ label: `Be sure to ${lines[0]}` }];\n\t\tdefault:\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tlabel: \"Be sure to:\",\n\t\t\t\t\tlines: lines.map((line) => `- ${line}`),\n\t\t\t\t},\n\t\t\t];\n\t}\n}\n\nconst itemBreak = \"\\n - \";\n\nfunction joinedMessage(\n\tprefix: string,\n\tentries: ([string, string] | true)[],\n\tsuffix: string,\n) {\n\tconst realEntries = entries.filter(\n\t\t(entry): entry is [string, string] => entry !== true,\n\t);\n\n\tswitch (realEntries.length) {\n\t\tcase 0:\n\t\t\treturn undefined;\n\t\tcase 1:\n\t\t\treturn `${prefix} ${realEntries[0][0]} ${suffix} (${realEntries[0][1]}).`;\n\t\tdefault:\n\t\t\treturn `${prefix} ${suffix}s: ${itemBreak}${realEntries\n\t\t\t\t.map((entry) => `${entry[0]} (${entry[1]})`)\n\t\t\t\t.join(itemBreak)}`;\n\t}\n}\n"],"mappings":"AAGO,SAAS,kBAAkB,SAAgC;AACjE,QAAM,QAAQ;AAAA,IACb;AAAA,MACC;AAAA,MACA;AAAA,QACC,QAAQ,gBAAgB,CAAC,WAAW,iCAAiC;AAAA,QACrE,QAAQ,mBAAmB;AAAA,UAC1B;AAAA,UACA;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,IACD;AAAA,IACA;AAAA,MACC;AAAA,MACA;AAAA,QACE,QAAQ,0BAA0B,QAAQ,mBAAoB;AAAA,UAC9D;AAAA,UACA;AAAA,QACD;AAAA,QACA,QAAQ,mBAAmB;AAAA,UAC1B;AAAA,UACA;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,IACD;AAAA,EACD,EAAE,OAAO,CAAC,SAAyB,CAAC,CAAC,IAAI;AAEzC,UAAQ,MAAM,QAAQ;AAAA,IACrB,KAAK;AACJ,aAAO,CAAC;AAAA,IACT,KAAK;AACJ,aAAO,CAAC,EAAE,OAAO,cAAc,MAAM,CAAC,CAAC,GAAG,CAAC;AAAA,IAC5C;AACC,aAAO;AAAA,QACN;AAAA,UACC,OAAO;AAAA,UACP,OAAO,MAAM,IAAI,CAAC,SAAS,KAAK,IAAI,EAAE;AAAA,QACvC;AAAA,MACD;AAAA,EACF;AACD;AAEA,MAAM,YAAY;AAElB,SAAS,cACR,QACA,SACA,QACC;AACD,QAAM,cAAc,QAAQ;AAAA,IAC3B,CAAC,UAAqC,UAAU;AAAA,EACjD;AAEA,UAAQ,YAAY,QAAQ;AAAA,IAC3B,KAAK;AACJ,aAAO;AAAA,IACR,KAAK;AACJ,aAAO,GAAG,MAAM,IAAI,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,KAAK,YAAY,CAAC,EAAE,CAAC,CAAC;AAAA,IACtE;AACC,aAAO,GAAG,MAAM,IAAI,MAAM,MAAM,SAAS,GAAG,YAC1C,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,GAAG,EAC1C,KAAK,SAAS,CAAC;AAAA,EACnB;AACD;","names":[]}
@@ -1,8 +0,0 @@
1
- import { Octokit } from 'octokit';
2
- import { Options } from './types.js';
3
- import 'zod';
4
- import './codes.js';
5
-
6
- declare function getGitHubUserAsAllContributor(octokit: Octokit | undefined, options: Pick<Options, "offline" | "owner">): Promise<string>;
7
-
8
- export { getGitHubUserAsAllContributor };
@@ -1,43 +0,0 @@
1
- import chalk from "chalk";
2
- import { $ } from "execa";
3
- async function getGitHubUserAsAllContributor(octokit, options) {
4
- if (options.offline) {
5
- console.warn(
6
- chalk.gray(
7
- `Skipping populating all-contributors contributions for ${options.owner} because in --offline mode.`
8
- )
9
- );
10
- return options.owner;
11
- }
12
- let user;
13
- if (octokit) {
14
- try {
15
- user = (await octokit.rest.users.getAuthenticated()).data.login;
16
- } catch {
17
- console.warn(
18
- chalk.gray(
19
- `Couldn't authenticate GitHub user, falling back to the provided owner name '${options.owner}'.`
20
- )
21
- );
22
- user = options.owner;
23
- }
24
- } else {
25
- user = options.owner;
26
- }
27
- const contributions = [
28
- "code",
29
- "content",
30
- "doc",
31
- "ideas",
32
- "infra",
33
- "maintenance",
34
- "projectManagement",
35
- "tool"
36
- ].join(",");
37
- await $`pnpx all-contributors-cli@6.25 add ${user} ${contributions}`;
38
- return user;
39
- }
40
- export {
41
- getGitHubUserAsAllContributor
42
- };
43
- //# sourceMappingURL=getGitHubUserAsAllContributor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/shared/getGitHubUserAsAllContributor.ts"],"sourcesContent":["import chalk from \"chalk\";\nimport { $ } from \"execa\";\nimport { Octokit } from \"octokit\";\n\nimport { Options } from \"./types.js\";\n\nexport async function getGitHubUserAsAllContributor(\n\toctokit: Octokit | undefined,\n\toptions: Pick<Options, \"offline\" | \"owner\">,\n) {\n\tif (options.offline) {\n\t\tconsole.warn(\n\t\t\tchalk.gray(\n\t\t\t\t`Skipping populating all-contributors contributions for ${options.owner} because in --offline mode.`,\n\t\t\t),\n\t\t);\n\t\treturn options.owner;\n\t}\n\n\tlet user: string;\n\n\tif (octokit) {\n\t\ttry {\n\t\t\tuser = (await octokit.rest.users.getAuthenticated()).data.login;\n\t\t} catch {\n\t\t\tconsole.warn(\n\t\t\t\tchalk.gray(\n\t\t\t\t\t`Couldn't authenticate GitHub user, falling back to the provided owner name '${options.owner}'.`,\n\t\t\t\t),\n\t\t\t);\n\t\t\tuser = options.owner;\n\t\t}\n\t} else {\n\t\tuser = options.owner;\n\t}\n\n\tconst contributions = [\n\t\t\"code\",\n\t\t\"content\",\n\t\t\"doc\",\n\t\t\"ideas\",\n\t\t\"infra\",\n\t\t\"maintenance\",\n\t\t\"projectManagement\",\n\t\t\"tool\",\n\t].join(\",\");\n\tawait $`pnpx all-contributors-cli@6.25 add ${user} ${contributions}`;\n\n\treturn user;\n}\n"],"mappings":"AAAA,OAAO,WAAW;AAClB,SAAS,SAAS;AAKlB,eAAsB,8BACrB,SACA,SACC;AACD,MAAI,QAAQ,SAAS;AACpB,YAAQ;AAAA,MACP,MAAM;AAAA,QACL,0DAA0D,QAAQ,KAAK;AAAA,MACxE;AAAA,IACD;AACA,WAAO,QAAQ;AAAA,EAChB;AAEA,MAAI;AAEJ,MAAI,SAAS;AACZ,QAAI;AACH,cAAQ,MAAM,QAAQ,KAAK,MAAM,iBAAiB,GAAG,KAAK;AAAA,IAC3D,QAAQ;AACP,cAAQ;AAAA,QACP,MAAM;AAAA,UACL,+EAA+E,QAAQ,KAAK;AAAA,QAC7F;AAAA,MACD;AACA,aAAO,QAAQ;AAAA,IAChB;AAAA,EACD,OAAO;AACN,WAAO,QAAQ;AAAA,EAChB;AAEA,QAAM,gBAAgB;AAAA,IACrB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,EAAE,KAAK,GAAG;AACV,QAAM,uCAAuC,IAAI,IAAI,aAAa;AAElE,SAAO;AACR;","names":[]}
@@ -1,3 +0,0 @@
1
- declare function isUsingCreateEngine(): boolean;
2
-
3
- export { isUsingCreateEngine };
@@ -1,7 +0,0 @@
1
- function isUsingCreateEngine() {
2
- return !!process.env.CTA_CREATE_ENGINE && Boolean(process.env.CTA_CREATE_ENGINE);
3
- }
4
- export {
5
- isUsingCreateEngine
6
- };
7
- //# sourceMappingURL=isUsingCreateEngine.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/shared/isUsingCreateEngine.ts"],"sourcesContent":["export function isUsingCreateEngine() {\n\treturn (\n\t\t!!process.env.CTA_CREATE_ENGINE && Boolean(process.env.CTA_CREATE_ENGINE)\n\t);\n}\n"],"mappings":"AAAO,SAAS,sBAAsB;AACrC,SACC,CAAC,CAAC,QAAQ,IAAI,qBAAqB,QAAQ,QAAQ,IAAI,iBAAiB;AAE1E;","names":[]}
@@ -1,273 +0,0 @@
1
- declare const allArgOptions: {
2
- readonly access: {
3
- readonly description: `(${string}): Which ${string} to
4
- release npm packages with (by default, "public")`;
5
- readonly docsSection: "optional";
6
- readonly type: "string";
7
- };
8
- readonly author: {
9
- readonly description: `Username on npm to publish packages under (by
10
- default, an existing npm author, or the currently logged in npm user, or
11
- ${string})`;
12
- readonly docsSection: "optional";
13
- readonly type: "string";
14
- };
15
- readonly auto: {
16
- readonly description: "Whether to infer all options from files on disk.";
17
- readonly docsSection: "optional";
18
- readonly type: "boolean";
19
- };
20
- readonly base: {
21
- readonly description: `Whether to scaffold the repository with:
22
- \u2022 everything: that comes with the template (${string})
23
- \u2022 common: additions to the minimal starters such as releases and tests
24
- \u2022 minimal: amounts of tooling, essentially opting out of everything
25
- \u2022 prompt: for which portions to exclude`;
26
- readonly docsSection: "core";
27
- readonly type: "string";
28
- };
29
- readonly bin: {
30
- readonly description: "package.json bin value to include for npx-style running.";
31
- readonly docsSection: "optional";
32
- readonly type: "string";
33
- };
34
- readonly "create-repository": {
35
- readonly description: "Whether to create a corresponding repository on github.com \n (if it doesn't yet exist)";
36
- readonly docsSection: "core";
37
- readonly type: "boolean";
38
- };
39
- readonly description: {
40
- readonly description: "Sentence case description of the repository \n (e.g. A quickstart-friendly TypeScript package with lots of great \n repository tooling. ✨)";
41
- readonly docsSection: "core";
42
- readonly type: "string";
43
- };
44
- readonly directory: {
45
- readonly description: "Directory to create the repository in (by default, the same \n name as the repository)";
46
- readonly docsSection: "optional";
47
- readonly type: "string";
48
- };
49
- readonly email: {
50
- readonly description: "Email address to be listed as the point of contact in docs \n and packages (e.g. example@joshuakgoldberg.com)";
51
- readonly docsSection: "optional";
52
- readonly type: "string";
53
- };
54
- readonly "email-github": {
55
- readonly description: `Optionally, may be provided to use different emails in ${string}
56
- files`;
57
- readonly docsSection: "optional";
58
- readonly type: "string";
59
- };
60
- readonly "email-npm": {
61
- readonly description: `Optionally, may be provided to use different emails in
62
- ${string}`;
63
- readonly docsSection: "optional";
64
- readonly type: "string";
65
- };
66
- readonly "exclude-all-contributors": {
67
- readonly description: "Don't add all-contributors to track contributions \n and display them in a README.md table.";
68
- readonly docsSection: "opt-out";
69
- readonly type: "boolean";
70
- };
71
- readonly "exclude-compliance": {
72
- readonly description: "Don't add a GitHub Actions workflow to verify that PRs match \n an expected format.";
73
- readonly docsSection: "opt-out";
74
- readonly type: "boolean";
75
- };
76
- readonly "exclude-lint-jsdoc": {
77
- readonly description: "Don't use eslint-plugin-jsdoc to enforce good practices around \n JSDoc comments.";
78
- readonly docsSection: "opt-out";
79
- readonly type: "boolean";
80
- };
81
- readonly "exclude-lint-json": {
82
- readonly description: `Don't apply linting and sorting to ${string}, and
83
- ${string} files.`;
84
- readonly docsSection: "opt-out";
85
- readonly type: "boolean";
86
- };
87
- readonly "exclude-lint-knip": {
88
- readonly description: "Don't add Knip to detect unused files, dependencies, and code \n exports.";
89
- readonly docsSection: "opt-out";
90
- readonly type: "boolean";
91
- };
92
- readonly "exclude-lint-md": {
93
- readonly description: `Don't apply linting to ${string} files.`;
94
- readonly docsSection: "opt-out";
95
- readonly type: "boolean";
96
- };
97
- readonly "exclude-lint-package-json": {
98
- readonly description: "Don't add eslint-plugin-package-json to lint for \n package.json correctness.";
99
- readonly docsSection: "opt-out";
100
- readonly type: "boolean";
101
- };
102
- readonly "exclude-lint-packages": {
103
- readonly description: "Don't add a pnpm dedupe workflow to ensure packages \n aren't duplicated unnecessarily.";
104
- readonly docsSection: "opt-out";
105
- readonly type: "boolean";
106
- };
107
- readonly "exclude-lint-perfectionist": {
108
- readonly description: "Don't apply eslint-plugin-perfectionist to ensure \n imports, keys, and so on are in sorted order.";
109
- readonly docsSection: "opt-out";
110
- readonly type: "boolean";
111
- };
112
- readonly "exclude-lint-regexp": {
113
- readonly description: "Don't add eslint-plugin-regexp to enforce good practices around \n regular expressions.";
114
- readonly docsSection: "opt-out";
115
- readonly type: "boolean";
116
- };
117
- readonly "exclude-lint-spelling": {
118
- readonly description: "Don't add cspell to spell check against dictionaries \n of known words.";
119
- readonly docsSection: "opt-out";
120
- readonly type: "boolean";
121
- };
122
- readonly "exclude-lint-strict": {
123
- readonly description: "Don't augment the recommended logical lint rules with \n typescript-eslint's strict config.";
124
- readonly docsSection: "opt-out";
125
- readonly type: "boolean";
126
- };
127
- readonly "exclude-lint-stylistic": {
128
- readonly description: "Don't add stylistic rules such as typescript-eslint's \n stylistic config.";
129
- readonly docsSection: "opt-out";
130
- readonly type: "boolean";
131
- };
132
- readonly "exclude-lint-yml": {
133
- readonly description: `Don't apply linting and sorting to ${string} and ${string} files.`;
134
- readonly docsSection: "opt-out";
135
- readonly type: "boolean";
136
- };
137
- readonly "exclude-releases": {
138
- readonly description: "Don't add release-it to generate changelogs, package bumps, \n and publishes based on conventional commits.";
139
- readonly docsSection: "opt-out";
140
- readonly type: "boolean";
141
- };
142
- readonly "exclude-renovate": {
143
- readonly description: "Don't add a Renovate config to dependencies up-to-date with \n PRs.";
144
- readonly docsSection: "opt-out";
145
- readonly type: "boolean";
146
- };
147
- readonly "exclude-templated-by": {
148
- readonly description: "Don't add a _\"This package was templated with create-typescript-app\"_ notice at the end of the README.md.";
149
- readonly docsSection: "opt-out";
150
- readonly type: "boolean";
151
- };
152
- readonly "exclude-tests": {
153
- readonly description: "Don't add Vitest tooling for fast unit tests, configured \n with coverage tracking.";
154
- readonly docsSection: "opt-out";
155
- readonly type: "boolean";
156
- };
157
- readonly funding: {
158
- readonly description: `GitHub organization or username to mention in ${string}
159
- (by default, owner)`;
160
- readonly docsSection: "optional";
161
- readonly type: "string";
162
- };
163
- readonly guide: {
164
- readonly description: "Link to a contribution guide to place at the top of the \n development docs";
165
- readonly docsSection: "optional";
166
- readonly type: "string";
167
- };
168
- readonly "guide-title": {
169
- readonly description: `If ${string} is provided or detected from an existing
170
- DEVELOPMENT.md, the text title to place in the guide link`;
171
- readonly docsSection: "optional";
172
- readonly type: "string";
173
- };
174
- readonly keywords: {
175
- readonly description: `Any number of keywords to include in ${string} (by default,
176
- none). This can be specified any number of times, like
177
- ${string}`;
178
- readonly docsSection: "optional";
179
- readonly multiple: true;
180
- readonly type: "string";
181
- };
182
- readonly logo: {
183
- readonly description: "Local image file in the repository to display near the top of \n the README.md as a logo";
184
- readonly docsSection: "optional";
185
- readonly type: "string";
186
- };
187
- readonly "logo-alt": {
188
- readonly description: `If ${string} is provided or detected from an existing README.md,
189
- alt text that describes the image will be prompted for if not provided`;
190
- readonly docsSection: "optional";
191
- readonly type: "string";
192
- };
193
- readonly "logo-height": {
194
- readonly description: `If ${string} is provided or detected from an existing README.md,
195
- an explicit height style`;
196
- readonly docsSection: "optional";
197
- readonly type: "string";
198
- };
199
- readonly "logo-width": {
200
- readonly description: `If ${string} is provided or detected from an existing README.md,
201
- an explicit width style`;
202
- readonly docsSection: "optional";
203
- readonly type: "string";
204
- };
205
- readonly mode: {
206
- readonly description: "Whether to:\n • create: a new repository in a child directory\n • initialize: a freshly repository in the current directory\n • migrate: an existing repository in the current directory";
207
- readonly docsSection: "core";
208
- readonly type: "string";
209
- };
210
- readonly offline: {
211
- readonly description: `You can run ${string} in an "offline" mode.
212
- Doing so will:
213
- \u2022 Enable ${string} and ${string}
214
- \u2022 Skip network calls when setting up contributors
215
- \u2022 Run pnpm commands with pnpm's ${string} mode`;
216
- readonly docsSection: "offline";
217
- readonly type: "boolean";
218
- };
219
- readonly owner: {
220
- readonly description: "GitHub organization or user the repository is underneath \n (e.g. JoshuaKGoldberg)";
221
- readonly docsSection: "core";
222
- readonly type: "string";
223
- };
224
- readonly "preserve-generated-from": {
225
- readonly description: "Whether to keep the GitHub repository generated from \n notice (by default, false)";
226
- readonly docsSection: "optional";
227
- readonly type: "boolean";
228
- };
229
- readonly repository: {
230
- readonly description: "The kebab-case name of the repository \n (e.g. create-typescript-app)";
231
- readonly docsSection: "core";
232
- readonly type: "string";
233
- };
234
- readonly "skip-all-contributors-api": {
235
- readonly description: `Skips network calls that fetch all-contributors data from
236
- GitHub. This flag does nothing if ${string} was specified.`;
237
- readonly docsSection: "skip-net";
238
- readonly type: "boolean";
239
- };
240
- readonly "skip-github-api": {
241
- readonly description: "Skips calling to GitHub APIs.";
242
- readonly docsSection: "skip-net";
243
- readonly type: "boolean";
244
- };
245
- readonly "skip-install": {
246
- readonly description: "Skips installing all the new template packages with pnpm.";
247
- readonly docsSection: "skip-net";
248
- readonly type: "boolean";
249
- };
250
- readonly "skip-removal": {
251
- readonly description: `Skips removing setup docs and scripts, including this ${string}
252
- directory`;
253
- readonly docsSection: "skip-disk";
254
- readonly type: "boolean";
255
- };
256
- readonly "skip-restore": {
257
- readonly description: "Skips the prompt offering to restore the repository if an \n error occurs during setup";
258
- readonly docsSection: "skip-disk";
259
- readonly type: "boolean";
260
- };
261
- readonly "skip-uninstall": {
262
- readonly description: "Skips uninstalling packages only used for setup scripts";
263
- readonly docsSection: "skip-disk";
264
- readonly type: "boolean";
265
- };
266
- readonly title: {
267
- readonly description: "Title Case title for the repository to be used in \n documentation (e.g. Create TypeScript App)";
268
- readonly docsSection: "core";
269
- readonly type: "string";
270
- };
271
- };
272
-
273
- export { allArgOptions };