create-typescript-app 2.65.2 → 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 (163) hide show
  1. package/dist/base.d.mts +3 -4
  2. package/dist/blocks/actions/resolveUses.d.mts +2 -3
  3. package/dist/blocks/actions/steps.d.mts +5 -6
  4. package/dist/blocks/bin/getPrimaryBin.d.mts +2 -3
  5. package/dist/blocks/blockAllContributors.d.mts +2 -3
  6. package/dist/blocks/blockAllContributors.mjs +3 -6
  7. package/dist/blocks/blockAreTheTypesWrong.d.mts +2 -3
  8. package/dist/blocks/blockBin.d.mts +2 -3
  9. package/dist/blocks/blockCSpell.d.mts +2 -3
  10. package/dist/blocks/blockCTATransitions.d.mts +2 -3
  11. package/dist/blocks/blockCTATransitions.mjs +5 -8
  12. package/dist/blocks/blockCodecov.d.mts +2 -3
  13. package/dist/blocks/blockContributingDocs.d.mts +2 -3
  14. package/dist/blocks/blockContributorCovenant.d.mts +2 -3
  15. package/dist/blocks/blockDevelopmentDocs.d.mts +2 -3
  16. package/dist/blocks/blockESLint.d.mts +2 -3
  17. package/dist/blocks/blockESLint.mjs +3 -2
  18. package/dist/blocks/blockESLintComments.d.mts +2 -3
  19. package/dist/blocks/blockESLintJSDoc.d.mts +2 -3
  20. package/dist/blocks/blockESLintJSONC.d.mts +2 -3
  21. package/dist/blocks/blockESLintMarkdown.d.mts +2 -3
  22. package/dist/blocks/blockESLintMarkdownLinks.d.mts +2 -3
  23. package/dist/blocks/blockESLintMoreStyling.d.mts +3 -4
  24. package/dist/blocks/blockESLintNode.d.mts +2 -3
  25. package/dist/blocks/blockESLintPackageJson.d.mts +2 -3
  26. package/dist/blocks/blockESLintPerfectionist.d.mts +2 -3
  27. package/dist/blocks/blockESLintPlugin.d.mts +2 -3
  28. package/dist/blocks/blockESLintRegexp.d.mts +2 -3
  29. package/dist/blocks/blockESLintYML.d.mts +2 -3
  30. package/dist/blocks/blockExampleFiles.d.mts +2 -3
  31. package/dist/blocks/blockExports.d.mts +2 -3
  32. package/dist/blocks/blockFunding.d.mts +2 -3
  33. package/dist/blocks/blockFunding.mjs +2 -1
  34. package/dist/blocks/blockGitHubActionsCI.d.mts +2 -3
  35. package/dist/blocks/blockGitHubActionsCI.mjs +7 -8
  36. package/dist/blocks/blockGitHubApps.d.mts +2 -3
  37. package/dist/blocks/blockGitHubIssueTemplates.d.mts +2 -3
  38. package/dist/blocks/blockGitHubIssueTemplates.mjs +9 -17
  39. package/dist/blocks/blockGitHubPRTemplate.d.mts +2 -3
  40. package/dist/blocks/blockGitignore.d.mts +2 -3
  41. package/dist/blocks/blockKnip.d.mts +2 -3
  42. package/dist/blocks/blockKnip.mjs +3 -2
  43. package/dist/blocks/blockMITLicense.d.mts +2 -3
  44. package/dist/blocks/blockNcc.d.mts +2 -3
  45. package/dist/blocks/blockNvmrc.d.mts +2 -3
  46. package/dist/blocks/blockOctoGuide.d.mts +2 -3
  47. package/dist/blocks/blockOctoGuide.mjs +4 -7
  48. package/dist/blocks/blockOctoGuideStrict.d.mts +2 -3
  49. package/dist/blocks/blockPackageJson.d.mts +2 -3
  50. package/dist/blocks/blockPnpmDedupe.d.mts +2 -3
  51. package/dist/blocks/blockPrettier.d.mts +2 -3
  52. package/dist/blocks/blockPrettier.mjs +3 -2
  53. package/dist/blocks/blockPrettierPluginCurly.d.mts +2 -3
  54. package/dist/blocks/blockPrettierPluginPackageJson.d.mts +2 -3
  55. package/dist/blocks/blockPrettierPluginPaddingLines.d.mts +2 -3
  56. package/dist/blocks/blockPrettierPluginSentencesPerLine.d.mts +2 -3
  57. package/dist/blocks/blockPrettierPluginSh.d.mts +2 -3
  58. package/dist/blocks/blockREADME.d.mts +2 -3
  59. package/dist/blocks/blockReleaseIt.d.mts +2 -3
  60. package/dist/blocks/blockReleaseIt.mjs +5 -8
  61. package/dist/blocks/blockRemoveDependencies.d.mts +2 -3
  62. package/dist/blocks/blockRemoveFiles.d.mts +2 -3
  63. package/dist/blocks/blockRemoveWorkflows.d.mts +2 -3
  64. package/dist/blocks/blockRenovate.d.mts +2 -3
  65. package/dist/blocks/blockRepositoryBranchRuleset.d.mts +2 -3
  66. package/dist/blocks/blockRepositoryLabels.d.mts +2 -3
  67. package/dist/blocks/blockRepositorySecrets.d.mts +2 -3
  68. package/dist/blocks/blockRepositorySettings.d.mts +2 -3
  69. package/dist/blocks/blockSecurityDocs.d.mts +2 -3
  70. package/dist/blocks/blockSideEffects.d.mts +2 -3
  71. package/dist/blocks/blockTSDown.d.mts +2 -3
  72. package/dist/blocks/blockTSDown.mjs +3 -2
  73. package/dist/blocks/blockTemplatedWith.d.mts +2 -3
  74. package/dist/blocks/blockTypeScript.d.mts +2 -3
  75. package/dist/blocks/blockVSCode.d.mts +2 -3
  76. package/dist/blocks/blockVitest.d.mts +2 -3
  77. package/dist/blocks/blockWebExt.d.mts +2 -3
  78. package/dist/blocks/codecov/findCodecovStep.d.mts +3 -4
  79. package/dist/blocks/eslint/blockESLintIntake.d.mts +2 -3
  80. package/dist/blocks/eslint/blockESLintPluginIntake.d.mts +2 -3
  81. package/dist/blocks/eslint/getScriptFileExtension.d.mts +3 -4
  82. package/dist/blocks/eslint/mergeAllExtensions.d.mts +2 -3
  83. package/dist/blocks/eslint/schemas.d.mts +15 -16
  84. package/dist/blocks/files/createJobName.d.mts +2 -3
  85. package/dist/blocks/files/createMultiWorkflowFile.d.mts +5 -6
  86. package/dist/blocks/files/createSoloWorkflowFile.d.mts +2 -3
  87. package/dist/blocks/files/formatIgnoreFile.d.mts +2 -3
  88. package/dist/blocks/files/formatWorkflowYaml.d.mts +2 -3
  89. package/dist/blocks/files/formatYaml.d.mts +2 -3
  90. package/dist/blocks/files/removeUsesQuotes.d.mts +2 -3
  91. package/dist/blocks/files/withPreviously.d.mts +4 -0
  92. package/dist/blocks/files/withPreviously.mjs +6 -0
  93. package/dist/blocks/getInstallationSuggestions.d.mts +2 -3
  94. package/dist/blocks/index.d.mts +2 -2
  95. package/dist/blocks/intake/intakeFile.d.mts +2 -3
  96. package/dist/blocks/intake/intakeFileAsJson.d.mts +2 -3
  97. package/dist/blocks/intake/intakeFileAsYaml.d.mts +3 -4
  98. package/dist/blocks/intake/intakeFileDefineConfig.d.mts +2 -3
  99. package/dist/blocks/intake/intakeFileExportObject.d.mts +2 -3
  100. package/dist/blocks/options.fakes.d.mts +2 -3
  101. package/dist/blocks/outcomeLabels.d.mts +2 -3
  102. package/dist/blocks/phases.d.mts +2 -3
  103. package/dist/constants.d.mts +2 -3
  104. package/dist/data/contributions.d.mts +2 -3
  105. package/dist/data/packageData.d.mts +4 -5
  106. package/dist/index.d.mts +2 -2
  107. package/dist/inputs/inputFromDirectory.d.mts +2 -3
  108. package/dist/inputs/inputFromOctokit.d.mts +2 -3
  109. package/dist/options/readAccess.d.mts +2 -3
  110. package/dist/options/readAllContributors.d.mts +2 -3
  111. package/dist/options/readAuthor.d.mts +2 -3
  112. package/dist/options/readBin.d.mts +2 -3
  113. package/dist/options/readBundle.d.mts +2 -3
  114. package/dist/options/readCodecovToken.d.mts +2 -3
  115. package/dist/options/readDescription.d.mts +2 -3
  116. package/dist/options/readDescriptionFromReadme.d.mts +2 -3
  117. package/dist/options/readDevelopmentDocumentation.d.mts +2 -3
  118. package/dist/options/readDocumentation.d.mts +2 -3
  119. package/dist/options/readEmailFromCodeOfConduct.d.mts +2 -3
  120. package/dist/options/readEmailFromGit.d.mts +2 -3
  121. package/dist/options/readEmailFromNpm.d.mts +2 -3
  122. package/dist/options/readEmails.d.mts +2 -3
  123. package/dist/options/readEmoji.d.mts +2 -3
  124. package/dist/options/readExistingLabels.d.mts +2 -3
  125. package/dist/options/readFileAsJson.d.mts +2 -3
  126. package/dist/options/readFileSafe.d.mts +2 -3
  127. package/dist/options/readFunding.d.mts +2 -3
  128. package/dist/options/readGitDefaults.d.mts +2 -3
  129. package/dist/options/readGuide.d.mts +2 -3
  130. package/dist/options/readKeywords.d.mts +2 -3
  131. package/dist/options/readLogo.d.mts +2 -3
  132. package/dist/options/readLogoSizing.d.mts +3 -4
  133. package/dist/options/readNode.d.mts +2 -3
  134. package/dist/options/readNpmDefaults.d.mts +2 -3
  135. package/dist/options/readOwner.d.mts +2 -3
  136. package/dist/options/readPackageAuthor.d.mts +3 -4
  137. package/dist/options/readPackageData.d.mts +2 -3
  138. package/dist/options/readPnpm.d.mts +2 -3
  139. package/dist/options/readReadmeAdditional.d.mts +2 -3
  140. package/dist/options/readReadmeExplainer.d.mts +2 -3
  141. package/dist/options/readReadmeFootnotes.d.mts +3 -4
  142. package/dist/options/readReadmeUsage.d.mts +2 -3
  143. package/dist/options/readRepository.d.mts +2 -3
  144. package/dist/options/readRulesetId.d.mts +2 -3
  145. package/dist/options/readTitle.d.mts +2 -3
  146. package/dist/options/readWords.d.mts +2 -3
  147. package/dist/options/readWorkflowsVersions.d.mts +2 -3
  148. package/dist/presets/common.d.mts +2 -3
  149. package/dist/presets/everything.d.mts +2 -3
  150. package/dist/presets/index.d.mts +2 -2
  151. package/dist/presets/minimal.d.mts +2 -3
  152. package/dist/schemas.d.mts +15 -16
  153. package/dist/template.d.mts +2 -3
  154. package/dist/types.d.mts +4 -5
  155. package/dist/utils/htmlToTextSafe.d.mts +2 -3
  156. package/dist/utils/parseDefineConfig.d.mts +2 -3
  157. package/dist/utils/resolveBin.d.mts +2 -3
  158. package/dist/utils/resolveEmails.d.mts +2 -3
  159. package/dist/utils/swallowError.d.mts +2 -3
  160. package/dist/utils/swallowErrorAsync.d.mts +2 -3
  161. package/dist/utils/trimPrecedingSlash.d.mts +2 -3
  162. package/dist/utils/tryCatch.d.mts +2 -3
  163. package/package.json +26 -26
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockGitHubIssueTemplates.d.ts
2
- declare const blockGitHubIssueTemplates: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockGitHubIssueTemplates: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -70,5 +70,4 @@ declare const blockGitHubIssueTemplates: import("bingo-stratum").BlockWithoutAdd
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- export { blockGitHubIssueTemplates };
73
+ //#endregion
@@ -1,13 +1,13 @@
1
1
  import { base } from "../base.mjs";
