create-typescript-app 2.9.1 → 2.9.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 (82) hide show
  1. package/lib/base.d.ts +11 -21
  2. package/lib/base.js +9 -9
  3. package/lib/blocks/actions/resolveUses.d.ts +6 -0
  4. package/lib/blocks/actions/resolveUses.js +26 -0
  5. package/lib/blocks/blockAllContributors.d.ts +4 -0
  6. package/lib/blocks/blockAllContributors.js +14 -2
  7. package/lib/blocks/blockAreTheTypesWrong.d.ts +4 -0
  8. package/lib/blocks/blockCSpell.d.ts +4 -0
  9. package/lib/blocks/blockCTATransitions.d.ts +4 -0
  10. package/lib/blocks/blockCTATransitions.js +12 -3
  11. package/lib/blocks/blockCodecov.d.ts +4 -0
  12. package/lib/blocks/blockCodecov.js +7 -2
  13. package/lib/blocks/blockContributingDocs.d.ts +4 -0
  14. package/lib/blocks/blockContributorCovenant.d.ts +4 -0
  15. package/lib/blocks/blockDevelopmentDocs.d.ts +4 -0
  16. package/lib/blocks/blockESLint.d.ts +4 -0
  17. package/lib/blocks/blockESLintComments.d.ts +4 -0
  18. package/lib/blocks/blockESLintJSDoc.d.ts +4 -0
  19. package/lib/blocks/blockESLintJSONC.d.ts +4 -0
  20. package/lib/blocks/blockESLintMarkdown.d.ts +4 -0
  21. package/lib/blocks/blockESLintMoreStyling.d.ts +4 -0
  22. package/lib/blocks/blockESLintNode.d.ts +4 -0
  23. package/lib/blocks/blockESLintPackageJson.d.ts +4 -0
  24. package/lib/blocks/blockESLintPerfectionist.d.ts +4 -0
  25. package/lib/blocks/blockESLintRegexp.d.ts +4 -0
  26. package/lib/blocks/blockESLintYML.d.ts +4 -0
  27. package/lib/blocks/blockExampleFiles.d.ts +4 -0
  28. package/lib/blocks/blockFunding.d.ts +4 -0
  29. package/lib/blocks/blockGitHubActionsCI.d.ts +4 -0
  30. package/lib/blocks/blockGitHubActionsCI.js +45 -24
  31. package/lib/blocks/blockGitHubApps.d.ts +4 -0
  32. package/lib/blocks/blockGitHubIssueTemplates.d.ts +4 -0
  33. package/lib/blocks/blockGitHubPRTemplate.d.ts +4 -0
  34. package/lib/blocks/blockGitignore.d.ts +4 -0
  35. package/lib/blocks/blockKnip.d.ts +4 -0
  36. package/lib/blocks/blockMITLicense.d.ts +4 -0
  37. package/lib/blocks/blockMarkdownlint.d.ts +4 -0
  38. package/lib/blocks/blockNvmrc.d.ts +4 -0
  39. package/lib/blocks/blockPRCompliance.d.ts +4 -0
  40. package/lib/blocks/blockPRCompliance.js +7 -2
  41. package/lib/blocks/blockPackageJson.d.ts +4 -0
  42. package/lib/blocks/blockPnpmDedupe.d.ts +4 -0
  43. package/lib/blocks/blockPrettier.d.ts +4 -0
  44. package/lib/blocks/blockPrettierPluginCurly.d.ts +4 -0
  45. package/lib/blocks/blockPrettierPluginPackageJson.d.ts +4 -0
  46. package/lib/blocks/blockPrettierPluginSh.d.ts +4 -0
  47. package/lib/blocks/blockREADME.d.ts +4 -0
  48. package/lib/blocks/blockReleaseIt.d.ts +4 -0
  49. package/lib/blocks/blockReleaseIt.js +24 -4
  50. package/lib/blocks/blockRemoveDependencies.d.ts +4 -0
  51. package/lib/blocks/blockRemoveFiles.d.ts +4 -0
  52. package/lib/blocks/blockRenovate.d.ts +4 -0
  53. package/lib/blocks/blockRepositoryBranchRuleset.d.ts +4 -0
  54. package/lib/blocks/blockRepositoryLabels.d.ts +4 -0
  55. package/lib/blocks/blockRepositorySecrets.d.ts +4 -0
  56. package/lib/blocks/blockRepositorySettings.d.ts +4 -0
  57. package/lib/blocks/blockSecurityDocs.d.ts +4 -0
  58. package/lib/blocks/blockTSup.d.ts +4 -0
  59. package/lib/blocks/blockTemplatedWith.d.ts +4 -0
  60. package/lib/blocks/blockTypeScript.d.ts +4 -0
  61. package/lib/blocks/blockVSCode.d.ts +4 -0
  62. package/lib/blocks/blockVitest.d.ts +4 -0
  63. package/lib/blocks/files/createMultiWorkflowFile.d.ts +5 -1
  64. package/lib/blocks/files/createMultiWorkflowFile.js +7 -2
  65. package/lib/blocks/files/formatYaml.js +2 -1
  66. package/lib/blocks/files/removeUsesQuotes.d.ts +3 -0
  67. package/lib/blocks/files/removeUsesQuotes.js +9 -0
  68. package/lib/blocks/index.d.ts +172 -0
  69. package/lib/data/packageData.d.ts +2 -1
  70. package/lib/index.d.ts +15 -1
  71. package/lib/inputs/inputFromDirectory.d.ts +8 -0
  72. package/lib/inputs/inputFromDirectory.js +13 -0
  73. package/lib/options/readWorkflowsVersions.d.ts +7 -0
  74. package/lib/options/readWorkflowsVersions.js +66 -0
  75. package/lib/presets/common.d.ts +10 -0
  76. package/lib/presets/everything.d.ts +10 -0
  77. package/lib/presets/index.d.ts +30 -0
  78. package/lib/presets/minimal.d.ts +10 -0
  79. package/lib/schemas.d.ts +57 -0
  80. package/lib/schemas.js +20 -0
  81. package/lib/template.d.ts +10 -0
  82. package/package.json +2 -1
