create-typescript-app 2.22.1 → 2.22.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 (75) hide show
  1. package/lib/base.d.ts +2 -2
  2. package/lib/base.js +1 -1
  3. package/lib/blocks/blockAllContributors.d.ts +4 -4
  4. package/lib/blocks/blockAreTheTypesWrong.d.ts +4 -4
  5. package/lib/blocks/blockCSpell.d.ts +4 -4
  6. package/lib/blocks/blockCTATransitions.d.ts +4 -4
  7. package/lib/blocks/blockCTATransitions.js +4 -2
  8. package/lib/blocks/blockCodecov.d.ts +4 -4
  9. package/lib/blocks/blockContributingDocs.d.ts +4 -4
  10. package/lib/blocks/blockContributorCovenant.d.ts +4 -4
  11. package/lib/blocks/blockDevelopmentDocs.d.ts +4 -4
  12. package/lib/blocks/blockESLint.d.ts +4 -4
  13. package/lib/blocks/blockESLintComments.d.ts +4 -4
  14. package/lib/blocks/blockESLintJSDoc.d.ts +4 -4
  15. package/lib/blocks/blockESLintJSONC.d.ts +4 -4
  16. package/lib/blocks/blockESLintMarkdown.d.ts +4 -4
  17. package/lib/blocks/blockESLintMoreStyling.d.ts +4 -4
  18. package/lib/blocks/blockESLintNode.d.ts +4 -4
  19. package/lib/blocks/blockESLintPackageJson.d.ts +4 -4
  20. package/lib/blocks/blockESLintPerfectionist.d.ts +4 -4
  21. package/lib/blocks/blockESLintRegexp.d.ts +4 -4
  22. package/lib/blocks/blockESLintYML.d.ts +4 -4
  23. package/lib/blocks/blockExampleFiles.d.ts +4 -4
  24. package/lib/blocks/blockFunding.d.ts +4 -4
  25. package/lib/blocks/blockGitHubActionsCI.d.ts +4 -4
  26. package/lib/blocks/blockGitHubActionsCI.js +6 -3
  27. package/lib/blocks/blockGitHubApps.d.ts +4 -4
  28. package/lib/blocks/blockGitHubIssueTemplates.d.ts +4 -4
  29. package/lib/blocks/blockGitHubPRTemplate.d.ts +4 -4
  30. package/lib/blocks/blockGitignore.d.ts +4 -4
  31. package/lib/blocks/blockKnip.d.ts +4 -4
  32. package/lib/blocks/blockMITLicense.d.ts +4 -4
  33. package/lib/blocks/blockMain.d.ts +4 -4
  34. package/lib/blocks/blockMarkdownlint.d.ts +4 -4
  35. package/lib/blocks/blockNcc.d.ts +4 -4
  36. package/lib/blocks/blockNvmrc.d.ts +4 -4
  37. package/lib/blocks/blockNvmrc.js +1 -1
  38. package/lib/blocks/blockPRCompliance.d.ts +4 -4
  39. package/lib/blocks/blockPackageJson.d.ts +4 -4
  40. package/lib/blocks/blockPackageJson.js +2 -4
  41. package/lib/blocks/blockPnpmDedupe.d.ts +4 -4
  42. package/lib/blocks/blockPrettier.d.ts +4 -4
  43. package/lib/blocks/blockPrettierPluginCurly.d.ts +4 -4
  44. package/lib/blocks/blockPrettierPluginPackageJson.d.ts +4 -4
  45. package/lib/blocks/blockPrettierPluginSh.d.ts +4 -4
  46. package/lib/blocks/blockREADME.d.ts +4 -4
  47. package/lib/blocks/blockReleaseIt.d.ts +4 -4
  48. package/lib/blocks/blockRemoveDependencies.d.ts +4 -4
  49. package/lib/blocks/blockRemoveFiles.d.ts +4 -4
  50. package/lib/blocks/blockRemoveWorkflows.d.ts +4 -4
  51. package/lib/blocks/blockRenovate.d.ts +4 -4
  52. package/lib/blocks/blockRepositoryBranchRuleset.d.ts +4 -4
  53. package/lib/blocks/blockRepositoryLabels.d.ts +4 -4
  54. package/lib/blocks/blockRepositorySecrets.d.ts +4 -4
  55. package/lib/blocks/blockRepositorySettings.d.ts +4 -4
  56. package/lib/blocks/blockSecurityDocs.d.ts +4 -4
  57. package/lib/blocks/blockTSup.d.ts +4 -4
  58. package/lib/blocks/blockTemplatedWith.d.ts +4 -4
  59. package/lib/blocks/blockTypeScript.d.ts +4 -4
  60. package/lib/blocks/blockVSCode.d.ts +4 -4
  61. package/lib/blocks/blockVitest.d.ts +4 -4
  62. package/lib/blocks/files/formatYaml.js +4 -1
  63. package/lib/blocks/index.d.ts +180 -180
  64. package/lib/blocks/options.fakes.d.ts +3 -0
  65. package/lib/blocks/options.fakes.js +3 -0
  66. package/lib/data/packageData.d.ts +2 -2
  67. package/lib/index.d.ts +6 -6
  68. package/lib/presets/common.d.ts +2 -2
  69. package/lib/presets/everything.d.ts +2 -2
  70. package/lib/presets/index.d.ts +6 -6
  71. package/lib/presets/minimal.d.ts +2 -2
  72. package/lib/template.d.ts +2 -2
  73. package/package.json +2 -2
  74. package/lib/blocks/files/formatYamlAction.d.ts +0 -3
  75. package/lib/blocks/files/formatYamlAction.js +0 -8