2
- import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
3
2
  import { formatYaml } from "./files/formatYaml.mjs";
3
+ import { withPreviously } from "./files/withPreviously.mjs";
4
4
  //#region src/blocks/blockGitHubIssueTemplates.ts
5
5
  const blockGitHubIssueTemplates = base.createBlock({
6
6
  about: { name: "GitHub Issue Templates" },
7
7
  produce({ options }) {
8
8
  return { files: { ".github": {
9
9
  ISSUE_TEMPLATE: {
10
- "01-bug.yaml": formatYaml({
10
+ "01-bug.yaml": withPreviously(formatYaml({
11
11
  body: [
12
12
  {
13
13
  attributes: {
@@ -58,8 +58,8 @@ const blockGitHubIssueTemplates = base.createBlock({
58
58
  labels: ["type: bug"],
59
59
  name: "🐛 Bug",
60
60
  title: "🐛 Bug: <short description of the bug>"
61
- }),
62
- "02-documentation.yaml": formatYaml({
61
+ }), ["01-bug.yml"]),
62
+ "02-documentation.yaml": withPreviously(formatYaml({
63
63
  body: [
64
64
  {
65
65
  attributes: {
@@ -95,8 +95,8 @@ const blockGitHubIssueTemplates = base.createBlock({
95
95
  labels: ["area: documentation"],
96
96
  name: "📝 Documentation",
97
97
  title: "📝 Documentation: <short description of the request>"
98
- }),
99
- "03-feature.yaml": formatYaml({
98
+ }), ["02-documentation.yml"]),
99
+ "03-feature.yaml": withPreviously(formatYaml({
100
100
  body: [
101
101
  {
102
102
  attributes: {
@@ -132,8 +132,8 @@ const blockGitHubIssueTemplates = base.createBlock({
132
132
  labels: ["type: feature"],
133
133
  name: "🚀 Feature",
134
134
  title: "🚀 Feature: <short description of the feature>"
135
- }),
136
- "04-tooling.yaml": formatYaml({
135
+ }), ["03-feature.yml"]),
136
+ "04-tooling.yaml": withPreviously(formatYaml({
137
137
  body: [
138
138
  {
139
139
  attributes: {
@@ -176,7 +176,7 @@ const blockGitHubIssueTemplates = base.createBlock({
176
176
  labels: ["area: tooling"],
177
177
  name: "🛠 Tooling",
178
178
  title: "🛠 Tooling: <short description of the change>"
179
- })
179
+ }), ["04-tooling.yml"])
180
180
  },
181
181
  "ISSUE_TEMPLATE.md": `<!-- Note: Please must use one of our issue templates to file an issue! 🛑 -->
182
182
  <!-- 👉 https://github.com/${options.owner}/${options.repository}/issues/new/choose 👈 -->
@@ -189,14 +189,6 @@ const blockGitHubIssueTemplates = base.createBlock({
189
189
  ...
190
190
  `
191
191
  } } };
192
- },
193
- transition() {
194
- return { addons: [blockRemoveFiles({ files: [
195
- ".github/ISSUE_TEMPLATE/01-bug.yml",
196
- ".github/ISSUE_TEMPLATE/02-documentation.yml",
197
- ".github/ISSUE_TEMPLATE/03-feature.yml",
198
- ".github/ISSUE_TEMPLATE/04-tooling.yml"
199
- ] })] };
200
192
  }
201
193
  });
202
194
  //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockGitHubPRTemplate.d.ts
2
- declare const blockGitHubPRTemplate: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockGitHubPRTemplate: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -70,5 +70,4 @@ declare const blockGitHubPRTemplate: import("bingo-stratum").BlockWithoutAddons<
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- export { blockGitHubPRTemplate };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockGitignore.d.ts
2
- declare const blockGitignore: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockGitignore: import("bingo-stratum").BlockWithAddons<{
3
3
  ignores: string[];
4
4
  }, {
5
5
  access: "public" | "restricted";
@@ -72,5 +72,4 @@ declare const blockGitignore: import("bingo-stratum").BlockWithAddons<{
72
72
  pinned?: boolean | undefined;
73
73
  }>> | undefined;
74
74
  }>;
75
- //#endregion
76
- export { blockGitignore };
75
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockKnip.d.ts
2
- declare const blockKnip: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockKnip: import("bingo-stratum").BlockWithAddons<{
3
3
  entry?: string[] | undefined;
4
4
  ignoreDependencies?: string[] | undefined;
5
5
  project?: string[] | undefined;
@@ -74,5 +74,4 @@ declare const blockKnip: import("bingo-stratum").BlockWithAddons<{
74
74
  pinned?: boolean | undefined;
75
75
  }>> | undefined;
76
76
  }>;
77
- //#endregion
78
- export { blockKnip };
77
+ //#endregion
@@ -1,6 +1,7 @@
1
1
  import { getPackageDependencies } from "../data/packageData.mjs";
2
2
  import { base } from "../base.mjs";
3
3
  import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
4
+ import { withPreviously } from "./files/withPreviously.mjs";
4
5
  import { blockGitHubActionsCI } from "./blockGitHubActionsCI.mjs";
5
6
  import { blockPackageJson } from "./blockPackageJson.mjs";
6
7
  import { blockDevelopmentDocs } from "./blockDevelopmentDocs.mjs";
@@ -44,7 +45,7 @@ const blockKnip = base.createBlock({
44
45
  blockRemoveFiles({ files: [".ts-prunerc*"] }),
45
46
  blockVSCode({ extensions: ["webpro.vscode-knip"] })
46
47
  ],
47
- files: { "knip.config.ts": `import type { KnipConfig } from "knip";
48
+ files: { "knip.config.ts": withPreviously(`import type { KnipConfig } from "knip";
48
49
 
49
50
  export default ${JSON.stringify({
50
51
  entry: entry?.sort(),
@@ -55,7 +56,7 @@ export default ${JSON.stringify({
55
56
  },
56
57
  project: project?.sort(),
57
58
  treatConfigHintsAsErrors: true
58
- })} satisfies KnipConfig;` }
59
+ })} satisfies KnipConfig;`, ["knip.json"]) }
59
60
  };
60
61
  },
61
62
  transition() {
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockMITLicense.d.ts
2
- declare const blockMITLicense: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockMITLicense: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -70,5 +70,4 @@ declare const blockMITLicense: import("bingo-stratum").BlockWithoutAddons<{
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- export { blockMITLicense };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockNcc.d.ts
2
- declare const blockNcc: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockNcc: import("bingo-stratum").BlockWithAddons<{
3
3
  entry?: string | undefined;
4
4
  }, {
5
5
  access: "public" | "restricted";
@@ -72,5 +72,4 @@ declare const blockNcc: import("bingo-stratum").BlockWithAddons<{
72
72
  pinned?: boolean | undefined;
73
73
  }>> | undefined;
74
74
  }>;
75
- //#endregion
76
- export { blockNcc };
75
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockNvmrc.d.ts
2
- declare const blockNvmrc: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockNvmrc: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -70,5 +70,4 @@ declare const blockNvmrc: import("bingo-stratum").BlockWithoutAddons<{
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- export { blockNvmrc };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockOctoGuide.d.ts
2
- declare const blockOctoGuide: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockOctoGuide: import("bingo-stratum").BlockWithAddons<{
3
3
  config?: "strict" | "recommended" | undefined;
4
4
  }, {
5
5
  access: "public" | "restricted";
@@ -72,5 +72,4 @@ declare const blockOctoGuide: import("bingo-stratum").BlockWithAddons<{
72
72
  pinned?: boolean | undefined;
73
73
  }>> | undefined;
74
74
  }>;
75
- //#endregion
76
- export { blockOctoGuide };
75
+ //#endregion
@@ -3,6 +3,7 @@ import { base } from "../base.mjs";
3
3
  import { resolveUses } from "./actions/resolveUses.mjs";
4
4
  import { blockRemoveFiles } from "./blockRemoveFiles.mjs";
5
5
  import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.mjs";
6
+ import { withPreviously } from "./files/withPreviously.mjs";
6
7
  import { z } from "zod";
7
8
  //#region src/blocks/blockOctoGuide.ts
8
9
  const blockOctoGuide = base.createBlock({
@@ -24,7 +25,7 @@ const blockOctoGuide = base.createBlock({
24
25
  return { config: runOctoGuideStep.with?.config };
25
26
  },
26
27
  produce({ addons, options }) {
27
- return { files: { ".github": { workflows: { "octoguide.yaml": createSoloWorkflowFile({
28
+ return { files: { ".github": { workflows: { "octoguide.yaml": withPreviously(createSoloWorkflowFile({
28
29
  if: "${{ !endsWith(github.actor, '[bot]') }}",
29
30
  name: "OctoGuide",
30
31
  on: {
@@ -59,14 +60,10 @@ const blockOctoGuide = base.createBlock({
59
60
  "github-token": "${{ secrets.GITHUB_TOKEN }}"
60
61
  }
61
62
  }]
62
- }) } } } };
63
+ }), ["octoguide.yml"]) } } } };
63
64
  },
64
65
  transition() {
65
- return { addons: [blockRemoveFiles({ files: [
66
- ".github/workflows/accessibility-alt-text-bot.{yaml,yml}",
67
- ".github/workflows/compliance.{yaml,yml}",
68
- ".github/workflows/octoguide.yml"
69
- ] })] };
66
+ return { addons: [blockRemoveFiles({ files: [".github/workflows/accessibility-alt-text-bot.{yaml,yml}", ".github/workflows/compliance.{yaml,yml}"] })] };
70
67
  }
71
68
  });
72
69
  //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockOctoGuideStrict.d.ts
2
- declare const blockOctoGuideStrict: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockOctoGuideStrict: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -70,5 +70,4 @@ declare const blockOctoGuideStrict: import("bingo-stratum").BlockWithoutAddons<{
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- export { blockOctoGuideStrict };
73
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockPackageJson.d.ts
2
- declare const blockPackageJson: import("bingo-stratum").BlockWithAddons<{
2
+ export declare const blockPackageJson: import("bingo-stratum").BlockWithAddons<{
3
3
  cleanupCommands: string[];
4
4
  properties: {
5
5
  [x: string]: unknown;
@@ -194,5 +194,4 @@ declare const blockPackageJson: import("bingo-stratum").BlockWithAddons<{
194
194
  pinned?: boolean | undefined;
195
195
  }>> | undefined;
196
196
  }>;
197
- //#endregion
198
- export { blockPackageJson };
197
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  //#region src/blocks/blockPnpmDedupe.d.ts
2
- declare const blockPnpmDedupe: import("bingo-stratum").BlockWithoutAddons<{
2
+ export declare const blockPnpmDedupe: import("bingo-stratum").BlockWithoutAddons<{
3
3
  access: "public" | "restricted";
4
4
  description: string;
5
5
  directory: string;
@@ -70,5 +70,4 @@ declare const blockPnpmDedupe: import("bingo-stratum").BlockWithoutAddons<{
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- export { blockPnpmDedupe };
73
+ //#endregion
@@ -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;
@@ -80,5 +80,4 @@ declare const blockPrettier: import("bingo-stratum").BlockWithAddons<{
80
80
  pinned?: boolean | undefined;
81
81
  }>> | undefined;
82
82
  }>;
83
- //#endregion
84
- 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"],
@@ -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;
@@ -70,5 +70,4 @@ declare const blockPrettierPluginCurly: import("bingo-stratum").BlockWithoutAddo
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- 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;
@@ -70,5 +70,4 @@ declare const blockPrettierPluginPackageJson: import("bingo-stratum").BlockWitho
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- 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;
@@ -70,5 +70,4 @@ declare const blockPrettierPluginPaddingLines: import("bingo-stratum").BlockWith
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- 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;
@@ -70,5 +70,4 @@ declare const blockPrettierPluginSentencesPerLine: import("bingo-stratum").Block
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- 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;
@@ -70,5 +70,4 @@ declare const blockPrettierPluginSh: import("bingo-stratum").BlockWithoutAddons<
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- 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;
@@ -83,5 +83,4 @@ declare const blockREADME: import("bingo-stratum").BlockWithAddons<{
83
83
  pinned?: boolean | undefined;
84
84
  }>> | undefined;
85
85
  }>;
86
- //#endregion
87
- 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;
@@ -75,5 +75,4 @@ declare const blockReleaseIt: import("bingo-stratum").BlockWithAddons<{
75
75
  pinned?: boolean | undefined;
76
76
  }>> | undefined;
77
77
  }>;
78
- //#endregion
79
- 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";
@@ -72,5 +72,4 @@ declare const blockRemoveDependencies: import("bingo-stratum").BlockWithAddons<{
72
72
  pinned?: boolean | undefined;
73
73
  }>> | undefined;
74
74
  }>;
75
- //#endregion
76
- 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";
@@ -72,5 +72,4 @@ declare const blockRemoveFiles: import("bingo-stratum").BlockWithAddons<{
72
72
  pinned?: boolean | undefined;
73
73
  }>> | undefined;
74
74
  }>;
75
- //#endregion
76
- 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";
@@ -72,5 +72,4 @@ declare const blockRemoveWorkflows: import("bingo-stratum").BlockWithAddons<{
72
72
  pinned?: boolean | undefined;
73
73
  }>> | undefined;
74
74
  }>;
75
- //#endregion
76
- 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";
@@ -72,5 +72,4 @@ declare const blockRenovate: import("bingo-stratum").BlockWithAddons<{
72
72
  pinned?: boolean | undefined;
73
73
  }>> | undefined;
74
74
  }>;
75
- //#endregion
76
- 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";
@@ -72,5 +72,4 @@ declare const blockRepositoryBranchRuleset: import("bingo-stratum").BlockWithAdd
72
72
  pinned?: boolean | undefined;
73
73
  }>> | undefined;
74
74
  }>;
75
- //#endregion
76
- 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;
@@ -70,5 +70,4 @@ declare const blockRepositoryLabels: import("bingo-stratum").BlockWithoutAddons<
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- 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;
@@ -75,5 +75,4 @@ declare const blockRepositorySecrets: import("bingo-stratum").BlockWithAddons<{
75
75
  pinned?: boolean | undefined;
76
76
  }>> | undefined;
77
77
  }>;
78
- //#endregion
79
- 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;
@@ -70,5 +70,4 @@ declare const blockRepositorySettings: import("bingo-stratum").BlockWithoutAddon
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- 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;
@@ -70,5 +70,4 @@ declare const blockSecurityDocs: import("bingo-stratum").BlockWithoutAddons<{
70
70
  pinned?: boolean | undefined;
71
71
  }>> | undefined;
72
72
  }>;
73
- //#endregion
74
- 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";
@@ -72,5 +72,4 @@ declare const blockSideEffects: import("bingo-stratum").BlockWithAddons<{
72
72
  pinned?: boolean | undefined;
73
73
  }>> | undefined;
74
74
  }>;
75
- //#endregion
76
- 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[];
@@ -74,5 +74,4 @@ declare const blockTSDown: import("bingo-stratum").BlockWithAddons<{
74
74
  pinned?: boolean | undefined;
75
75
  }>> | undefined;
76
76
  }>;
77
- //#endregion
78
- export { blockTSDown };
77
+ //#endregion