create-typescript-app 2.65.1 → 2.65.3

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 (166) hide show
  1. package/dist/base.d.mts +4 -4
  2. package/dist/base.mjs +1 -0
  3. package/dist/blocks/actions/resolveUses.d.mts +2 -3
  4. package/dist/blocks/actions/steps.d.mts +5 -6
  5. package/dist/blocks/bin/getPrimaryBin.d.mts +2 -3
  6. package/dist/blocks/blockAllContributors.d.mts +3 -3
  7. package/dist/blocks/blockAllContributors.mjs +3 -6
  8. package/dist/blocks/blockAreTheTypesWrong.d.mts +3 -3
  9. package/dist/blocks/blockBin.d.mts +3 -3
  10. package/dist/blocks/blockCSpell.d.mts +3 -3
  11. package/dist/blocks/blockCTATransitions.d.mts +3 -3
  12. package/dist/blocks/blockCTATransitions.mjs +5 -8
  13. package/dist/blocks/blockCodecov.d.mts +3 -3
  14. package/dist/blocks/blockContributingDocs.d.mts +3 -3
  15. package/dist/blocks/blockContributorCovenant.d.mts +3 -3
  16. package/dist/blocks/blockDevelopmentDocs.d.mts +3 -3
  17. package/dist/blocks/blockESLint.d.mts +3 -3
  18. package/dist/blocks/blockESLint.mjs +5 -4
  19. package/dist/blocks/blockESLintComments.d.mts +3 -3
  20. package/dist/blocks/blockESLintJSDoc.d.mts +3 -3
  21. package/dist/blocks/blockESLintJSONC.d.mts +3 -3
  22. package/dist/blocks/blockESLintMarkdown.d.mts +3 -3
  23. package/dist/blocks/blockESLintMarkdownLinks.d.mts +3 -3
  24. package/dist/blocks/blockESLintMoreStyling.d.mts +4 -4
  25. package/dist/blocks/blockESLintNode.d.mts +3 -3
  26. package/dist/blocks/blockESLintPackageJson.d.mts +3 -3
  27. package/dist/blocks/blockESLintPerfectionist.d.mts +3 -3
  28. package/dist/blocks/blockESLintPlugin.d.mts +3 -3
  29. package/dist/blocks/blockESLintRegexp.d.mts +3 -3
  30. package/dist/blocks/blockESLintYML.d.mts +3 -3
  31. package/dist/blocks/blockExampleFiles.d.mts +3 -3
  32. package/dist/blocks/blockExports.d.mts +3 -3
  33. package/dist/blocks/blockExports.mjs +10 -3
  34. package/dist/blocks/blockFunding.d.mts +3 -3
  35. package/dist/blocks/blockFunding.mjs +2 -1
  36. package/dist/blocks/blockGitHubActionsCI.d.mts +3 -3
  37. package/dist/blocks/blockGitHubActionsCI.mjs +7 -8
  38. package/dist/blocks/blockGitHubApps.d.mts +3 -3
  39. package/dist/blocks/blockGitHubIssueTemplates.d.mts +3 -3
  40. package/dist/blocks/blockGitHubIssueTemplates.mjs +9 -17
  41. package/dist/blocks/blockGitHubPRTemplate.d.mts +3 -3
  42. package/dist/blocks/blockGitignore.d.mts +3 -3
  43. package/dist/blocks/blockKnip.d.mts +3 -3
  44. package/dist/blocks/blockKnip.mjs +5 -3
  45. package/dist/blocks/blockMITLicense.d.mts +3 -3
  46. package/dist/blocks/blockNcc.d.mts +3 -3
  47. package/dist/blocks/blockNvmrc.d.mts +3 -3
  48. package/dist/blocks/blockOctoGuide.d.mts +3 -3
  49. package/dist/blocks/blockOctoGuide.mjs +4 -7
  50. package/dist/blocks/blockOctoGuideStrict.d.mts +3 -3
  51. package/dist/blocks/blockPackageJson.d.mts +3 -3
  52. package/dist/blocks/blockPnpmDedupe.d.mts +3 -3
  53. package/dist/blocks/blockPrettier.d.mts +3 -3
  54. package/dist/blocks/blockPrettier.mjs +4 -7
  55. package/dist/blocks/blockPrettierPluginCurly.d.mts +3 -3
  56. package/dist/blocks/blockPrettierPluginPackageJson.d.mts +3 -3
  57. package/dist/blocks/blockPrettierPluginPaddingLines.d.mts +3 -3
  58. package/dist/blocks/blockPrettierPluginSentencesPerLine.d.mts +3 -3
  59. package/dist/blocks/blockPrettierPluginSh.d.mts +3 -3
  60. package/dist/blocks/blockREADME.d.mts +3 -3
  61. package/dist/blocks/blockReleaseIt.d.mts +3 -3
  62. package/dist/blocks/blockReleaseIt.mjs +5 -8
  63. package/dist/blocks/blockRemoveDependencies.d.mts +3 -3
  64. package/dist/blocks/blockRemoveFiles.d.mts +3 -3
  65. package/dist/blocks/blockRemoveWorkflows.d.mts +3 -3
  66. package/dist/blocks/blockRenovate.d.mts +3 -3
  67. package/dist/blocks/blockRepositoryBranchRuleset.d.mts +3 -3
  68. package/dist/blocks/blockRepositoryLabels.d.mts +3 -3
  69. package/dist/blocks/blockRepositorySecrets.d.mts +3 -3
  70. package/dist/blocks/blockRepositorySettings.d.mts +3 -3
  71. package/dist/blocks/blockSecurityDocs.d.mts +3 -3
  72. package/dist/blocks/blockSideEffects.d.mts +3 -3
  73. package/dist/blocks/blockTSDown.d.mts +3 -3
  74. package/dist/blocks/blockTSDown.mjs +3 -2
  75. package/dist/blocks/blockTemplatedWith.d.mts +3 -3
  76. package/dist/blocks/blockTypeScript.d.mts +3 -3
  77. package/dist/blocks/blockVSCode.d.mts +3 -3
  78. package/dist/blocks/blockVitest.d.mts +3 -3
  79. package/dist/blocks/blockWebExt.d.mts +3 -3
  80. package/dist/blocks/codecov/findCodecovStep.d.mts +3 -4
  81. package/dist/blocks/eslint/blockESLintIntake.d.mts +2 -3
  82. package/dist/blocks/eslint/blockESLintPluginIntake.d.mts +2 -3
  83. package/dist/blocks/eslint/getScriptFileExtension.d.mts +3 -4
  84. package/dist/blocks/eslint/mergeAllExtensions.d.mts +2 -3
  85. package/dist/blocks/eslint/schemas.d.mts +15 -16
  86. package/dist/blocks/files/createJobName.d.mts +2 -3
  87. package/dist/blocks/files/createMultiWorkflowFile.d.mts +5 -6
  88. package/dist/blocks/files/createSoloWorkflowFile.d.mts +2 -3
  89. package/dist/blocks/files/formatIgnoreFile.d.mts +2 -3
  90. package/dist/blocks/files/formatWorkflowYaml.d.mts +2 -3
  91. package/dist/blocks/files/formatYaml.d.mts +2 -3
  92. package/dist/blocks/files/removeUsesQuotes.d.mts +2 -3
  93. package/dist/blocks/files/withPreviously.d.mts +4 -0
  94. package/dist/blocks/files/withPreviously.mjs +6 -0
  95. package/dist/blocks/getInstallationSuggestions.d.mts +2 -3
  96. package/dist/blocks/index.d.mts +53 -2
  97. package/dist/blocks/intake/intakeFile.d.mts +2 -3
  98. package/dist/blocks/intake/intakeFileAsJson.d.mts +2 -3
  99. package/dist/blocks/intake/intakeFileAsYaml.d.mts +3 -4
  100. package/dist/blocks/intake/intakeFileDefineConfig.d.mts +2 -3
  101. package/dist/blocks/intake/intakeFileExportObject.d.mts +2 -3
  102. package/dist/blocks/options.fakes.d.mts +2 -3
  103. package/dist/blocks/outcomeLabels.d.mts +2 -3
  104. package/dist/blocks/phases.d.mts +2 -3
  105. package/dist/constants.d.mts +2 -3
  106. package/dist/data/contributions.d.mts +2 -3
  107. package/dist/data/packageData.d.mts +4 -5
  108. package/dist/index.d.mts +4 -2
  109. package/dist/inputs/inputFromDirectory.d.mts +2 -3
  110. package/dist/inputs/inputFromOctokit.d.mts +2 -3
  111. package/dist/options/readAccess.d.mts +2 -3
  112. package/dist/options/readAllContributors.d.mts +2 -3
  113. package/dist/options/readAuthor.d.mts +2 -3
  114. package/dist/options/readBin.d.mts +2 -3
  115. package/dist/options/readBundle.d.mts +2 -3
  116. package/dist/options/readCodecovToken.d.mts +2 -3
  117. package/dist/options/readDescription.d.mts +2 -3
  118. package/dist/options/readDescriptionFromReadme.d.mts +2 -3
  119. package/dist/options/readDevelopmentDocumentation.d.mts +2 -3
  120. package/dist/options/readDocumentation.d.mts +2 -3
  121. package/dist/options/readEmailFromCodeOfConduct.d.mts +2 -3
  122. package/dist/options/readEmailFromGit.d.mts +2 -3
  123. package/dist/options/readEmailFromNpm.d.mts +2 -3
  124. package/dist/options/readEmails.d.mts +2 -3
  125. package/dist/options/readEmoji.d.mts +2 -3
  126. package/dist/options/readExistingLabels.d.mts +2 -3
  127. package/dist/options/readFileAsJson.d.mts +2 -3
  128. package/dist/options/readFileSafe.d.mts +2 -3
  129. package/dist/options/readFunding.d.mts +2 -3
  130. package/dist/options/readFunding.mjs +4 -1
  131. package/dist/options/readGitDefaults.d.mts +2 -3
  132. package/dist/options/readGuide.d.mts +2 -3
  133. package/dist/options/readKeywords.d.mts +2 -3
  134. package/dist/options/readLogo.d.mts +2 -3
  135. package/dist/options/readLogoSizing.d.mts +3 -4
  136. package/dist/options/readNode.d.mts +2 -3
  137. package/dist/options/readNpmDefaults.d.mts +2 -3
  138. package/dist/options/readOwner.d.mts +2 -3
  139. package/dist/options/readPackageAuthor.d.mts +3 -4
  140. package/dist/options/readPackageData.d.mts +2 -3
  141. package/dist/options/readPnpm.d.mts +2 -3
  142. package/dist/options/readReadmeAdditional.d.mts +2 -3
  143. package/dist/options/readReadmeExplainer.d.mts +2 -3
  144. package/dist/options/readReadmeFootnotes.d.mts +3 -4
  145. package/dist/options/readReadmeUsage.d.mts +2 -3
  146. package/dist/options/readRepository.d.mts +2 -3
  147. package/dist/options/readRulesetId.d.mts +2 -3
  148. package/dist/options/readTitle.d.mts +2 -3
  149. package/dist/options/readWords.d.mts +2 -3
  150. package/dist/options/readWorkflowsVersions.d.mts +2 -3
  151. package/dist/presets/common.d.mts +3 -3
  152. package/dist/presets/everything.d.mts +3 -3
  153. package/dist/presets/index.d.mts +5 -2
  154. package/dist/presets/minimal.d.mts +3 -3
  155. package/dist/schemas.d.mts +15 -16
  156. package/dist/template.d.mts +3 -3
  157. package/dist/types.d.mts +4 -5
  158. package/dist/utils/htmlToTextSafe.d.mts +2 -3
  159. package/dist/utils/parseDefineConfig.d.mts +2 -3
  160. package/dist/utils/resolveBin.d.mts +2 -3
  161. package/dist/utils/resolveEmails.d.mts +2 -3
  162. package/dist/utils/swallowError.d.mts +2 -3
  163. package/dist/utils/swallowErrorAsync.d.mts +2 -3
  164. package/dist/utils/trimPrecedingSlash.d.mts +2 -3
  165. package/dist/utils/tryCatch.d.mts +2 -3
  166. package/package.json +27 -27
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockPrettier.d.ts
2
- declare const blockPrettier: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockPrettier: import("bingo-stratum").BlockWithAddons<{
3
3
  ignores: string[];
4
4
  overrides: {
5
5
  files: string;
@@ -65,6 +65,7 @@ declare const blockPrettier: import("bingo-stratum").BlockWithAddons<{
65
65
  packageData?: {
66
66
  dependencies?: Record<string, string> | undefined;
67
67
  devDependencies?: Record<string, string> | undefined;
68
+ main?: string | undefined;
68
69
  peerDependencies?: Record<string, string> | undefined;
69
70
  peerDependenciesMeta?: Record<string, unknown> | undefined;
70
71
  scripts?: Record<string, string | undefined> | undefined;
@@ -79,5 +80,4 @@ declare const blockPrettier: import("bingo-stratum").BlockWithAddons<{
79
80
  pinned?: boolean | undefined;
80
81
  }>> | undefined;
81
82
  }>;
82
- //#endregion
83
- export { blockPrettier };
83
+ //#endregion
@@ -2,6 +2,7 @@ import { getPackageDependencies } from "../data/packageData.mjs";
2
2
  import { base } from "../base.mjs";
3
3
  import { CommandPhase } from "./phases.mjs";
4
4
  import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
5
+ import { withPreviously } from "./files/withPreviously.mjs";
5
6
  import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
6
7
  import { blockPackageJson } from "./blockPackageJson.mjs";
7
8
  import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
@@ -66,14 +67,14 @@ pnpm format --write
66
67
  "/pnpm-lock.yaml",
67
68
  ...ignores
68
69
  ].sort()),
69
- "prettier.config.ts": `import type { Config } from "prettier";
70
+ "prettier.config.ts": withPreviously(`import type { Config } from "prettier";
70
71
 
71
72
  export default ${JSON.stringify({
72
73
  ...overrides.length && { overrides: overrides.sort() },
73
74
  ...plugins.length && { plugins: plugins.sort() },
74
75
  useTabs: true
75
76
  })} satisfies Config;
76
- `
77
+ `, [".prettierrc.json"])
77
78
  },
