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
@@ -12,6 +12,9 @@ declare const optionsBase: {
12
12
  npm: string;
13
13
  };
14
14
  emoji: string;
15
+ node: {
16
+ minimum: string;
17
+ };
15
18
  owner: string;
16
19
  preset: string;
17
20
  repository: string;
@@ -12,6 +12,9 @@ const optionsBase = {
12
12
  npm: "npm@email.com"
13
13
  },
14
14
  emoji: "\u{1F496}",
15
+ node: {
16
+ minimum: "20.12.0"
17
+ },
15
18
  owner: "test-owner",
16
19
  preset: "minimal",
17
20
  repository: "test-repository",
@@ -1,5 +1,5 @@
1
1
  var name = "create-typescript-app";
2
- var version = "2.22.0";
2
+ var version = "2.22.2";
3
3
  var description = "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁";
4
4
  var repository = {
5
5
  type: "git",
@@ -78,7 +78,7 @@ var devDependencies = {
78
78
  "@types/lodash": "4.17.16",
79
79
  "@types/node": "22.13.10",
80
80
  "@types/parse-author": "2.0.3",
81
- "@types/semver": "7.5.8",
81
+ "@types/semver": "7.7.0",
82
82
  "@vitest/coverage-v8": "3.0.9",
83
83
  "@vitest/eslint-plugin": "1.1.38",
84
84
  "all-contributors-cli": "6.26.1",
package/lib/index.d.ts CHANGED
@@ -165,7 +165,7 @@ declare const createConfig: bingo.CreateTemplateConfig<{
165
165
  height?: number | undefined;
166
166
  width?: number | undefined;
167
167
  }>>;
168
- node: zod.ZodOptional<zod.ZodObject<{
168
+ node: zod.ZodObject<{
169
169
  minimum: zod.ZodString;
170
170
  pinned: zod.ZodOptional<zod.ZodString>;
171
171
  }, "strip", zod.ZodTypeAny, {
@@ -174,7 +174,7 @@ declare const createConfig: bingo.CreateTemplateConfig<{
174
174
  }, {
175
175
  minimum: string;
176
176
  pinned?: string | undefined;
177
- }>>;
177
+ }>;
178
178
  owner: zod.ZodString;
179
179
  packageData: zod.ZodOptional<zod.ZodObject<{
180
180
  dependencies: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
@@ -227,6 +227,10 @@ declare const createConfig: bingo.CreateTemplateConfig<{
227
227
  npm: string;
228
228
  };
229
229
  title: string;
230
+ node: {
231
+ minimum: string;
232
+ pinned?: string | undefined;
233
+ };
230
234
  owner: string;
231
235
  repository: string;
232
236
  author?: string | undefined;
@@ -257,10 +261,6 @@ declare const createConfig: bingo.CreateTemplateConfig<{
257
261
  height?: number | undefined;
258
262
  width?: number | undefined;
259
263
  } | undefined;
260
- node?: {
261
- minimum: string;
262
- pinned?: string | undefined;
263
- } | undefined;
264
264
  packageData?: {
265
265
  dependencies?: Record<string, string> | undefined;
266
266
  devDependencies?: Record<string, string> | undefined;
@@ -110,7 +110,7 @@ declare const presetCommon: bingo_stratum.Preset<{
110
110
  height?: number | undefined;
111
111
  width?: number | undefined;
112
112
  }>>;
113
- node: zod.ZodOptional<zod.ZodObject<{
113
+ node: zod.ZodObject<{
114
114
  minimum: zod.ZodString;
115
115
  pinned: zod.ZodOptional<zod.ZodString>;
116
116
  }, "strip", zod.ZodTypeAny, {
@@ -119,7 +119,7 @@ declare const presetCommon: bingo_stratum.Preset<{
119
119
  }, {
120
120
  minimum: string;
121
121
  pinned?: string | undefined;
122
- }>>;
122
+ }>;
123
123
  owner: zod.ZodString;
124
124
  packageData: zod.ZodOptional<zod.ZodObject<{
125
125
  dependencies: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
@@ -110,7 +110,7 @@ declare const presetEverything: bingo_stratum.Preset<{
110
110
  height?: number | undefined;
111
111
  width?: number | undefined;
112
112
  }>>;
113
- node: zod.ZodOptional<zod.ZodObject<{
113
+ node: zod.ZodObject<{
114
114
  minimum: zod.ZodString;
115
115
  pinned: zod.ZodOptional<zod.ZodString>;
116
116
  }, "strip", zod.ZodTypeAny, {
@@ -119,7 +119,7 @@ declare const presetEverything: bingo_stratum.Preset<{
119
119
  }, {
120
120
  minimum: string;
121
121
  pinned?: string | undefined;
122
- }>>;
122
+ }>;
123
123
  owner: zod.ZodString;
124
124
  packageData: zod.ZodOptional<zod.ZodObject<{
125
125
  dependencies: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
@@ -114,7 +114,7 @@ declare const presets: {
114
114
  height?: number | undefined;
115
115
  width?: number | undefined;
116
116
  }>>;
117
- node: zod.ZodOptional<zod.ZodObject<{
117
+ node: zod.ZodObject<{
118
118
  minimum: zod.ZodString;
119
119
  pinned: zod.ZodOptional<zod.ZodString>;
120
120
  }, "strip", zod.ZodTypeAny, {
@@ -123,7 +123,7 @@ declare const presets: {
123
123
  }, {
124
124
  minimum: string;
125
125
  pinned?: string | undefined;
126
- }>>;
126
+ }>;
127
127
  owner: zod.ZodString;
128
128
  packageData: zod.ZodOptional<zod.ZodObject<{
129
129
  dependencies: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
@@ -270,7 +270,7 @@ declare const presets: {
270
270
  height?: number | undefined;
271
271
  width?: number | undefined;
272
272
  }>>;
273
- node: zod.ZodOptional<zod.ZodObject<{
273
+ node: zod.ZodObject<{
274
274
  minimum: zod.ZodString;
275
275
  pinned: zod.ZodOptional<zod.ZodString>;
276
276
  }, "strip", zod.ZodTypeAny, {
@@ -279,7 +279,7 @@ declare const presets: {
279
279
  }, {
280
280
  minimum: string;
281
281
  pinned?: string | undefined;
282
- }>>;
282
+ }>;
283
283
  owner: zod.ZodString;
284
284
  packageData: zod.ZodOptional<zod.ZodObject<{
285
285
  dependencies: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
@@ -426,7 +426,7 @@ declare const presets: {
426
426
  height?: number | undefined;
427
427
  width?: number | undefined;
428
428
  }>>;
429
- node: zod.ZodOptional<zod.ZodObject<{
429
+ node: zod.ZodObject<{
430
430
  minimum: zod.ZodString;
431
431
  pinned: zod.ZodOptional<zod.ZodString>;
432
432
  }, "strip", zod.ZodTypeAny, {
@@ -435,7 +435,7 @@ declare const presets: {
435
435
  }, {
436
436
  minimum: string;
437
437
  pinned?: string | undefined;
438
- }>>;
438
+ }>;
439
439
  owner: zod.ZodString;
440
440
  packageData: zod.ZodOptional<zod.ZodObject<{
441
441
  dependencies: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
@@ -110,7 +110,7 @@ declare const presetMinimal: bingo_stratum.Preset<{
110
110
  height?: number | undefined;
111
111
  width?: number | undefined;
112
112
  }>>;
113
- node: zod.ZodOptional<zod.ZodObject<{
113
+ node: zod.ZodObject<{
114
114
  minimum: zod.ZodString;
115
115
  pinned: zod.ZodOptional<zod.ZodString>;
116
116
  }, "strip", zod.ZodTypeAny, {
@@ -119,7 +119,7 @@ declare const presetMinimal: bingo_stratum.Preset<{
119
119
  }, {
120
120
  minimum: string;
121
121
  pinned?: string | undefined;
122
- }>>;
122
+ }>;
123
123
  owner: zod.ZodString;
124
124
  packageData: zod.ZodOptional<zod.ZodObject<{
125
125
  dependencies: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
package/lib/template.d.ts CHANGED
@@ -110,7 +110,7 @@ declare const template: bingo_stratum_lib_types_templates_js.StratumTemplate<{
110
110
  height?: number | undefined;
111
111
  width?: number | undefined;
112
112
  }>>;
113
- node: zod.ZodOptional<zod.ZodObject<{
113
+ node: zod.ZodObject<{
114
114
  minimum: zod.ZodString;
115
115
  pinned: zod.ZodOptional<zod.ZodString>;
116
116
  }, "strip", zod.ZodTypeAny, {
@@ -119,7 +119,7 @@ declare const template: bingo_stratum_lib_types_templates_js.StratumTemplate<{
119
119
  }, {
120
120
  minimum: string;
121
121
  pinned?: string | undefined;
122
- }>>;
122
+ }>;
123
123
  owner: zod.ZodString;
124
124
  packageData: zod.ZodOptional<zod.ZodObject<{
125
125
  dependencies: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "2.22.1",
3
+ "version": "2.22.3",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",
@@ -82,7 +82,7 @@
82
82
  "@types/lodash": "4.17.16",
83
83
  "@types/node": "22.13.10",
84
84
  "@types/parse-author": "2.0.3",
85
- "@types/semver": "7.5.8",
85
+ "@types/semver": "7.7.0",
86
86
  "@vitest/coverage-v8": "3.0.9",
87
87
  "@vitest/eslint-plugin": "1.1.38",
88
88
  "all-contributors-cli": "6.26.1",
@@ -1,3 +0,0 @@
1
- declare function formatYamlAction(value: object): string;
2
-
3
- export { formatYamlAction };
@@ -1,8 +0,0 @@
1
- import jsYaml from "js-yaml";
2
- import { removeUsesQuotes } from "./removeUsesQuotes.js";
3
- function formatYamlAction(value) {
4
- return removeUsesQuotes(jsYaml.dump(value).replaceAll(/\n(\S)/g, "\n\n$1"));
5
- }
6
- export {
7
- formatYamlAction
8
- };