create-typescript-app 1.77.1 → 1.79.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 (130) hide show
  1. package/README.md +50 -49
  2. package/lib/create/createAndEnterGitDirectory.d.ts +1 -1
  3. package/lib/create/createAndEnterGitDirectory.js +4 -3
  4. package/lib/create/createAndEnterGitDirectory.js.map +1 -1
  5. package/lib/create/createWithOptions.d.ts +1 -1
  6. package/lib/create/createWithOptions.js +7 -8
  7. package/lib/create/createWithOptions.js.map +1 -1
  8. package/lib/create/index.js +8 -2
  9. package/lib/create/index.js.map +1 -1
  10. package/lib/next/base.d.ts +1 -2
  11. package/lib/next/base.js +37 -27
  12. package/lib/next/base.js.map +1 -1
  13. package/lib/next/blocks/blockAllContributors.d.ts +1 -2
  14. package/lib/next/blocks/blockAllContributors.js +11 -2
  15. package/lib/next/blocks/blockAllContributors.js.map +1 -1
  16. package/lib/next/blocks/blockAreTheTypesWrong.d.ts +1 -2
  17. package/lib/next/blocks/blockCSpell.d.ts +1 -2
  18. package/lib/next/blocks/blockCSpell.js +16 -0
  19. package/lib/next/blocks/blockCSpell.js.map +1 -1
  20. package/lib/next/blocks/blockContributingDocs.d.ts +1 -2
  21. package/lib/next/blocks/blockContributorCovenant.d.ts +1 -2
  22. package/lib/next/blocks/blockDevelopmentDocs.d.ts +1 -2
  23. package/lib/next/blocks/blockESLint.d.ts +1 -2
  24. package/lib/next/blocks/blockESLintComments.d.ts +1 -2
  25. package/lib/next/blocks/blockESLintJSDoc.d.ts +1 -2
  26. package/lib/next/blocks/blockESLintJSONC.d.ts +1 -2
  27. package/lib/next/blocks/blockESLintMarkdown.d.ts +1 -2
  28. package/lib/next/blocks/blockESLintMoreStyling.d.ts +1 -2
  29. package/lib/next/blocks/blockESLintNode.d.ts +1 -2
  30. package/lib/next/blocks/blockESLintPackageJson.d.ts +1 -2
  31. package/lib/next/blocks/blockESLintPerfectionist.d.ts +1 -2
  32. package/lib/next/blocks/blockESLintRegexp.d.ts +1 -2
  33. package/lib/next/blocks/blockESLintYML.d.ts +1 -2
  34. package/lib/next/blocks/blockExampleFiles.d.ts +1 -2
  35. package/lib/next/blocks/blockFunding.d.ts +1 -2
  36. package/lib/next/blocks/blockGitHubActionsCI.d.ts +1 -2
  37. package/lib/next/blocks/blockGitHubApps.d.ts +52 -0
  38. package/lib/next/blocks/blockGitHubApps.js +34 -0
  39. package/lib/next/blocks/blockGitHubApps.js.map +1 -0
  40. package/lib/next/blocks/blockGitHubIssueTemplates.d.ts +1 -2
  41. package/lib/next/blocks/blockGitHubPRTemplate.d.ts +1 -2
  42. package/lib/next/blocks/blockGitignore.d.ts +1 -2
  43. package/lib/next/blocks/blockKnip.d.ts +1 -2
  44. package/lib/next/blocks/blockKnip.js +2 -2
  45. package/lib/next/blocks/blockKnip.js.map +1 -1
  46. package/lib/next/blocks/blockMITLicense.d.ts +1 -2
  47. package/lib/next/blocks/blockMarkdownlint.d.ts +1 -2
  48. package/lib/next/blocks/blockNvmrc.d.ts +1 -2
  49. package/lib/next/blocks/blockPRCompliance.d.ts +1 -2
  50. package/lib/next/blocks/blockPackageJson.d.ts +1 -2
  51. package/lib/next/blocks/blockPackageJson.js +46 -41
  52. package/lib/next/blocks/blockPackageJson.js.map +1 -1
  53. package/lib/next/blocks/blockPnpmDedupe.d.ts +1 -2
  54. package/lib/next/blocks/blockPrettier.d.ts +1 -2
  55. package/lib/next/blocks/blockPrettierPluginCurly.d.ts +1 -2
  56. package/lib/next/blocks/blockPrettierPluginPackageJson.d.ts +1 -2
  57. package/lib/next/blocks/blockPrettierPluginSh.d.ts +1 -2
  58. package/lib/next/blocks/blockREADME.d.ts +1 -2
  59. package/lib/next/blocks/blockReleaseIt.d.ts +1 -2
  60. package/lib/next/blocks/blockReleaseIt.js +13 -0
  61. package/lib/next/blocks/blockReleaseIt.js.map +1 -1
  62. package/lib/next/blocks/blockRenovate.d.ts +1 -2
  63. package/lib/next/blocks/blockRenovate.js +9 -0
  64. package/lib/next/blocks/blockRenovate.js.map +1 -1
  65. package/lib/next/blocks/{blockRepositoryBranchProtection.d.ts → blockRepositoryBranchRuleset.d.ts} +3 -4
  66. package/lib/next/blocks/blockRepositoryBranchRuleset.js +71 -0
  67. package/lib/next/blocks/blockRepositoryBranchRuleset.js.map +1 -0
  68. package/lib/next/blocks/blockRepositoryLabels.d.ts +1 -2
  69. package/lib/next/blocks/blockRepositoryLabels.js +12 -2
  70. package/lib/next/blocks/blockRepositoryLabels.js.map +1 -1
  71. package/lib/next/blocks/blockRepositorySecrets.d.ts +52 -0
  72. package/lib/next/blocks/blockRepositorySecrets.js +34 -0
  73. package/lib/next/blocks/blockRepositorySecrets.js.map +1 -0
  74. package/lib/next/blocks/blockRepositorySettings.d.ts +1 -2
  75. package/lib/next/blocks/blockRepositorySettings.js +1 -1
  76. package/lib/next/blocks/blockRepositorySettings.js.map +1 -1
  77. package/lib/next/blocks/blockSecurityDocs.d.ts +1 -2
  78. package/lib/next/blocks/blockTSup.d.ts +1 -2
  79. package/lib/next/blocks/blockTemplatedBy.d.ts +1 -2
  80. package/lib/next/blocks/blockTypeScript.d.ts +1 -2
  81. package/lib/next/blocks/blockVSCode.d.ts +1 -2
  82. package/lib/next/blocks/blockVitest.d.ts +1 -2
  83. package/lib/next/blocks/blockVitest.js +26 -17
  84. package/lib/next/blocks/blockVitest.js.map +1 -1
  85. package/lib/next/blocks/options.fakes.d.ts +1 -0
  86. package/lib/next/blocks/options.fakes.js +1 -0
  87. package/lib/next/blocks/options.fakes.js.map +1 -1
  88. package/lib/next/blocks/packageData.d.ts +3 -2
  89. package/lib/next/blocks/packageData.js +20 -14
  90. package/lib/next/blocks/packageData.js.map +1 -1
  91. package/lib/next/presetCommon.d.ts +1 -2
  92. package/lib/next/presetEverything.d.ts +1 -2
  93. package/lib/next/presetMinimal.d.ts +1 -2
  94. package/lib/next/presetMinimal.js +6 -2
  95. package/lib/next/presetMinimal.js.map +1 -1
  96. package/lib/next/readDocumentation.d.ts +5 -0
  97. package/lib/next/readDocumentation.js +28 -0
  98. package/lib/next/readDocumentation.js.map +1 -0
  99. package/lib/next/template.d.ts +2 -3
  100. package/lib/next/template.js +2 -6
  101. package/lib/next/template.js.map +1 -1
  102. package/lib/next/utils/resolveBin.d.ts +3 -0
  103. package/lib/next/utils/resolveBin.js +7 -0
  104. package/lib/next/utils/resolveBin.js.map +1 -0
  105. package/lib/shared/getGitHubUserAsAllContributor.js +1 -1
  106. package/lib/shared/getGitHubUserAsAllContributor.js.map +1 -1
  107. package/lib/shared/options/optionsSchema.d.ts +4 -4
  108. package/lib/shared/options/readOptions.js +1 -1
  109. package/lib/shared/options/readOptions.js.map +1 -1
  110. package/lib/shared/packages.js +1 -3
  111. package/lib/shared/packages.js.map +1 -1
  112. package/lib/steps/addToolAllContributors.js +1 -1
  113. package/lib/steps/addToolAllContributors.js.map +1 -1
  114. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js +53 -31
  115. package/lib/steps/initializeGitHubRepository/initializeBranchProtectionSettings.js.map +1 -1
  116. package/lib/steps/uninstallPackages.js +4 -0
  117. package/lib/steps/uninstallPackages.js.map +1 -1
  118. package/lib/steps/updateAllContributorsTable.js +1 -1
  119. package/lib/steps/updateAllContributorsTable.js.map +1 -1
  120. package/lib/steps/writing/creation/createKnipConfig.d.ts +3 -0
  121. package/lib/steps/writing/creation/createKnipConfig.js +20 -0
  122. package/lib/steps/writing/creation/createKnipConfig.js.map +1 -0
  123. package/lib/steps/writing/creation/index.d.ts +2 -1
  124. package/lib/steps/writing/creation/index.js +21 -8
  125. package/lib/steps/writing/creation/index.js.map +1 -1
  126. package/lib/steps/writing/creation/rootFiles.js +2 -9
  127. package/lib/steps/writing/creation/rootFiles.js.map +1 -1
  128. package/package.json +16 -12
  129. package/lib/next/blocks/blockRepositoryBranchProtection.js +0 -49
  130. package/lib/next/blocks/blockRepositoryBranchProtection.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/next/base.ts"],"sourcesContent":["import { BaseOptionsFor, createBase } from \"create\";\nimport { execaCommand } from \"execa\";\nimport gitRemoteOriginUrl from \"git-remote-origin-url\";\nimport gitUrlParse from \"git-url-parse\";\nimport { inputFromFile } from \"input-from-file\";\nimport { inputFromFileJSON } from \"input-from-file-json\";\nimport lazyValue from \"lazy-value\";\nimport npmUser from \"npm-user\";\nimport { z } from \"zod\";\n\nimport { parsePackageAuthor } from \"../shared/options/createOptionDefaults/parsePackageAuthor.js\";\nimport { readDefaultsFromReadme } from \"../shared/options/createOptionDefaults/readDefaultsFromReadme.js\";\nimport { readEmails } from \"../shared/options/createOptionDefaults/readEmails.js\";\nimport { readFunding } from \"../shared/options/createOptionDefaults/readFunding.js\";\nimport { readGuide } from \"../shared/options/createOptionDefaults/readGuide.js\";\nimport { readPackageData } from \"../shared/packages.js\";\nimport { tryCatchLazyValueAsync } from \"../shared/tryCatchLazyValueAsync.js\";\nimport { AllContributorsData } from \"../shared/types.js\";\nimport { swallowError } from \"./utils/swallowError.js\";\n\nexport const base = createBase({\n\toptions: {\n\t\taccess: z.union([z.literal(\"public\"), z.literal(\"restricted\")]).optional(),\n\t\tauthor: z.string().optional(),\n\t\tbin: z.string().optional(),\n\t\tcontributors: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tavatar_url: z.string(),\n\t\t\t\t\tcontributions: z.array(z.string()),\n\t\t\t\t\tlogin: z.string(),\n\t\t\t\t\tname: z.string(),\n\t\t\t\t\tprofile: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional(),\n\t\tdescription: z.string(),\n\t\tdocumentation: z.string().optional(),\n\t\temail: z\n\t\t\t.union([\n\t\t\t\tz.string(),\n\t\t\t\tz.object({\n\t\t\t\t\tgithub: z.string(),\n\t\t\t\t\tnpm: z.string(),\n\t\t\t\t}),\n\t\t\t])\n\t\t\t.transform((email) =>\n\t\t\t\ttypeof email === \"string\" ? { github: email, npm: email } : email,\n\t\t\t),\n\t\tfunding: z.string().optional(),\n\t\tguide: z\n\t\t\t.object({\n\t\t\t\thref: z.string(),\n\t\t\t\ttitle: z.string(),\n\t\t\t})\n\t\t\t.optional(),\n\t\thideTemplatedBy: z.boolean().optional(),\n\t\tkeywords: z.array(z.string()).optional(),\n\t\tlogin: z.string().optional(),\n\t\tlogo: z\n\t\t\t.object({\n\t\t\t\talt: z.string(),\n\t\t\t\tsrc: z.string(),\n\t\t\t})\n\t\t\t.optional(),\n\t\tnode: z\n\t\t\t.object({\n\t\t\t\tminimum: z.string(),\n\t\t\t\tpinned: z.string().optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t\towner: z.string(),\n\t\tpackageData: z\n\t\t\t.object({\n\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tscripts: z.record(z.string(), z.string()).optional(),\n\t\t\t})\n\t\t\t.optional(),\n\t\tpreserveGeneratedFrom: z.boolean().optional(),\n\t\trepository: z.string(),\n\t\ttitle: z.string(),\n\t\tversion: z.string().optional(),\n\t},\n\tproduce({ options, take }) {\n\t\tconst allContributors = lazyValue(async () => {\n\t\t\tconst contributions = (await take(inputFromFileJSON, {\n\t\t\t\tfilePath: \".all-contributorsrc\",\n\t\t\t})) as AllContributorsData;\n\n\t\t\treturn contributions.contributors;\n\t\t});\n\n\t\tconst documentation = lazyValue(async () =>\n\t\t\tswallowError(\n\t\t\t\tawait take(inputFromFile, {\n\t\t\t\t\tfilePath: \".github/DEVELOPMENT.md\",\n\t\t\t\t}),\n\t\t\t),\n\t\t);\n\n\t\tconst nvmrc = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromFile, {\n\t\t\t\t\tfilePath: \".nvmrc\",\n\t\t\t\t}),\n\t\t);\n\n\t\t// TODO: Make these all use take\n\n\t\tconst gitDefaults = tryCatchLazyValueAsync(async () =>\n\t\t\tgitUrlParse(await gitRemoteOriginUrl()),\n\t\t);\n\n\t\tconst npmDefaults = tryCatchLazyValueAsync(async () => {\n\t\t\tconst whoami = (await execaCommand(`npm whoami`)).stdout;\n\t\t\treturn whoami ? await npmUser(whoami) : undefined;\n\t\t});\n\n\t\tconst packageData = lazyValue(readPackageData);\n\t\tconst packageAuthor = lazyValue(async () =>\n\t\t\tparsePackageAuthor(await packageData()),\n\t\t);\n\n\t\tconst author = lazyValue(async () =>\n\t\t\t(\n\t\t\t\t(await packageAuthor()).author ??\n\t\t\t\t(await npmDefaults())?.name ??\n\t\t\t\toptions.owner\n\t\t\t)?.toLowerCase(),\n\t\t);\n\n\t\tconst node = lazyValue(async () => {\n\t\t\tconst { engines } = await packageData();\n\n\t\t\treturn {\n\t\t\t\tminimum:\n\t\t\t\t\t(engines?.node && /[\\d+.]+/.exec(engines.node))?.[0] ?? \"18.3.0\",\n\t\t\t\tpinned: swallowError(await nvmrc()) ?? \"20.18.0\",\n\t\t\t};\n\t\t});\n\n\t\tconst version = lazyValue(async () => (await packageData()).version);\n\n\t\treturn {\n\t\t\tauthor,\n\t\t\tbin: async () => (await packageData()).bin,\n\t\t\tcontributors: allContributors,\n\t\t\tdescription: async () => (await packageData()).description,\n\t\t\tdocumentation,\n\t\t\temail: async () => readEmails(npmDefaults, packageAuthor),\n\t\t\tfunding: readFunding,\n\t\t\tguide: readGuide,\n\t\t\tlogin: author,\n\t\t\tnode,\n\t\t\towner: async () =>\n\t\t\t\t(await gitDefaults())?.organization ?? (await packageAuthor()).author,\n\t\t\tpackageData: async () => {\n\t\t\t\tconst original = await packageData();\n\n\t\t\t\treturn {\n\t\t\t\t\tdependencies: original.dependencies,\n\t\t\t\t\tdevDependencies: original.devDependencies,\n\t\t\t\t\tscripts: original.scripts,\n\t\t\t\t};\n\t\t\t},\n\t\t\trepository: async () =>\n\t\t\t\toptions.repository ??\n\t\t\t\t(await gitDefaults())?.name ??\n\t\t\t\t(await packageData()).name,\n\t\t\t...readDefaultsFromReadme(),\n\t\t\tversion,\n\t\t};\n\t},\n\ttemplate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A,MACP;AAAA,MACA,OAAO,aACL,MAAM,YAAY,IAAI,iBAAiB,MAAM,cAAc,GAAG;AAAA,MAChE,aAAa,YAAY;AACxB,cAAM,WAAW,MAAM,YAAY;AAEnC,eAAO;AAAA,UACN,cAAc,SAAS;AAAA,UACvB,iBAAiB,SAAS;AAAA,UAC1B,SAAS,SAAS;AAAA,QACnB;AAAA,MACD;AAAA,MACA,YAAY,YACX,QAAQ,eACP,MAAM,YAAY,IAAI,SACtB,MAAM,YAAY,GAAG;AAAA,MACvB,GAAG,uBAAuB;AAAA,MAC1B;AAAA,IACD;AAAA,EACD;AAAA,EACA,UAAU;AAAA,IACT,OAAO;AAAA,IACP,YAAY;AAAA,EACb;AACD,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/next/base.ts"],"sourcesContent":["import { BaseOptionsFor, createBase } from \"create\";\nimport { execaCommand } from \"execa\";\nimport gitRemoteOriginUrl from \"git-remote-origin-url\";\nimport gitUrlParse from \"git-url-parse\";\nimport { inputFromFile } from \"input-from-file\";\nimport { inputFromFileJSON } from \"input-from-file-json\";\nimport { inputFromScript } from \"input-from-script\";\nimport lazyValue from \"lazy-value\";\nimport npmUser from \"npm-user\";\nimport { z } from \"zod\";\n\nimport { parsePackageAuthor } from \"../shared/options/createOptionDefaults/parsePackageAuthor.js\";\nimport { readDefaultsFromReadme } from \"../shared/options/createOptionDefaults/readDefaultsFromReadme.js\";\nimport { readEmails } from \"../shared/options/createOptionDefaults/readEmails.js\";\nimport { readFunding } from \"../shared/options/createOptionDefaults/readFunding.js\";\nimport { readGuide } from \"../shared/options/createOptionDefaults/readGuide.js\";\nimport { readPackageData } from \"../shared/packages.js\";\nimport { tryCatchLazyValueAsync } from \"../shared/tryCatchLazyValueAsync.js\";\nimport { AllContributorsData } from \"../shared/types.js\";\nimport { readDocumentation } from \"./readDocumentation.js\";\nimport { swallowError } from \"./utils/swallowError.js\";\n\nexport const base = createBase({\n\toptions: {\n\t\taccess: z\n\t\t\t.union([z.literal(\"public\"), z.literal(\"restricted\")])\n\t\t\t.optional()\n\t\t\t.describe(\"which `npm publish --access` to release npm packages with\"),\n\t\tauthor: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"username on npm to publish packages under\"),\n\t\tbin: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe('value to set in `package.json`\\'s `\"bin\"` property.'),\n\t\tcontributors: z\n\t\t\t.array(\n\t\t\t\tz.object({\n\t\t\t\t\tavatar_url: z.string(),\n\t\t\t\t\tcontributions: z.array(z.string()),\n\t\t\t\t\tlogin: z.string(),\n\t\t\t\t\tname: z.string(),\n\t\t\t\t\tprofile: z.string(),\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.optional()\n\t\t\t.describe(\"AllContributors contributors to store in .all-contributorsrc\"),\n\t\tdescription: z\n\t\t\t.string()\n\t\t\t.describe(\"sentence case description of the repository\"),\n\t\tdirectory: z.string(),\n\t\tdocumentation: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"any additional docs to add to .github/DEVELOPMENT.md\"),\n\t\temail: z\n\t\t\t.union([\n\t\t\t\tz.string(),\n\t\t\t\tz.object({\n\t\t\t\t\tgithub: z.string(),\n\t\t\t\t\tnpm: z.string(),\n\t\t\t\t}),\n\t\t\t])\n\t\t\t.transform((email) =>\n\t\t\t\ttypeof email === \"string\" ? { github: email, npm: email } : email,\n\t\t\t)\n\t\t\t.describe(\n\t\t\t\t\"email address to be listed as the point of contact in docs and packages\",\n\t\t\t),\n\t\tfunding: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"GitHub organization or username to mention in `funding.yml`\"),\n\t\tguide: z\n\t\t\t.object({\n\t\t\t\thref: z.string(),\n\t\t\t\ttitle: z.string(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"link to a contribution guide to place at the top of development docs\",\n\t\t\t),\n\t\thideTemplatedBy: z\n\t\t\t.boolean()\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"whether to hide the 'created by ...' notice at the bottom of the README.md\",\n\t\t\t),\n\t\tkeywords: z\n\t\t\t.array(z.string())\n\t\t\t.optional()\n\t\t\t.describe(\"any number of keywords to include in `package.json`\"),\n\t\tlogo: z\n\t\t\t.object({\n\t\t\t\talt: z.string(),\n\t\t\t\tsrc: z.string(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\n\t\t\t\t\"local image file in the repository to display near the top of the README.md\",\n\t\t\t),\n\t\tnode: z\n\t\t\t.object({\n\t\t\t\tminimum: z.string(),\n\t\t\t\tpinned: z.string().optional(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\"node.js engine version(s) to pin and require a minimum of\"),\n\t\towner: z\n\t\t\t.string()\n\t\t\t.describe(\"GitHub organization or user the repository is underneath\"),\n\t\tpackageData: z\n\t\t\t.object({\n\t\t\t\tdependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tdevDependencies: z.record(z.string(), z.string()).optional(),\n\t\t\t\tscripts: z.record(z.string(), z.string()).optional(),\n\t\t\t})\n\t\t\t.optional()\n\t\t\t.describe(\"additional properties to include in `package.json`\"),\n\t\trepository: z\n\t\t\t.string()\n\t\t\t.describe(\"'Sentence case.' description of the repository\"),\n\t\ttitle: z.string().describe(\"'Title Case' title for the repository\"),\n\t\tversion: z\n\t\t\t.string()\n\t\t\t.optional()\n\t\t\t.describe(\"package version to publish as and store in `package.json`\"),\n\t},\n\tproduce({ options, take }) {\n\t\tconst allContributors = lazyValue(async () => {\n\t\t\tconst contributions = (await take(inputFromFileJSON, {\n\t\t\t\tfilePath: \".all-contributorsrc\",\n\t\t\t})) as AllContributorsData;\n\n\t\t\treturn contributions.contributors;\n\t\t});\n\n\t\tconst documentation = lazyValue(async () => readDocumentation(take));\n\n\t\tconst nvmrc = lazyValue(\n\t\t\tasync () =>\n\t\t\t\tawait take(inputFromFile, {\n\t\t\t\t\tfilePath: \".nvmrc\",\n\t\t\t\t}),\n\t\t);\n\n\t\tconst githubCliUser = lazyValue(async () => {\n\t\t\treturn swallowError(\n\t\t\t\tawait take(inputFromScript, {\n\t\t\t\t\tcommand: \"gh config get user -h github.com\",\n\t\t\t\t}),\n\t\t\t)?.stdout?.toString();\n\t\t});\n\n\t\t// TODO: Make these all use take\n\n\t\tconst gitDefaults = tryCatchLazyValueAsync(async () =>\n\t\t\tgitUrlParse(await gitRemoteOriginUrl()),\n\t\t);\n\n\t\tconst npmDefaults = tryCatchLazyValueAsync(async () => {\n\t\t\tconst whoami = (await execaCommand(`npm whoami`)).stdout;\n\t\t\treturn whoami ? await npmUser(whoami) : undefined;\n\t\t});\n\n\t\tconst packageData = lazyValue(readPackageData);\n\t\tconst packageAuthor = lazyValue(async () =>\n\t\t\tparsePackageAuthor(await packageData()),\n\t\t);\n\n\t\tconst author = lazyValue(async () =>\n\t\t\t(\n\t\t\t\t(await packageAuthor()).author ??\n\t\t\t\t(await npmDefaults())?.name ??\n\t\t\t\toptions.owner\n\t\t\t)?.toLowerCase(),\n\t\t);\n\n\t\tconst node = lazyValue(async () => {\n\t\t\tconst { engines } = await packageData();\n\n\t\t\treturn {\n\t\t\t\tminimum:\n\t\t\t\t\t(engines?.node && /[\\d+.]+/.exec(engines.node))?.[0] ?? \"18.3.0\",\n\t\t\t\tpinned: swallowError(await nvmrc()) ?? \"20.18.0\",\n\t\t\t};\n\t\t});\n\n\t\tconst version = lazyValue(async () => (await packageData()).version);\n\n\t\treturn {\n\t\t\tauthor,\n\t\t\tbin: async () => (await packageData()).bin,\n\t\t\tcontributors: allContributors,\n\t\t\tdescription: async () => (await packageData()).description,\n\t\t\tdocumentation,\n\t\t\temail: async () => readEmails(npmDefaults, packageAuthor),\n\t\t\tfunding: readFunding,\n\t\t\tguide: readGuide,\n\t\t\tlogin: author,\n\t\t\tnode,\n\t\t\towner: async () =>\n\t\t\t\t(await gitDefaults())?.organization ??\n\t\t\t\t(await packageAuthor()).author ??\n\t\t\t\t(await githubCliUser()),\n\t\t\tpackageData: async () => {\n\t\t\t\tconst original = await packageData();\n\n\t\t\t\treturn {\n\t\t\t\t\tdependencies: original.dependencies,\n\t\t\t\t\tdevDependencies: original.devDependencies,\n\t\t\t\t\tscripts: original.scripts,\n\t\t\t\t};\n\t\t\t},\n\t\t\trepository: async () =>\n\t\t\t\toptions.repository ??\n\t\t\t\t(await gitDefaults())?.name ??\n\t\t\t\t(await packageData()).name,\n\t\t\t...readDefaultsFromReadme(),\n\t\t\tversion,\n\t\t};\n\t},\n\ttemplate: {\n\t\towner: \"JoshuaKGoldberg\",\n\t\trepository: \"create-typescript-app\",\n\t},\n});\n\nexport type BaseOptions = BaseOptionsFor<typeof base>;\n"],"mappings":"AAAA,SAAyB,kBAAkB;AAC3C,SAAS,oBAAoB;AAC7B,OAAO,wBAAwB;AAC/B,OAAO,iBAAiB;AACxB,SAAS,qBAAqB;AAC9B,SAAS,yBAAyB;AAClC,SAAS,uBAAuB;AAChC,OAAO,eAAe;AACtB,OAAO,aAAa;AACpB,SAAS,SAAS;AAElB,SAAS,0BAA0B;AACnC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,iBAAiB;AAC1B,SAAS,uBAAuB;AAChC,SAAS,8BAA8B;AAEvC,SAAS,yBAAyB;AAClC,SAAS,oBAAoB;AAEtB,MAAM,OAAO,WAAW;AAAA,EAC9B,SAAS;AAAA,IACR,QAAQ,EACN,MAAM,CAAC,EAAE,QAAQ,QAAQ,GAAG,EAAE,QAAQ,YAAY,CAAC,CAAC,EACpD,SAAS,EACT,SAAS,2DAA2D;AAAA,IACtE,QAAQ,EACN,OAAO,EACP,SAAS,EACT,SAAS,2CAA2C;AAAA,IACtD,KAAK,EACH,OAAO,EACP,SAAS,EACT,SAAS,qDAAqD;AAAA,IAChE,cAAc,EACZ;AAAA,MACA,EAAE,OAAO;AAAA,QACR,YAAY,EAAE,OAAO;AAAA,QACrB,eAAe,EAAE,MAAM,EAAE,OAAO,CA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,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockAllContributors: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockAllContributors: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockAllContributors: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -1,6 +1,7 @@