78
79
  scripts: [{
79
80
  commands: [...runBefore, "pnpm format --write"],
@@ -84,11 +85,7 @@ export default ${JSON.stringify({
84
85
  transition() {
85
86
  return { addons: [
86
87
  blockRemoveDependencies({ dependencies: ["eslint-config-prettier", "eslint-plugin-prettier"] }),
87
- blockRemoveFiles({ files: [
88
- ".prettierrc",
89
- ".prettierrc.{c*,js,m*,t*}",
90
- "prettier.config*"
91
- ] }),
88
+ blockRemoveFiles({ files: [".prettierrc*", "prettier.config.{c,j,m}*"] }),
92
89
  blockRemoveWorkflows({ workflows: ["format", "prettier"] })
93
90
  ] };
94
91
  }
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockPrettierPluginCurly.d.ts
2
- declare const blockPrettierPluginCurly: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockPrettierPluginCurly: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -55,6 +55,7 @@ declare const blockPrettierPluginCurly: import("bingo-stratum").BlockWithoutAddo
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
58
+ main?: string | undefined;
58
59
  peerDependencies?: Record<string, string> | undefined;
59
60
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
61
  scripts?: Record<string, string | undefined> | undefined;
@@ -69,5 +70,4 @@ declare const blockPrettierPluginCurly: import("bingo-stratum").BlockWithoutAddo
69
70
  pinned?: boolean | undefined;
70
71
  }>> | undefined;
71
72
  }>;
72
- //#endregion
73
- export { blockPrettierPluginCurly };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockPrettierPluginPackageJson.d.ts
2
- declare const blockPrettierPluginPackageJson: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockPrettierPluginPackageJson: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -55,6 +55,7 @@ declare const blockPrettierPluginPackageJson: import("bingo-stratum").BlockWitho
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
58
+ main?: string | undefined;
58
59
  peerDependencies?: Record<string, string> | undefined;
59
60
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
61
  scripts?: Record<string, string | undefined> | undefined;
@@ -69,5 +70,4 @@ declare const blockPrettierPluginPackageJson: import("bingo-stratum").BlockWitho
69
70
  pinned?: boolean | undefined;
70
71
  }>> | undefined;
71
72
  }>;
72
- //#endregion
73
- export { blockPrettierPluginPackageJson };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockPrettierPluginPaddingLines.d.ts
2
- declare const blockPrettierPluginPaddingLines: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockPrettierPluginPaddingLines: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -55,6 +55,7 @@ declare const blockPrettierPluginPaddingLines: import("bingo-stratum").BlockWith
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
58
+ main?: string | undefined;
58
59
  peerDependencies?: Record<string, string> | undefined;
59
60
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
61
  scripts?: Record<string, string | undefined> | undefined;
@@ -69,5 +70,4 @@ declare const blockPrettierPluginPaddingLines: import("bingo-stratum").BlockWith
69
70
  pinned?: boolean | undefined;
70
71
  }>> | undefined;
