create-typescript-app 2.9.1 → 2.9.2

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 +15 -25
  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 +62 -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
@@ -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
+ name: string;
11
+ avatar_url: string;
12
+ contributions: string[];
13
+ login: string;
14
+ profile: string;
15
+ }, {
16
+ name: string;
17
+ avatar_url: string;
18
+ contributions: string[];
19
+ login: 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.2",
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",