package/lib/base.d.ts CHANGED
@@ -111,7 +111,7 @@ declare const base: bingo_stratum.Base<{
111
111
  height?: number | undefined;
112
112
  width?: number | undefined;
113
113
  }>>;
114
- node: z.ZodOptional<z.ZodObject<{
114
+ node: z.ZodObject<{
115
115
  minimum: z.ZodString;
116
116
  pinned: z.ZodOptional<z.ZodString>;
117
117
  }, "strip", z.ZodTypeAny, {
@@ -120,7 +120,7 @@ declare const base: bingo_stratum.Base<{
120
120
  }, {
121
121
  minimum: string;
122
122
  pinned?: string | undefined;
123
- }>>;
123
+ }>;
124
124
  owner: z.ZodString;
125
125
  packageData: z.ZodOptional<z.ZodObject<{
126
126
  dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
package/lib/base.js CHANGED
@@ -86,7 +86,7 @@ const base = createBase({
86
86
  node: z.object({
87
87
  minimum: z.string(),
88
88
  pinned: z.string().optional()
89
- }).optional().describe("Node.js engine version(s) to pin and require a minimum of"),
89
+ }).describe("Node.js engine version(s) to pin and require a minimum of"),
90
90
  owner: z.string().describe("organization or user owning the repository"),
91
91
  packageData: z.object({
92
92
  dependencies: z.record(z.string(), z.string()).optional(),
@@ -16,6 +16,10 @@ declare const blockAllContributors: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockAllContributors: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockAreTheTypesWrong: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockAreTheTypesWrong: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -19,6 +19,10 @@ declare const blockCSpell: bingo_stratum.BlockWithAddons<{
19
19
  npm: string;
20
20
  };
21
21
  title: string;
22
+ node: {
23
+ minimum: string;
24
+ pinned?: string | undefined;
25
+ };
22
26
  owner: string;
23
27
  repository: string;
24
28
  author?: string | undefined;
@@ -49,10 +53,6 @@ declare const blockCSpell: bingo_stratum.BlockWithAddons<{
49
53
  height?: number | undefined;
50
54
  width?: number | undefined;
51
55
  } | undefined;
52
- node?: {
53
- minimum: string;
54
- pinned?: string | undefined;
55
- } | undefined;
56
56
  packageData?: {
57
57
  dependencies?: Record<string, string> | undefined;
58
58
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockCTATransitions: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockCTATransitions: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -4,7 +4,7 @@ import { resolveUses } from "./actions/resolveUses.js";
4
4
  import { blockPackageJson } from "./blockPackageJson.js";
5
5
  import { blockRepositoryBranchRuleset } from "./blockRepositoryBranchRuleset.js";
6
6
  import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.js";
7
- import { formatYamlAction } from "./files/formatYamlAction.js";
7
+ import { formatYaml } from "./files/formatYaml.js";
8
8
  const blockCTATransitions = base.createBlock({
9
9
  about: {
10
10
  name: "CTA Transitions"
@@ -27,7 +27,7 @@ const blockCTATransitions = base.createBlock({
27
27
  ".github": {
28
28
  actions: {
29
29
  transition: {
30
- "action.yml": formatYamlAction({
30
+ "action.yml": formatYaml({
31
31
  description: "Runs create-typescript-app in transition mode",
32
32
  name: "Transition",
33
33
  runs: {
@@ -62,7 +62,9 @@ const blockCTATransitions = base.createBlock({
62
62
  issue: "${{ github.event.pull_request.number }}",
63
63
  message: [
64
64
  "\u{1F916} Beep boop! I ran `npx create-typescript-app` and it updated some files.",
65
+ "",
65
66
  "I went ahead and checked those changes into this PR for you. Please review the latest commit to see if you want to merge it.",
67
+ "",
66
68
  "Cheers!",
67
69
  " \u2014 _The Friendly Bingo Bot_ \u{1F49D}",
68
70
  "",
@@ -18,6 +18,10 @@ declare const blockCodecov: bingo_stratum.BlockWithAddons<{
18
18
  npm: string;
19
19
  };
20
20
  title: string;
21
+ node: {
22
+ minimum: string;
23
+ pinned?: string | undefined;
24
+ };
21
25
  owner: string;
22
26
  repository: string;
23
27
  author?: string | undefined;
@@ -48,10 +52,6 @@ declare const blockCodecov: bingo_stratum.BlockWithAddons<{
48
52
  height?: number | undefined;
49
53
  width?: number | undefined;
50
54
  } | undefined;
51
- node?: {
52
- minimum: string;
53
- pinned?: string | undefined;
54
- } | undefined;
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockContributingDocs: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockContributingDocs: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockContributorCovenant: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockContributorCovenant: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -30,6 +30,10 @@ declare const blockDevelopmentDocs: bingo_stratum.BlockWithAddons<{
30
30
  npm: string;
31
31
  };
32
32
  title: string;
33
+ node: {
34
+ minimum: string;
35
+ pinned?: string | undefined;
36
+ };
33
37
  owner: string;
34
38
  repository: string;
35
39
  author?: string | undefined;
@@ -60,10 +64,6 @@ declare const blockDevelopmentDocs: bingo_stratum.BlockWithAddons<{
60
64
  height?: number | undefined;
61
65
  width?: number | undefined;
62
66
  } | undefined;
63
- node?: {
64
- minimum: string;
65
- pinned?: string | undefined;
66
- } | undefined;
67
67
  packageData?: {
68
68
  dependencies?: Record<string, string> | undefined;
69
69
  devDependencies?: Record<string, string> | undefined;
@@ -42,6 +42,10 @@ declare const blockESLint: bingo_stratum.BlockWithAddons<{
42
42
  npm: string;
43
43
  };
44
44
  title: string;
45
+ node: {
46
+ minimum: string;
47
+ pinned?: string | undefined;
48
+ };
45
49
  owner: string;
46
50
  repository: string;
47
51
  author?: string | undefined;
@@ -72,10 +76,6 @@ declare const blockESLint: bingo_stratum.BlockWithAddons<{
72
76
  height?: number | undefined;
73
77
  width?: number | undefined;
74
78
  } | undefined;
75
- node?: {
76
- minimum: string;
77
- pinned?: string | undefined;
78
- } | undefined;
79
79
  packageData?: {
80
80
  dependencies?: Record<string, string> | undefined;
81
81
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockESLintComments: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockESLintComments: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockESLintJSDoc: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockESLintJSDoc: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockESLintJSONC: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockESLintJSONC: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockESLintMarkdown: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockESLintMarkdown: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockESLintMoreStyling: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockESLintMoreStyling: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockESLintNode: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockESLintNode: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockESLintPackageJson: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockESLintPackageJson: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockESLintPerfectionist: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockESLintPerfectionist: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockESLintRegexp: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockESLintRegexp: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockESLintYML: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockESLintYML: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -18,6 +18,10 @@ declare const blockExampleFiles: bingo_stratum.BlockWithAddons<{
18
18
  npm: string;
19
19
  };
20
20
  title: string;
21
+ node: {
22
+ minimum: string;
23
+ pinned?: string | undefined;
24
+ };
21
25
  owner: string;
22
26
  repository: string;
23
27
  author?: string | undefined;
@@ -48,10 +52,6 @@ declare const blockExampleFiles: bingo_stratum.BlockWithAddons<{
48
52
  height?: number | undefined;
49
53
  width?: number | undefined;
50
54
  } | undefined;
51
- node?: {
52
- minimum: string;
53
- pinned?: string | undefined;
54
- } | undefined;
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockFunding: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockFunding: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -57,6 +57,10 @@ declare const blockGitHubActionsCI: bingo_stratum.BlockWithAddons<{
57
57
  npm: string;
58
58
  };
59
59
  title: string;
60
+ node: {
61
+ minimum: string;
62
+ pinned?: string | undefined;
63
+ };
60
64
  owner: string;
61
65
  repository: string;
62
66
  author?: string | undefined;
@@ -87,10 +91,6 @@ declare const blockGitHubActionsCI: bingo_stratum.BlockWithAddons<{
87
91
  height?: number | undefined;
88
92
  width?: number | undefined;
89
93
  } | undefined;
90
- node?: {
91
- minimum: string;
92
- pinned?: string | undefined;
93
- } | undefined;
94
94
  packageData?: {
95
95
  dependencies?: Record<string, string> | undefined;
96
96
  devDependencies?: Record<string, string> | undefined;
@@ -5,7 +5,7 @@ import { blockRemoveFiles } from "./blockRemoveFiles.js";
5
5
  import { blockRepositoryBranchRuleset } from "./blockRepositoryBranchRuleset.js";
6
6
  import { createMultiWorkflowFile } from "./files/createMultiWorkflowFile.js";
7
7
  import { createSoloWorkflowFile } from "./files/createSoloWorkflowFile.js";
8
- import { formatYamlAction } from "./files/formatYamlAction.js";
8
+ import { formatYaml } from "./files/formatYaml.js";
9
9
  const zActionStep = z.intersection(
10
10
  z.object({
11
11
  env: z.record(z.string(), z.string()).optional(),
@@ -40,7 +40,7 @@ const blockGitHubActionsCI = base.createBlock({
40
40
  ".github": {
41
41
  actions: {
42
42
  prepare: {
43
- "action.yml": formatYamlAction({
43
+ "action.yml": formatYaml({
44
44
  description: "Prepares the repo for a typical CI job",
45
45
  name: "Prepare",
46
46
  runs: {
@@ -58,7 +58,10 @@ const blockGitHubActionsCI = base.createBlock({
58
58
  "v4",
59
59
  options.workflowsVersions
60
60
  ),
61
- with: { cache: "pnpm", "node-version": "20" }
61
+ with: {
62
+ cache: "pnpm",
63
+ "node-version": options.node.pinned ?? options.node.minimum
64
+ }
62
65
  },
63
66
  {
64
67
  run: "pnpm install --frozen-lockfile",
@@ -21,6 +21,10 @@ declare const blockGitHubApps: bingo_stratum.BlockWithAddons<{
21
21
  npm: string;
22
22
  };
23
23
  title: string;
24
+ node: {
25
+ minimum: string;
26
+ pinned?: string | undefined;
27
+ };
24
28
  owner: string;
25
29
  repository: string;
26
30
  author?: string | undefined;
@@ -51,10 +55,6 @@ declare const blockGitHubApps: bingo_stratum.BlockWithAddons<{
51
55
  height?: number | undefined;
52
56
  width?: number | undefined;
53
57
  } | undefined;
54
- node?: {
55
- minimum: string;
56
- pinned?: string | undefined;
57
- } | undefined;
58
58
  packageData?: {
59
59
  dependencies?: Record<string, string> | undefined;
60
60
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockGitHubIssueTemplates: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockGitHubIssueTemplates: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -16,6 +16,10 @@ declare const blockGitHubPRTemplate: bingo_stratum.BlockWithoutAddons<{
16
16
  npm: string;
17
17
  };
18
18
  title: string;
19
+ node: {
20
+ minimum: string;
21
+ pinned?: string | undefined;
22
+ };
19
23
  owner: string;
20
24
  repository: string;
21
25
  author?: string | undefined;
@@ -46,10 +50,6 @@ declare const blockGitHubPRTemplate: bingo_stratum.BlockWithoutAddons<{
46
50
  height?: number | undefined;
47
51
  width?: number | undefined;
48
52
  } | undefined;
49
- node?: {
50
- minimum: string;
51
- pinned?: string | undefined;
52
- } | undefined;
53
53
  packageData?: {
54
54
  dependencies?: Record<string, string> | undefined;
55
55
  devDependencies?: Record<string, string> | undefined;
@@ -18,6 +18,10 @@ declare const blockGitignore: bingo_stratum.BlockWithAddons<{
18
18
  npm: string;
19
19
  };
20
20
  title: string;
21
+ node: {
22
+ minimum: string;
23
+ pinned?: string | undefined;
24
+ };
21
25
  owner: string;
22
26
  repository: string;
23
27
  author?: string | undefined;
@@ -48,10 +52,6 @@ declare const blockGitignore: bingo_stratum.BlockWithAddons<{
48
52
  height?: number | undefined;
49
53
  width?: number | undefined;
50
54
  } | undefined;
51
- node?: {
52
- minimum: string;
53
- pinned?: string | undefined;
54
- } | undefined;
55
55
  packageData?: {
56
56
  dependencies?: Record<string, string> | undefined;
57
57
  devDependencies?: Record<string, string> | undefined;