71
72
  }>;
72
- //#endregion
73
- export { blockPrettierPluginPaddingLines };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockPrettierPluginSentencesPerLine.d.ts
2
- declare const blockPrettierPluginSentencesPerLine: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockPrettierPluginSentencesPerLine: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -55,6 +55,7 @@ declare const blockPrettierPluginSentencesPerLine: import("bingo-stratum").Block
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
58
+ main?: string | undefined;
58
59
  peerDependencies?: Record<string, string> | undefined;
59
60
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
61
  scripts?: Record<string, string | undefined> | undefined;
@@ -69,5 +70,4 @@ declare const blockPrettierPluginSentencesPerLine: import("bingo-stratum").Block
69
70
  pinned?: boolean | undefined;
70
71
  }>> | undefined;
71
72
  }>;
72
- //#endregion
73
- export { blockPrettierPluginSentencesPerLine };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockPrettierPluginSh.d.ts
2
- declare const blockPrettierPluginSh: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockPrettierPluginSh: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -55,6 +55,7 @@ declare const blockPrettierPluginSh: import("bingo-stratum").BlockWithoutAddons<
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
58
+ main?: string | undefined;
58
59
  peerDependencies?: Record<string, string> | undefined;
59
60
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
61
  scripts?: Record<string, string | undefined> | undefined;