1
1
  import { createSoloWorkflowFile } from "../../steps/writing/creation/dotGitHub/createSoloWorkflowFile.js";
2
2
  import { base } from "../base.js";
3
3
  import { blockPrettier } from "./blockPrettier.js";
4
+ import { blockRepositorySecrets } from "./blockRepositorySecrets.js";
4
5
  import { CommandPhase } from "./phases.js";
5
6
  const blockAllContributors = base.createBlock({
6
7
  about: {
@@ -11,6 +12,14 @@ const blockAllContributors = base.createBlock({
11
12
  addons: [
12
13
  blockPrettier({
13
14
  ignores: ["/.all-contributorsrc"]
15
+ }),
16
+ blockRepositorySecrets({
17
+ secrets: [
18
+ {
19
+ description: "a GitHub PAT with repo and workflow permissions",
20
+ name: "ACCESS_TOKEN"
21
+ }
22
+ ]
14
23
  })
15
24
  ],
16
25
  files: {
@@ -45,8 +54,8 @@ const blockAllContributors = base.createBlock({
45
54
  scripts: [
46
55
  {
47
56
  commands: [
48
- `npx -y all-contributors-cli generate`,
49
- `npx -y all-contributors-cli add ${options.owner} code,content,docs,ideas,infra,maintenance,projectManagement,tool`
57
+ `pnpx all-contributors-cli generate`,
58
+ `pnpx all-contributors-cli add ${options.owner} code,content,docs,ideas,infra,maintenance,projectManagement,tool`
50
59
  ],
51
60
  phase: CommandPhase.Process
52
61
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/next/blocks/blockAllContributors.ts"],"sourcesContent":["import { createSoloWorkflowFile } from \"../../steps/writing/creation/dotGitHub/createSoloWorkflowFile.js\";\nimport { base } from \"../base.js\";\nimport { blockPrettier } from \"./blockPrettier.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockAllContributors = base.createBlock({\n\tabout: {\n\t\tname: \"AllContributors\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockPrettier({\n\t\t\t\t\tignores: [\"/.all-contributorsrc\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".all-contributorsrc\": JSON.stringify({\n\t\t\t\t\tbadgeTemplate:\n\t\t\t\t\t\t'\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>',\n\t\t\t\t\tcontributors: options.contributors ?? [],\n\t\t\t\t\tcontributorsSortAlphabetically: true,\n\t\t\t\t\tprojectName: options.repository,\n\t\t\t\t\tprojectOwner: options.owner,\n\t\t\t\t}),\n\t\t\t\t\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"contributors.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"Contributors\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpush: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tenv: { GITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\" },\n\t\t\t\t\t\t\t\t\tuses: `JoshuaKGoldberg/all-contributors-auto-action@v0.5.0`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`npx -y all-contributors-cli generate`,\n\t\t\t\t\t\t`npx -y all-contributors-cli add ${options.owner} code,content,docs,ideas,infra,maintenance,projectManagement,tool`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,8BAA8B;AACvC,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAEtB,MAAM,uBAAuB,KAAK,YAAY;AAAA,EACpD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,cAAc;AAAA,UACb,SAAS,CAAC,sBAAsB;AAAA,QACjC,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,uBAAuB,KAAK,UAAU;AAAA,UACrC,eACC;AAAA,UACD,cAAc,QAAQ,gBAAgB,CAAC;AAAA,UACvC,gCAAgC;AAAA,UAChC,aAAa,QAAQ;AAAA,UACrB,cAAc,QAAQ;AAAA,QACvB,CAAC;AAAA,QACD,WAAW;AAAA,UACV,WAAW;AAAA,YACV,oBAAoB,uBAAuB;AAAA,cAC1C,MAAM;AAAA,cACN,IAAI;AAAA,gBACH,MAAM;AAAA,kBACL,UAAU,CAAC,MAAM;AAAA,gBAClB;AAAA,cACD;AAAA,cACA,OAAO;AAAA,gBACN,EAAE,MAAM,uBAAuB,MAAM,EAAE,eAAe,EAAE,EAAE;AAAA,gBAC1D,EAAE,MAAM,4BAA4B;AAAA,gBACpC;AAAA,kBACC,KAAK,EAAE,cAAc,8BAA8B;AAAA,kBACnD,MAAM;AAAA,gBACP;AAAA,cACD;AAAA,YACD,CAAC;AAAA,UACF;AAAA,QACD;AAAA,MACD;AAAA,MACA,SAAS;AAAA,QACR;AAAA,UACC,UAAU;AAAA,YACT;AAAA,YACA,mCAAmC,QAAQ,KAAK;AAAA,UACjD;AAAA,UACA,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/next/blocks/blockAllContributors.ts"],"sourcesContent":["import { createSoloWorkflowFile } from \"../../steps/writing/creation/dotGitHub/createSoloWorkflowFile.js\";\nimport { base } from \"../base.js\";\nimport { blockPrettier } from \"./blockPrettier.js\";\nimport { blockRepositorySecrets } from \"./blockRepositorySecrets.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nexport const blockAllContributors = base.createBlock({\n\tabout: {\n\t\tname: \"AllContributors\",\n\t},\n\tproduce({ options }) {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockPrettier({\n\t\t\t\t\tignores: [\"/.all-contributorsrc\"],\n\t\t\t\t}),\n\t\t\t\tblockRepositorySecrets({\n\t\t\t\t\tsecrets: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdescription: \"a GitHub PAT with repo and workflow permissions\",\n\t\t\t\t\t\t\tname: \"ACCESS_TOKEN\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\".all-contributorsrc\": JSON.stringify({\n\t\t\t\t\tbadgeTemplate:\n\t\t\t\t\t\t'\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>',\n\t\t\t\t\tcontributors: options.contributors ?? [],\n\t\t\t\t\tcontributorsSortAlphabetically: true,\n\t\t\t\t\tprojectName: options.repository,\n\t\t\t\t\tprojectOwner: options.owner,\n\t\t\t\t}),\n\t\t\t\t\".github\": {\n\t\t\t\t\tworkflows: {\n\t\t\t\t\t\t\"contributors.yml\": createSoloWorkflowFile({\n\t\t\t\t\t\t\tname: \"Contributors\",\n\t\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\t\tpush: {\n\t\t\t\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tsteps: [\n\t\t\t\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tenv: { GITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\" },\n\t\t\t\t\t\t\t\t\tuses: `JoshuaKGoldberg/all-contributors-auto-action@v0.5.0`,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`pnpx all-contributors-cli generate`,\n\t\t\t\t\t\t`pnpx all-contributors-cli add ${options.owner} code,content,docs,ideas,infra,maintenance,projectManagement,tool`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,8BAA8B;AACvC,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,8BAA8B;AACvC,SAAS,oBAAoB;AAEtB,MAAM,uBAAuB,KAAK,YAAY;AAAA,EACpD,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ,EAAE,QAAQ,GAAG;AACpB,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,cAAc;AAAA,UACb,SAAS,CAAC,sBAAsB;AAAA,QACjC,CAAC;AAAA,QACD,uBAAuB;AAAA,UACtB,SAAS;AAAA,YACR;AAAA,cACC,aAAa;AAAA,cACb,MAAM;AAAA,YACP;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,uBAAuB,KAAK,UAAU;AAAA,UACrC,eACC;AAAA,UACD,cAAc,QAAQ,gBAAgB,CAAC;AAAA,UACvC,gCAAgC;AAAA,UAChC,aAAa,QAAQ;AAAA,UACrB,cAAc,QAAQ;AAAA,QACvB,CAAC;AAAA,QACD,WAAW;AAAA,UACV,WAAW;AAAA,YACV,oBAAoB,uBAAuB;AAAA,cAC1C,MAAM;AAAA,cACN,IAAI;AAAA,gBACH,MAAM;AAAA,kBACL,UAAU,CAAC,MAAM;AAAA,gBAClB;AAAA,cACD;AAAA,cACA,OAAO;AAAA,gBACN,EAAE,MAAM,uBAAuB,MAAM,EAAE,eAAe,EAAE,EAAE;AAAA,gBAC1D,EAAE,MAAM,4BAA4B;AAAA,gBACpC;AAAA,kBACC,KAAK,EAAE,cAAc,8BAA8B;AAAA,kBACnD,MAAM;AAAA,gBACP;AAAA,cACD;AAAA,YACD,CAAC;AAAA,UACF;AAAA,QACD;AAAA,MACD;AAAA,MACA,SAAS;AAAA,QACR;AAAA,UACC,UAAU;AAAA,YACT;AAAA,YACA,iCAAiC,QAAQ,KAAK;AAAA,UAC/C;AAAA,UACA,OAAO,aAAa;AAAA,QACrB;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockAreTheTypesWrong: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockAreTheTypesWrong: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockAreTheTypesWrong: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -5,6 +5,7 @@ declare const blockCSpell: create.BlockWithAddons<{
5
5
  words: string[];
6
6
  }, {
7
7
  description: string;
8
+ directory: string;
8
9
  email: {
9
10
  github: string;
10
11
  npm: string;
@@ -15,7 +16,6 @@ declare const blockCSpell: create.BlockWithAddons<{
15
16
  access?: "public" | "restricted" | undefined;
16
17
  author?: string | undefined;
17
18
  bin?: string | undefined;
18
- login?: string | undefined;
19
19
  contributors?: {
20
20
  name: string;
21
21
  avatar_url: string;
@@ -44,7 +44,6 @@ declare const blockCSpell: create.BlockWithAddons<{
44
44
  devDependencies?: Record<string, string> | undefined;
45
45
  scripts?: Record<string, string> | undefined;
46
46
  } | undefined;
47
- preserveGeneratedFrom?: boolean | undefined;
48
47
  version?: string | undefined;
49
48
  }>;
50
49
 
@@ -1,10 +1,13 @@
1
+ import { getObjectStringsDeep } from "object-strings-deep";
1
2
  import { z } from "zod";
2
3
  import { base } from "../base.js";
4
+ import { resolveBin } from "../utils/resolveBin.js";
3
5
  import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
4
6
  import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
5
7
  import { blockPackageJson } from "./blockPackageJson.js";
6
8
  import { blockVSCode } from "./blockVSCode.js";
7
9
  import { getPackageDependencies } from "./packageData.js";
10
+ import { CommandPhase } from "./phases.js";
8
11
  const filesGlob = `"**" ".github/**/*"`;
9
12
  const blockCSpell = base.createBlock({
10
13
  about: {
@@ -14,6 +17,19 @@ const blockCSpell = base.createBlock({
14
17
  ignores: z.array(z.string()).default([]),
15
18
  words: z.array(z.string()).default([])
16
19
  },
20
+ initialize({ options }) {
21
+ const wordArgs = getObjectStringsDeep(options).map((word) => `--words "${word.replaceAll(`"`, " ")}"`).join(" ");
22
+ return {
23
+ scripts: [
24
+ {
25
+ commands: [
26
+ `node ${resolveBin("cspell-populate-words/bin/index.mjs")} ${wordArgs}`
27
+ ],
28
+ phase: CommandPhase.Process
29
+ }
30
+ ]
31
+ };
32
+ },
17
33
  produce({ addons }) {
18
34
  const { ignores, words } = addons;
19
35
  return {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/next/blocks/blockCSpell.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { getPackageDependencies } from \"./packageData.js\";\n\nconst filesGlob = `\"**\" \".github/**/*\"`;\n\nexport const blockCSpell = base.createBlock({\n\tabout: {\n\t\tname: \"CSpell\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t\twords: z.array(z.string()).default([]),\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores, words } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:spelling\\` ([cspell](https://cspell.org)): Spell checks across all source files`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\textensions: [\"streetsidesoftware.code-spell-checker\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Spelling\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:spelling\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"cspell\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:spelling\": `cspell ${filesGlob}`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"cspell.json\": JSON.stringify({\n\t\t\t\t\tdictionaries: [\"npm\", \"node\", \"typescript\"],\n\t\t\t\t\tignorePaths: [\n\t\t\t\t\t\t\".github\",\n\t\t\t\t\t\t\"CHANGELOG.md\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"node_modules\",\n\t\t\t\t\t\t\"pnpm-lock.yaml\",\n\t\t\t\t\t\t...ignores,\n\t\t\t\t\t].sort(),\n\t\t\t\t\t...(words.length && { words: words.sort() }),\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,8BAA8B;AAEvC,MAAM,YAAY;AAEX,MAAM,cAAc,KAAK,YAAY;AAAA,EAC3C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,IACvC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,EACtC;AAAA,EACA,QAAQ,EAAE,OAAO,GAAG;AACnB,UAAM,EAAE,SAAS,MAAM,IAAI;AAE3B,WAAO;AAAA,MACN,QAAQ;AAAA,QACP,qBAAqB;AAAA,UACpB,UAAU;AAAA,YACT,SAAS;AAAA,cACR,UAAU;AAAA,gBACT,OAAO;AAAA,kBACN;AAAA,gBACD;AAAA,cACD;AAAA,YACD;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,YAAY;AAAA,UACX,YAAY,CAAC,uCAAuC;AAAA,QACrD,CAAC;AAAA,QACD,qBAAqB;AAAA,UACpB,MAAM;AAAA,YACL;AAAA,cACC,MAAM;AAAA,cACN,OAAO,CAAC,EAAE,KAAK,qBAAqB,CAAC;AAAA,YACtC;AAAA,UACD;AAAA,QACD,CAAC;AAAA,QACD,iBAAiB;AAAA,UAChB,YAAY;AAAA,YACX,iBAAiB,uBAAuB,QAAQ;AAAA,YAChD,SAAS;AAAA,cACR,iBAAiB,UAAU,SAAS;AAAA,YACrC;AAAA,UACD;AAAA,QACD,CAAC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,QACN,eAAe,KAAK,UAAU;AAAA,UAC7B,cAAc,CAAC,OAAO,QAAQ,YAAY;AAAA,UAC1C,aAAa;AAAA,YACZ;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA,GAAG;AAAA,UACJ,EAAE,KAAK;AAAA,UACP,GAAI,MAAM,UAAU,EAAE,OAAO,MAAM,KAAK,EAAE;AAAA,QAC3C,CAAC;AAAA,MACF;AAAA,IACD;AAAA,EACD;AACD,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/next/blocks/blockCSpell.ts"],"sourcesContent":["import { getObjectStringsDeep } from \"object-strings-deep\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { resolveBin } from \"../utils/resolveBin.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { getPackageDependencies } from \"./packageData.js\";\nimport { CommandPhase } from \"./phases.js\";\n\nconst filesGlob = `\"**\" \".github/**/*\"`;\n\nexport const blockCSpell = base.createBlock({\n\tabout: {\n\t\tname: \"CSpell\",\n\t},\n\taddons: {\n\t\tignores: z.array(z.string()).default([]),\n\t\twords: z.array(z.string()).default([]),\n\t},\n\tinitialize({ options }) {\n\t\tconst wordArgs = getObjectStringsDeep(options)\n\t\t\t.map((word) => `--words \"${word.replaceAll(`\"`, \" \")}\"`)\n\t\t\t.join(\" \");\n\n\t\treturn {\n\t\t\tscripts: [\n\t\t\t\t{\n\t\t\t\t\tcommands: [\n\t\t\t\t\t\t`node ${resolveBin(\"cspell-populate-words/bin/index.mjs\")} ${wordArgs}`,\n\t\t\t\t\t],\n\t\t\t\t\tphase: CommandPhase.Process,\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t},\n\tproduce({ addons }) {\n\t\tconst { ignores, words } = addons;\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tLinting: {\n\t\t\t\t\t\t\tcontents: {\n\t\t\t\t\t\t\t\titems: [\n\t\t\t\t\t\t\t\t\t`- \\`pnpm lint:spelling\\` ([cspell](https://cspell.org)): Spell checks across all source files`,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\textensions: [\"streetsidesoftware.code-spell-checker\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Lint Spelling\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm lint:spelling\" }],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\"cspell\"),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\t\"lint:spelling\": `cspell ${filesGlob}`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"cspell.json\": JSON.stringify({\n\t\t\t\t\tdictionaries: [\"npm\", \"node\", \"typescript\"],\n\t\t\t\t\tignorePaths: [\n\t\t\t\t\t\t\".github\",\n\t\t\t\t\t\t\"CHANGELOG.md\",\n\t\t\t\t\t\t\"lib\",\n\t\t\t\t\t\t\"node_modules\",\n\t\t\t\t\t\t\"pnpm-lock.yaml\",\n\t\t\t\t\t\t...ignores,\n\t\t\t\t\t].sort(),\n\t\t\t\t\t...(words.length && { words: words.sort() }),\n\t\t\t\t}),\n\t\t\t},\n\t\t};\n\t},\n});\n"],"mappings":"AAAA,SAAS,4BAA4B;AACrC,SAAS,SAAS;AAElB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAC3B,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AACrC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,8BAA8B;AACvC,SAAS,oBAAoB;AAE7B,MAAM,YAAY;AAEX,MAAM,cAAc,KAAK,YAAY;AAAA,EAC3C,OAAO;AAAA,IACN,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,IACvC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;AAAA,EACtC;AAAA,EACA,WAAW,EAAE,QAAQ,GAAG;AACvB,UAAM,WAAW,qBAAqB,OAAO,EAC3C,IAAI,CAAC,SAAS,YAAY,KAAK,WAAW,KAAK,GAAG,CAAC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 'create';
2
2
 
3
3
  declare const blockContributingDocs: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockContributingDocs: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockContributingDocs: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockContributorCovenant: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockContributorCovenant: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockContributorCovenant: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -16,6 +16,7 @@ declare const blockDevelopmentDocs: create.BlockWithAddons<{
16
16
  }>;
17
17
  }, {
18
18
  description: string;
19
+ directory: string;
19
20
  email: {
20
21
  github: string;
21
22
  npm: string;
@@ -26,7 +27,6 @@ declare const blockDevelopmentDocs: create.BlockWithAddons<{
26
27
  access?: "public" | "restricted" | undefined;
27
28
  author?: string | undefined;
28
29
  bin?: string | undefined;
29
- login?: string | undefined;
30
30
  contributors?: {
31
31
  name: string;
32
32
  avatar_url: string;
@@ -55,7 +55,6 @@ declare const blockDevelopmentDocs: create.BlockWithAddons<{
55
55
  devDependencies?: Record<string, string> | undefined;
56
56
  scripts?: Record<string, string> | undefined;
57
57
  } | undefined;
58
- preserveGeneratedFrom?: boolean | undefined;
59
58
  version?: string | undefined;
60
59
  }>;
61
60
 
@@ -27,6 +27,7 @@ declare const blockESLint: create.BlockWithAddons<{
27
27
  beforeLint?: string | undefined;
28
28
  }, {
29
29
  description: string;
30
+ directory: string;
30
31
  email: {
31
32
  github: string;
32
33
  npm: string;
@@ -37,7 +38,6 @@ declare const blockESLint: create.BlockWithAddons<{
37
38
  access?: "public" | "restricted" | undefined;
38
39
  author?: string | undefined;
39
40
  bin?: string | undefined;
40
- login?: string | undefined;
41
41
  contributors?: {
42
42
  name: string;
43
43
  avatar_url: string;
@@ -66,7 +66,6 @@ declare const blockESLint: create.BlockWithAddons<{
66
66
  devDependencies?: Record<string, string> | undefined;
67
67
  scripts?: Record<string, string> | undefined;
68
68
  } | undefined;
69
- preserveGeneratedFrom?: boolean | undefined;
70
69
  version?: string | undefined;
71
70
  }>;
72
71
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockESLintComments: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockESLintComments: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockESLintComments: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockESLintJSDoc: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockESLintJSDoc: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockESLintJSDoc: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockESLintJSONC: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockESLintJSONC: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockESLintJSONC: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockESLintMarkdown: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockESLintMarkdown: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockESLintMarkdown: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockESLintMoreStyling: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockESLintMoreStyling: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockESLintMoreStyling: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockESLintNode: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockESLintNode: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockESLintNode: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockESLintPackageJson: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockESLintPackageJson: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockESLintPackageJson: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockESLintPerfectionist: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockESLintPerfectionist: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockESLintPerfectionist: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockESLintRegexp: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockESLintRegexp: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockESLintRegexp: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockESLintYML: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockESLintYML: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockESLintYML: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -4,6 +4,7 @@ declare const blockExampleFiles: create.BlockWithAddons<{
4
4
  files: Record<string, string>;
5
5
  }, {
6
6
  description: string;
7
+ directory: string;
7
8
  email: {
8
9
  github: string;
9
10
  npm: string;
@@ -14,7 +15,6 @@ declare const blockExampleFiles: create.BlockWithAddons<{
14
15
  access?: "public" | "restricted" | undefined;
15
16
  author?: string | undefined;
16
17
  bin?: string | undefined;
17
- login?: string | undefined;
18
18
  contributors?: {
19
19
  name: string;
20
20
  avatar_url: string;
@@ -43,7 +43,6 @@ declare const blockExampleFiles: create.BlockWithAddons<{
43
43
  devDependencies?: Record<string, string> | undefined;
44
44
  scripts?: Record<string, string> | undefined;
45
45
  } | undefined;
46
- preserveGeneratedFrom?: boolean | undefined;
47
46
  version?: string | undefined;
48
47
  }>;
49
48
 
@@ -2,6 +2,7 @@ import * as create from 'create';
2
2
 
3
3
  declare const blockFunding: create.BlockWithoutAddons<{
4
4
  description: string;
5
+ directory: string;
5
6
  email: {
6
7
  github: string;
7
8
  npm: string;
@@ -12,7 +13,6 @@ declare const blockFunding: create.BlockWithoutAddons<{
12
13
  access?: "public" | "restricted" | undefined;
13
14
  author?: string | undefined;
14
15
  bin?: string | undefined;
15
- login?: string | undefined;
16
16
  contributors?: {
17
17
  name: string;
18
18
  avatar_url: string;
@@ -41,7 +41,6 @@ declare const blockFunding: create.BlockWithoutAddons<{
41
41
  devDependencies?: Record<string, string> | undefined;
42
42
  scripts?: Record<string, string> | undefined;
43
43
  } | undefined;
44
- preserveGeneratedFrom?: boolean | undefined;
45
44
  version?: string | undefined;
46
45
  }>;
47
46
 
@@ -14,6 +14,7 @@ declare const blockGitHubActionsCI: create.BlockWithAddons<{
14
14
  }[] | undefined;
15
15
  }, {
16
16
  description: string;
17
+ directory: string;
17
18
  email: {
18
19
  github: string;
19
20
  npm: string;
@@ -24,7 +25,6 @@ declare const blockGitHubActionsCI: create.BlockWithAddons<{
24
25
  access?: "public" | "restricted" | undefined;
25
26
  author?: string | undefined;
26
27
  bin?: string | undefined;
27
- login?: string | undefined;
28
28
  contributors?: {
29
29
  name: string;
30
30
  avatar_url: string;
@@ -53,7 +53,6 @@ declare const blockGitHubActionsCI: create.BlockWithAddons<{
53
53
  devDependencies?: Record<string, string> | undefined;
54
54
  scripts?: Record<string, string> | undefined;
55
55
  } | undefined;
56
- preserveGeneratedFrom?: boolean | undefined;
57
56
  version?: string | undefined;
58
57
  }>;
59
58