@@ -120,6 +120,16 @@ declare const presets: {
120
120
  title: zod.ZodString;
121
121
  usage: zod.ZodOptional<zod.ZodString>;
122
122
  version: zod.ZodOptional<zod.ZodString>;
123
+ workflowsVersions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodObject<{
124
+ hash: zod.ZodOptional<zod.ZodString>;
125
+ pinned: zod.ZodOptional<zod.ZodBoolean>;
126
+ }, "strip", zod.ZodTypeAny, {
127
+ pinned?: boolean | undefined;
128
+ hash?: string | undefined;
129
+ }, {
130
+ pinned?: boolean | undefined;
131
+ hash?: string | undefined;
132
+ }>>>>;
123
133
  }>;
124
134
  everything: bingo_stratum.Preset<{
125
135
  access: zod.ZodUnion<[zod.ZodLiteral<"public">, zod.ZodLiteral<"restricted">]>;
@@ -236,6 +246,16 @@ declare const presets: {
236
246
  title: zod.ZodString;
237
247
  usage: zod.ZodOptional<zod.ZodString>;
238
248
  version: zod.ZodOptional<zod.ZodString>;
249
+ workflowsVersions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodObject<{
250
+ hash: zod.ZodOptional<zod.ZodString>;
251
+ pinned: zod.ZodOptional<zod.ZodBoolean>;
252
+ }, "strip", zod.ZodTypeAny, {
253
+ pinned?: boolean | undefined;
254
+ hash?: string | undefined;
255
+ }, {
256
+ pinned?: boolean | undefined;
257
+ hash?: string | undefined;
258
+ }>>>>;
239
259
  }>;
240
260
  minimal: bingo_stratum.Preset<{
241
261
  access: zod.ZodUnion<[zod.ZodLiteral<"public">, zod.ZodLiteral<"restricted">]>;
@@ -352,6 +372,16 @@ declare const presets: {
352
372
  title: zod.ZodString;
353
373
  usage: zod.ZodOptional<zod.ZodString>;
354
374
  version: zod.ZodOptional<zod.ZodString>;
375
+ workflowsVersions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodObject<{
376
+ hash: zod.ZodOptional<zod.ZodString>;
377
+ pinned: zod.ZodOptional<zod.ZodBoolean>;
378
+ }, "strip", zod.ZodTypeAny, {
379
+ pinned?: boolean | undefined;
380
+ hash?: string | undefined;
381
+ }, {
382
+ pinned?: boolean | undefined;
383
+ hash?: string | undefined;
384
+ }>>>>;
355
385
  }>;
356
386
  };
357
387
 
@@ -116,6 +116,16 @@ declare const presetMinimal: bingo_stratum.Preset<{
116
116
  title: zod.ZodString;
117
117
  usage: zod.ZodOptional<zod.ZodString>;
118
118
  version: zod.ZodOptional<zod.ZodString>;
119
+ workflowsVersions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodObject<{
120
+ hash: zod.ZodOptional<zod.ZodString>;
121
+ pinned: zod.ZodOptional<zod.ZodBoolean>;
122
+ }, "strip", zod.ZodTypeAny, {
123
+ pinned?: boolean | undefined;
124
+ hash?: string | undefined;
125
+ }, {
126
+ pinned?: boolean | undefined;
127
+ hash?: string | undefined;
128
+ }>>>>;
119
129
  }>;
120
130
 
121
131
  export { presetMinimal };
@@ -0,0 +1,57 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const zContributor: z.ZodObject<{
4
+ avatar_url: z.ZodString;
5
+ contributions: z.ZodArray<z.ZodString, "many">;
6
+ login: z.ZodString;
7
+ name: z.ZodString;
8
+ profile: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ avatar_url: string;
11
+ contributions: string[];
12
+ login: string;
13
+ name: string;
14
+ profile: string;
15
+ }, {
16
+ avatar_url: string;
17
+ contributions: string[];
18
+ login: string;
19
+ name: string;
20
+ profile: string;
21
+ }>;
22
+ type Contributor = z.infer<typeof zContributor>;
23
+ declare const zWorkflowVersion: z.ZodObject<{
24
+ hash: z.ZodOptional<z.ZodString>;
25
+ pinned: z.ZodOptional<z.ZodBoolean>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ pinned?: boolean | undefined;
28
+ hash?: string | undefined;
29
+ }, {
30
+ pinned?: boolean | undefined;
31
+ hash?: string | undefined;
32
+ }>;
33
+ type WorkflowVersion = z.infer<typeof zWorkflowVersion>;
34
+ declare const zWorkflowVersions: z.ZodRecord<z.ZodString, z.ZodObject<{
35
+ hash: z.ZodOptional<z.ZodString>;
36
+ pinned: z.ZodOptional<z.ZodBoolean>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ pinned?: boolean | undefined;
39
+ hash?: string | undefined;
40
+ }, {
41
+ pinned?: boolean | undefined;
42
+ hash?: string | undefined;
43
+ }>>;
44
+ type WorkflowVersions = z.infer<typeof zWorkflowVersions>;
45
+ declare const zWorkflowsVersions: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
46
+ hash: z.ZodOptional<z.ZodString>;
47
+ pinned: z.ZodOptional<z.ZodBoolean>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ pinned?: boolean | undefined;
50
+ hash?: string | undefined;
51
+ }, {
52
+ pinned?: boolean | undefined;
53
+ hash?: string | undefined;
54
+ }>>>;
55
+ type WorkflowsVersions = z.infer<typeof zWorkflowsVersions>;
56
+
57
+ export { type Contributor, type WorkflowVersion, type WorkflowVersions, type WorkflowsVersions, zContributor, zWorkflowVersion, zWorkflowVersions, zWorkflowsVersions };
package/lib/schemas.js ADDED
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+ const zContributor = z.object({
3
+ avatar_url: z.string(),
4
+ contributions: z.array(z.string()),
5
+ login: z.string(),
6
+ name: z.string(),
7
+ profile: z.string()
8
+ });
9
+ const zWorkflowVersion = z.object({
10
+ hash: z.string().optional(),
11
+ pinned: z.boolean().optional()
12
+ });
13
+ const zWorkflowVersions = z.record(zWorkflowVersion);
14
+ const zWorkflowsVersions = z.record(zWorkflowVersions);
15
+ export {
16
+ zContributor,
17
+ zWorkflowVersion,
18
+ zWorkflowVersions,
19
+ zWorkflowsVersions
20
+ };
package/lib/template.d.ts CHANGED
@@ -116,6 +116,16 @@ declare const template: bingo_stratum_lib_types_templates_js.StratumTemplate<{
116
116
  title: zod.ZodString;
117
117
  usage: zod.ZodOptional<zod.ZodString>;
118
118
  version: zod.ZodOptional<zod.ZodString>;
119
+ workflowsVersions: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodObject<{
120
+ hash: zod.ZodOptional<zod.ZodString>;
121
+ pinned: zod.ZodOptional<zod.ZodBoolean>;
122
+ }, "strip", zod.ZodTypeAny, {
123
+ pinned?: boolean | undefined;
124
+ hash?: string | undefined;
125
+ }, {
126
+ pinned?: boolean | undefined;
127
+ hash?: string | undefined;
128
+ }>>>>;
119
129
  }>;
120
130
 
121
131
  export { template };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "2.9.1",
3
+ "version": "2.9.3",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,6 +40,7 @@
40
40
  "bingo": "^0.5.8",
41
41
  "bingo-fs": "^0.5.4",
42
42
  "bingo-stratum": "^0.5.7",
43
+ "cached-factory": "^0.1.0",
43
44
  "cspell-populate-words": "^0.3.0",
44
45
  "execa": "^9.5.2",
45
46
  "git-url-parse": "^16.0.1",