@@ -69,5 +70,4 @@ declare const blockPrettierPluginSh: import("bingo-stratum").BlockWithoutAddons<
69
70
  pinned?: boolean | undefined;
70
71
  }>> | undefined;
71
72
  }>;
72
- //#endregion
73
- export { blockPrettierPluginSh };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockREADME.d.ts
2
- declare const blockREADME: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockREADME: import("bingo-stratum").BlockWithAddons<{
3
3
  badges: {
4
4
  alt: string;
5
5
  src: string;
@@ -68,6 +68,7 @@ declare const blockREADME: import("bingo-stratum").BlockWithAddons<{
68
68
  packageData?: {
69
69
  dependencies?: Record<string, string> | undefined;
70
70
  devDependencies?: Record<string, string> | undefined;
71
+ main?: string | undefined;
71
72
  peerDependencies?: Record<string, string> | undefined;
72
73
  peerDependenciesMeta?: Record<string, unknown> | undefined;
73
74
  scripts?: Record<string, string | undefined> | undefined;
@@ -82,5 +83,4 @@ declare const blockREADME: import("bingo-stratum").BlockWithAddons<{
82
83
  pinned?: boolean | undefined;
83
84
  }>> | undefined;
84
85
  }>;
85
- //#endregion
86
- export { blockREADME };
86
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockReleaseIt.d.ts
2
- declare const blockReleaseIt: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockReleaseIt: import("bingo-stratum").BlockWithAddons<{
3
3
  builders: {
4
4
  order: number;
5
5
  run: string;
@@ -60,6 +60,7 @@ declare const blockReleaseIt: import("bingo-stratum").BlockWithAddons<{
60
60
  packageData?: {
61
61
  dependencies?: Record<string, string> | undefined;
62
62
  devDependencies?: Record<string, string> | undefined;
63
+ main?: string | undefined;
63
64
  peerDependencies?: Record<string, string> | undefined;
64
65
  peerDependenciesMeta?: Record<string, unknown> | undefined;
65
66
  scripts?: Record<string, string | undefined> | undefined;
@@ -74,5 +75,4 @@ declare const blockReleaseIt: import("bingo-stratum").BlockWithAddons<{
74
75
  pinned?: boolean | undefined;
75
76
  }>> | undefined;
76
77
  }>;
77
- //#endregion
78
- export { blockReleaseIt };
78
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { getPackageDependencies } from "../data/packageData.mjs";
2
2
  import { base } from "../base.mjs";
3
3
  import { resolveUses } from "./actions/resolveUses.mjs";
4
- import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
5
4
  import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.mjs";
5
+ import { withPreviously } from "./files/withPreviously.mjs";
6
6
  import { blockPackageJson } from "./blockPackageJson.mjs";
7
7
  import { blockREADME } from "./blockREADME.mjs";
8
8
  import { blockRepositorySecrets } from "./blockRepositorySecrets.mjs";
@@ -34,7 +34,7 @@ const blockReleaseIt = base.createBlock({
34
34
  ],
35
35
  files: {
36
36
  ".github": { workflows: {
37
- "post-release.yaml": createSoloWorkflowFile({
37
+ "post-release.yaml": withPreviously(createSoloWorkflowFile({
38
38
  name: "Post Release",
39
39
  on: { release: { types: ["published"] } },
40
40
  permissions: {
@@ -64,8 +64,8 @@ const blockReleaseIt = base.createBlock({
64
64
  }
65
65
  }
66
66
  ]
67
- }),
68
- "release.yaml": createSoloWorkflowFile({
67
+ }), ["post-release.yml"]),
68
+ "release.yaml": withPreviously(createSoloWorkflowFile({
69
69
  concurrency: { group: "${{ github.workflow }}" },
70
70
  name: "Release",
71
71
  on: { push: { branches: ["main"] } },
@@ -89,7 +89,7 @@ const blockReleaseIt = base.createBlock({
89
89
  uses: resolveUses("JoshuaKGoldberg/release-it-action", "v0.4.0", options.workflowsVersions)
90
90
  }
91
91
  ]
92
- })
92
+ }), ["release.yml"])
93
93
  } },
94
94
  ".release-it.json": JSON.stringify({
95
95
  git: {
@@ -151,9 +151,6 @@ const blockReleaseIt = base.createBlock({
151
151
  },
152
152
  suggestions: [[`- add ${options.owner}/${options.repository} and \`release.yaml\` as a Trusted Publisher on:`, ` https://www.npmjs.com/package/${options.repository}/access`].join("\n")]
153
153
  };
154
- },
155
- transition() {
156
- return { addons: [blockRemoveFiles({ files: [".github/workflows/post-release.yml", ".github/workflows/release.yml"] })] };
157
154
  }
158
155
  });
159
156
  //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockRemoveDependencies.d.ts
2
- declare const blockRemoveDependencies: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockRemoveDependencies: import("bingo-stratum").BlockWithAddons<{
3
3
  dependencies?: string[] | undefined;
4
4
  }, {
5
5
  access: "public" | "restricted";
@@ -57,6 +57,7 @@ declare const blockRemoveDependencies: import("bingo-stratum").BlockWithAddons<{
57
57
  packageData?: {
58
58
  dependencies?: Record<string, string> | undefined;
59
59
  devDependencies?: Record<string, string> | undefined;
60
+ main?: string | undefined;
60
61
  peerDependencies?: Record<string, string> | undefined;
61
62
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
63
  scripts?: Record<string, string | undefined> | undefined;
@@ -71,5 +72,4 @@ declare const blockRemoveDependencies: import("bingo-stratum").BlockWithAddons<{
71
72
  pinned?: boolean | undefined;
72
73
  }>> | undefined;
73
74
  }>;
74
- //#endregion
75
- export { blockRemoveDependencies };
75
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockRemoveFiles.d.ts
2
- declare const blockRemoveFiles: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockRemoveFiles: import("bingo-stratum").BlockWithAddons<{
3
3
  files?: string[] | undefined;
4
4
  }, {
5
5
  access: "public" | "restricted";
@@ -57,6 +57,7 @@ declare const blockRemoveFiles: import("bingo-stratum").BlockWithAddons<{
57
57
  packageData?: {
58
58
  dependencies?: Record<string, string> | undefined;
59
59
  devDependencies?: Record<string, string> | undefined;
60
+ main?: string | undefined;
60
61
  peerDependencies?: Record<string, string> | undefined;
61
62
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
63
  scripts?: Record<string, string | undefined> | undefined;
@@ -71,5 +72,4 @@ declare const blockRemoveFiles: import("bingo-stratum").BlockWithAddons<{
71
72
  pinned?: boolean | undefined;
72
73
  }>> | undefined;
73
74
  }>;
74
- //#endregion
75
- export { blockRemoveFiles };
75
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockRemoveWorkflows.d.ts
2
- declare const blockRemoveWorkflows: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockRemoveWorkflows: import("bingo-stratum").BlockWithAddons<{
3
3
  workflows?: string[] | undefined;
4
4
  }, {
5
5
  access: "public" | "restricted";
@@ -57,6 +57,7 @@ declare const blockRemoveWorkflows: import("bingo-stratum").BlockWithAddons<{
57
57
  packageData?: {
58
58
  dependencies?: Record<string, string> | undefined;
59
59
  devDependencies?: Record<string, string> | undefined;
60
+ main?: string | undefined;
60
61
  peerDependencies?: Record<string, string> | undefined;
61
62
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
63
  scripts?: Record<string, string | undefined> | undefined;
@@ -71,5 +72,4 @@ declare const blockRemoveWorkflows: import("bingo-stratum").BlockWithAddons<{
71
72
  pinned?: boolean | undefined;
72
73
  }>> | undefined;
73
74
  }>;
74
- //#endregion
75
- export { blockRemoveWorkflows };
75
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockRenovate.d.ts
2
- declare const blockRenovate: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockRenovate: import("bingo-stratum").BlockWithAddons<{
3
3
  ignoreDeps: string[];
4
4
  }, {
5
5
  access: "public" | "restricted";
@@ -57,6 +57,7 @@ declare const blockRenovate: import("bingo-stratum").BlockWithAddons<{
57
57
  packageData?: {
58
58
  dependencies?: Record<string, string> | undefined;
59
59
  devDependencies?: Record<string, string> | undefined;
60
+ main?: string | undefined;
60
61
  peerDependencies?: Record<string, string> | undefined;
61
62
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
63
  scripts?: Record<string, string | undefined> | undefined;
@@ -71,5 +72,4 @@ declare const blockRenovate: import("bingo-stratum").BlockWithAddons<{
71
72
  pinned?: boolean | undefined;
72
73
  }>> | undefined;
73
74
  }>;
74
- //#endregion
75
- export { blockRenovate };
75
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockRepositoryBranchRuleset.d.ts
2
- declare const blockRepositoryBranchRuleset: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockRepositoryBranchRuleset: import("bingo-stratum").BlockWithAddons<{
3
3
  requiredStatusChecks?: string[] | undefined;
4
4
  }, {
5
5
  access: "public" | "restricted";
@@ -57,6 +57,7 @@ declare const blockRepositoryBranchRuleset: import("bingo-stratum").BlockWithAdd
57
57
  packageData?: {
58
58
  dependencies?: Record<string, string> | undefined;
59
59
  devDependencies?: Record<string, string> | undefined;
60
+ main?: string | undefined;
60
61
  peerDependencies?: Record<string, string> | undefined;
61
62
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
63
  scripts?: Record<string, string | undefined> | undefined;
@@ -71,5 +72,4 @@ declare const blockRepositoryBranchRuleset: import("bingo-stratum").BlockWithAdd
71
72
  pinned?: boolean | undefined;
72
73
  }>> | undefined;
73
74
  }>;
74
- //#endregion
75
- export { blockRepositoryBranchRuleset };
75
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockRepositoryLabels.d.ts
2
- declare const blockRepositoryLabels: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockRepositoryLabels: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -55,6 +55,7 @@ declare const blockRepositoryLabels: import("bingo-stratum").BlockWithoutAddons<
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
58
+ main?: string | undefined;
58
59
  peerDependencies?: Record<string, string> | undefined;
59
60
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
61
  scripts?: Record<string, string | undefined> | undefined;
@@ -69,5 +70,4 @@ declare const blockRepositoryLabels: import("bingo-stratum").BlockWithoutAddons<
69
70
  pinned?: boolean | undefined;
70
71
  }>> | undefined;
71
72
  }>;
72
- //#endregion
73
- export { blockRepositoryLabels };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockRepositorySecrets.d.ts
2
- declare const blockRepositorySecrets: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockRepositorySecrets: import("bingo-stratum").BlockWithAddons<{
3
3
  secrets: {
4
4
  description: string;
5
5
  name: string;
@@ -60,6 +60,7 @@ declare const blockRepositorySecrets: import("bingo-stratum").BlockWithAddons<{
60
60
  packageData?: {
61
61
  dependencies?: Record<string, string> | undefined;
62
62
  devDependencies?: Record<string, string> | undefined;
63
+ main?: string | undefined;
63
64
  peerDependencies?: Record<string, string> | undefined;
64
65
  peerDependenciesMeta?: Record<string, unknown> | undefined;
65
66
  scripts?: Record<string, string | undefined> | undefined;
@@ -74,5 +75,4 @@ declare const blockRepositorySecrets: import("bingo-stratum").BlockWithAddons<{
74
75
  pinned?: boolean | undefined;
75
76
  }>> | undefined;
76
77
  }>;
77
- //#endregion
78
- export { blockRepositorySecrets };
78
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockRepositorySettings.d.ts
2
- declare const blockRepositorySettings: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockRepositorySettings: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -55,6 +55,7 @@ declare const blockRepositorySettings: import("bingo-stratum").BlockWithoutAddon
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
58
+ main?: string | undefined;
58
59
  peerDependencies?: Record<string, string> | undefined;
59
60
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
61
  scripts?: Record<string, string | undefined> | undefined;
@@ -69,5 +70,4 @@ declare const blockRepositorySettings: import("bingo-stratum").BlockWithoutAddon
69
70
  pinned?: boolean | undefined;
70
71
  }>> | undefined;
71
72
  }>;
72
- //#endregion
73
- export { blockRepositorySettings };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockSecurityDocs.d.ts
2
- declare const blockSecurityDocs: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockSecurityDocs: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -55,6 +55,7 @@ declare const blockSecurityDocs: import("bingo-stratum").BlockWithoutAddons<{
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
58
+ main?: string | undefined;
58
59
  peerDependencies?: Record<string, string> | undefined;
59
60
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
61
  scripts?: Record<string, string | undefined> | undefined;
@@ -69,5 +70,4 @@ declare const blockSecurityDocs: import("bingo-stratum").BlockWithoutAddons<{
69
70
  pinned?: boolean | undefined;
70
71
  }>> | undefined;
71
72
  }>;
72
- //#endregion
73
- export { blockSecurityDocs };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockSideEffects.d.ts
2
- declare const blockSideEffects: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockSideEffects: import("bingo-stratum").BlockWithAddons<{
3
3
  sideEffects?: boolean | string[] | undefined;
4
4
  }, {
5
5
  access: "public" | "restricted";
@@ -57,6 +57,7 @@ declare const blockSideEffects: import("bingo-stratum").BlockWithAddons<{
57
57
  packageData?: {
58
58
  dependencies?: Record<string, string> | undefined;
59
59
  devDependencies?: Record<string, string> | undefined;
60
+ main?: string | undefined;
60
61
  peerDependencies?: Record<string, string> | undefined;
61
62
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
63
  scripts?: Record<string, string | undefined> | undefined;
@@ -71,5 +72,4 @@ declare const blockSideEffects: import("bingo-stratum").BlockWithAddons<{
71
72
  pinned?: boolean | undefined;
72
73
  }>> | undefined;
73
74
  }>;
74
- //#endregion
75
- export { blockSideEffects };
75
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockTSDown.d.ts
2
- declare const blockTSDown: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockTSDown: import("bingo-stratum").BlockWithAddons<{
3
3
  entry: string[];
4
4
  properties: Record<string, unknown>;
5
5
  runInCI: string[];
@@ -59,6 +59,7 @@ declare const blockTSDown: import("bingo-stratum").BlockWithAddons<{
59
59
  packageData?: {
60
60
  dependencies?: Record<string, string> | undefined;
61
61
  devDependencies?: Record<string, string> | undefined;
62
+ main?: string | undefined;
62
63
  peerDependencies?: Record<string, string> | undefined;
63
64
  peerDependenciesMeta?: Record<string, unknown> | undefined;
64
65
  scripts?: Record<string, string | undefined> | undefined;
@@ -73,5 +74,4 @@ declare const blockTSDown: import("bingo-stratum").BlockWithAddons<{
73
74
  pinned?: boolean | undefined;
74
75
  }>> | undefined;
75
76
  }>;
76
- //#endregion
77
- export { blockTSDown };
77
+ //#endregion
@@ -2,6 +2,7 @@ import { getPackageDependencies } from "../data/packageData.mjs";
2
2
  import { base } from "../base.mjs";
3
3
  import { CommandPhase } from "./phases.mjs";
4
4
  import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
5
+ import { withPreviously } from "./files/withPreviously.mjs";
5
6
  import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
6
7
  import { blockPackageJson } from "./blockPackageJson.mjs";
7
8
  import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
@@ -84,14 +85,14 @@ pnpm build --watch
84
85
  run: "pnpm build"
85
86
  }] })
86
87
  ],
87
- files: { "tsdown.config.ts": `import { defineConfig } from "tsdown";
88
+ files: { "tsdown.config.ts": withPreviously(`import { defineConfig } from "tsdown";
88
89
 
89
90
  export default defineConfig(${JSON.stringify({
90
91
  entry: Array.from(/* @__PURE__ */ new Set([options.bundle ? "src/index.ts" : "src/**/*.ts", ...entry])),
91
92
  ...options.bundle ? {} : { unbundle: true },
92
93
  ...properties
93
94
  })});
94
- ` },
95
+ `, ["tsup.config.ts"]) },
95
96
  scripts: options.bin ? [{
96
97
  commands: ["pnpm build"],
97
98
  phase: CommandPhase.Build
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockTemplatedWith.d.ts
2
- declare const blockTemplatedWith: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockTemplatedWith: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -55,6 +55,7 @@ declare const blockTemplatedWith: import("bingo-stratum").BlockWithoutAddons<{
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
58
+ main?: string | undefined;
58
59
  peerDependencies?: Record<string, string> | undefined;
59
60
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
61
  scripts?: Record<string, string | undefined> | undefined;
@@ -69,5 +70,4 @@ declare const blockTemplatedWith: import("bingo-stratum").BlockWithoutAddons<{
69
70
  pinned?: boolean | undefined;
70
71
  }>> | undefined;
71
72
  }>;
72
- //#endregion
73
- export { blockTemplatedWith };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockTypeScript.d.ts
2
- declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
3
3
  compilerOptions?: {
4
4
  allowArbitraryExtensions?: boolean | undefined;
5
5
  allowImportingTsExtensions?: boolean | undefined;
@@ -167,6 +167,7 @@ declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
167
167
  packageData?: {
168
168
  dependencies?: Record<string, string> | undefined;
169
169
  devDependencies?: Record<string, string> | undefined;
170
+ main?: string | undefined;
170
171
  peerDependencies?: Record<string, string> | undefined;
171
172
  peerDependenciesMeta?: Record<string, unknown> | undefined;
172
173
  scripts?: Record<string, string | undefined> | undefined;
@@ -181,5 +182,4 @@ declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
181
182
  pinned?: boolean | undefined;
182
183
  }>> | undefined;
183
184
  }>;
184
- //#endregion
185
- export { blockTypeScript };
185
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockVSCode.d.ts
2
- declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
3
3
  settings: Record<string, unknown>;
4
4
  debuggers?: (Record<string, unknown> & {
5
5
  name: string;
@@ -64,6 +64,7 @@ declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
64
64
  packageData?: {
65
65
  dependencies?: Record<string, string> | undefined;
66
66
  devDependencies?: Record<string, string> | undefined;
67
+ main?: string | undefined;
67
68
  peerDependencies?: Record<string, string> | undefined;
68
69
  peerDependenciesMeta?: Record<string, unknown> | undefined;
69
70
  scripts?: Record<string, string | undefined> | undefined;
@@ -78,5 +79,4 @@ declare const blockVSCode: import("bingo-stratum").BlockWithAddons<{
78
79
  pinned?: boolean | undefined;
79
80
  }>> | undefined;
80
81
  }>;
81
- //#endregion
82
- export { blockVSCode };
82
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockVitest.d.ts
2
- declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
3
3
  actionSteps: ({
4
4
  env?: Record<string, string> | undefined;
5
5
  if?: string | undefined;
@@ -72,6 +72,7 @@ declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
72
72
  packageData?: {
73
73
  dependencies?: Record<string, string> | undefined;
74
74
  devDependencies?: Record<string, string> | undefined;
75
+ main?: string | undefined;
75
76
  peerDependencies?: Record<string, string> | undefined;
76
77
  peerDependenciesMeta?: Record<string, unknown> | undefined;
77
78
  scripts?: Record<string, string | undefined> | undefined;
@@ -86,5 +87,4 @@ declare const blockVitest: import("bingo-stratum").BlockWithAddons<{
86
87
  pinned?: boolean | undefined;
87
88
  }>> | undefined;
88
89
  }>;
89
- //#endregion
90
- export { blockVitest };
90
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockWebExt.d.ts
2
- declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -55,6 +55,7 @@ declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
58
+ main?: string | undefined;
58
59
  peerDependencies?: Record<string, string> | undefined;
59
60
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
61
  scripts?: Record<string, string | undefined> | undefined;
@@ -69,5 +70,4 @@ declare const blockWebExt: import("bingo-stratum").BlockWithoutAddons<{
69
70
  pinned?: boolean | undefined;
70
71
  }>> | undefined;
71
72
  }>;
72
- //#endregion
73
- export { blockWebExt };
73
+ //#endregion