create-typescript-app 2.29.3 → 2.31.0

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 (71) hide show
  1. package/lib/base.d.ts +7 -7
  2. package/lib/base.js +1 -1
  3. package/lib/blocks/blockAllContributors.d.ts +1 -1
  4. package/lib/blocks/blockAreTheTypesWrong.d.ts +1 -1
  5. package/lib/blocks/blockCSpell.d.ts +1 -1
  6. package/lib/blocks/blockCTATransitions.d.ts +1 -1
  7. package/lib/blocks/blockCodecov.d.ts +1 -1
  8. package/lib/blocks/blockContributingDocs.d.ts +1 -1
  9. package/lib/blocks/blockContributorCovenant.d.ts +1 -1
  10. package/lib/blocks/blockDevelopmentDocs.d.ts +1 -1
  11. package/lib/blocks/blockESLint.d.ts +2 -2
  12. package/lib/blocks/blockESLintComments.d.ts +1 -1
  13. package/lib/blocks/blockESLintJSDoc.d.ts +1 -1
  14. package/lib/blocks/blockESLintJSONC.d.ts +1 -1
  15. package/lib/blocks/blockESLintMarkdown.d.ts +1 -1
  16. package/lib/blocks/blockESLintMoreStyling.d.ts +1 -1
  17. package/lib/blocks/blockESLintNode.d.ts +1 -1
  18. package/lib/blocks/blockESLintPackageJson.d.ts +1 -1
  19. package/lib/blocks/blockESLintPerfectionist.d.ts +1 -1
  20. package/lib/blocks/blockESLintPlugin.d.ts +1 -1
  21. package/lib/blocks/blockESLintRegexp.d.ts +1 -1
  22. package/lib/blocks/blockESLintYML.d.ts +1 -1
  23. package/lib/blocks/blockExampleFiles.d.ts +1 -1
  24. package/lib/blocks/blockFunding.d.ts +1 -1
  25. package/lib/blocks/blockGitHubActionsCI.d.ts +2 -2
  26. package/lib/blocks/blockGitHubApps.d.ts +1 -1
  27. package/lib/blocks/blockGitHubIssueTemplates.d.ts +1 -1
  28. package/lib/blocks/blockGitHubPRTemplate.d.ts +1 -1
  29. package/lib/blocks/blockGitignore.d.ts +1 -1
  30. package/lib/blocks/blockKnip.d.ts +1 -1
  31. package/lib/blocks/blockMITLicense.d.ts +1 -1
  32. package/lib/blocks/blockMain.d.ts +1 -1
  33. package/lib/blocks/blockMarkdownlint.d.ts +1 -1
  34. package/lib/blocks/blockNcc.d.ts +4 -2
  35. package/lib/blocks/blockNcc.js +15 -3
  36. package/lib/blocks/blockNvmrc.d.ts +1 -1
  37. package/lib/blocks/blockPRCompliance.d.ts +1 -1
  38. package/lib/blocks/blockPackageJson.d.ts +2 -2
  39. package/lib/blocks/blockPnpmDedupe.d.ts +1 -1
  40. package/lib/blocks/blockPrettier.d.ts +1 -1
  41. package/lib/blocks/blockPrettierPluginCurly.d.ts +1 -1
  42. package/lib/blocks/blockPrettierPluginPackageJson.d.ts +1 -1
  43. package/lib/blocks/blockPrettierPluginSh.d.ts +1 -1
  44. package/lib/blocks/blockREADME.d.ts +1 -1
  45. package/lib/blocks/blockReleaseIt.d.ts +2 -2
  46. package/lib/blocks/blockRemoveDependencies.d.ts +1 -1
  47. package/lib/blocks/blockRemoveFiles.d.ts +1 -1
  48. package/lib/blocks/blockRemoveWorkflows.d.ts +1 -1
  49. package/lib/blocks/blockRenovate.d.ts +1 -1
  50. package/lib/blocks/blockRepositoryBranchRuleset.d.ts +1 -1
  51. package/lib/blocks/blockRepositoryLabels.d.ts +1 -1
  52. package/lib/blocks/blockRepositorySecrets.d.ts +1 -1
  53. package/lib/blocks/blockRepositorySettings.d.ts +1 -1
  54. package/lib/blocks/blockSecurityDocs.d.ts +1 -1
  55. package/lib/blocks/blockTSup.d.ts +1 -1
  56. package/lib/blocks/blockTemplatedWith.d.ts +1 -1
  57. package/lib/blocks/blockTypeScript.d.ts +1 -1
  58. package/lib/blocks/blockVSCode.d.ts +1 -1
  59. package/lib/blocks/blockVitest.d.ts +5 -5
  60. package/lib/blocks/blockVitest.js +31 -22
  61. package/lib/blocks/blockWebExt.d.ts +1 -1
  62. package/lib/blocks/index.d.ts +58 -56
  63. package/lib/data/packageData.d.ts +3 -3
  64. package/lib/index.d.ts +4 -4
  65. package/lib/presets/common.d.ts +3 -3
  66. package/lib/presets/everything.d.ts +3 -3
  67. package/lib/presets/index.d.ts +9 -9
  68. package/lib/presets/minimal.d.ts +3 -3
  69. package/lib/schemas.d.ts +2 -2
  70. package/lib/template.d.ts +3 -3
  71. package/package.json +3 -3
package/lib/base.d.ts CHANGED
@@ -13,16 +13,16 @@ declare const base: bingo_stratum.Base<{
13
13
  name: z.ZodString;
14
14
  profile: z.ZodString;
15
15
  }, "strip", z.ZodTypeAny, {
16
- name: string;
17
16
  avatar_url: string;
18
17
  contributions: string[];
19
18
  login: string;
19
+ name: string;
20
20
  profile: string;
21
21
  }, {
22
- name: string;
23
22
  avatar_url: string;
24
23
  contributions: string[];
25
24
  login: string;
25
+ name: string;
26
26
  profile: string;
27
27
  }>, "many">>;
28
28
  description: z.ZodDefault<z.ZodString>;
@@ -97,11 +97,11 @@ declare const base: bingo_stratum.Base<{
97
97
  href: z.ZodString;
98
98
  title: z.ZodString;
99
99
  }, "strip", z.ZodTypeAny, {
100
- title: string;
101
100
  href: string;
102
- }, {
103
101
  title: string;
102
+ }, {
104
103
  href: string;
104
+ title: string;
105
105
  }>>;
106
106
  keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
107
107
  logo: z.ZodOptional<z.ZodObject<{
@@ -136,19 +136,19 @@ declare const base: bingo_stratum.Base<{
136
136
  devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
137
137
  peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
138
138
  peerDependenciesMeta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
139
- scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
139
+ scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
140
140
  }, "strip", z.ZodTypeAny, {
141
141
  dependencies?: Record<string, string> | undefined;
142
142
  devDependencies?: Record<string, string> | undefined;
143
- scripts?: Record<string, string> | undefined;
144
143
  peerDependencies?: Record<string, string> | undefined;
145
144
  peerDependenciesMeta?: Record<string, unknown> | undefined;
145
+ scripts?: Record<string, string | undefined> | undefined;
146
146
  }, {
147
147
  dependencies?: Record<string, string> | undefined;
148
148
  devDependencies?: Record<string, string> | undefined;
149
- scripts?: Record<string, string> | undefined;
150
149
  peerDependencies?: Record<string, string> | undefined;
151
150
  peerDependenciesMeta?: Record<string, unknown> | undefined;
151
+ scripts?: Record<string, string | undefined> | undefined;
152
152
  }>>;
153
153
  pnpm: z.ZodOptional<z.ZodString>;
154
154
  repository: z.ZodString;
package/lib/base.js CHANGED
@@ -94,7 +94,7 @@ const base = createBase({
94
94
  devDependencies: z.record(z.string(), z.string()).optional(),
95
95
  peerDependencies: z.record(z.string(), z.string()).optional(),
96
96
  peerDependenciesMeta: z.record(z.unknown()).optional(),
97
- scripts: z.record(z.string(), z.string()).optional()
97
+ scripts: z.record(z.string(), z.string().optional()).optional()
98
98
  }).optional().describe("additional properties to include in `package.json`"),
99
99
  pnpm: z.string().optional().describe("pnpm version for package.json's packageManager field"),
100
100
  repository: z.string().describe("'kebab-case' or 'PascalCase' title of the repository"),
@@ -57,7 +57,7 @@ declare const blockAllContributors: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockAreTheTypesWrong: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -60,7 +60,7 @@ declare const blockCSpell: bingo_stratum.BlockWithAddons<{
60
60
  devDependencies?: Record<string, string> | undefined;
61
61
  peerDependencies?: Record<string, string> | undefined;
62
62
  peerDependenciesMeta?: Record<string, unknown> | undefined;
63
- scripts?: Record<string, string> | undefined;
63
+ scripts?: Record<string, string | undefined> | undefined;
64
64
  } | undefined;
65
65
  pnpm?: string | undefined;
66
66
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockCTATransitions: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -59,7 +59,7 @@ declare const blockCodecov: bingo_stratum.BlockWithAddons<{
59
59
  devDependencies?: Record<string, string> | undefined;
60
60
  peerDependencies?: Record<string, string> | undefined;
61
61
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
- scripts?: Record<string, string> | undefined;
62
+ scripts?: Record<string, string | undefined> | undefined;
63
63
  } | undefined;
64
64
  pnpm?: string | undefined;
65
65
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockContributingDocs: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockContributorCovenant: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -71,7 +71,7 @@ declare const blockDevelopmentDocs: bingo_stratum.BlockWithAddons<{
71
71
  devDependencies?: Record<string, string> | undefined;
72
72
  peerDependencies?: Record<string, string> | undefined;
73
73
  peerDependenciesMeta?: Record<string, unknown> | undefined;
74
- scripts?: Record<string, string> | undefined;
74
+ scripts?: Record<string, string | undefined> | undefined;
75
75
  } | undefined;
76
76
  pnpm?: string | undefined;
77
77
  rulesetId?: string | undefined;
@@ -9,6 +9,7 @@ declare const blockESLint: bingo_stratum.BlockWithAddons<{
9
9
  specifier: string;
10
10
  types?: boolean | undefined;
11
11
  }[];
12
+ ignores: string[];
12
13
  extensions: (string | {
13
14
  files?: string[] | undefined;
14
15
  rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
@@ -21,7 +22,6 @@ declare const blockESLint: bingo_stratum.BlockWithAddons<{
21
22
  linterOptions?: unknown;
22
23
  plugins?: Record<string, string> | undefined;
23
24
  })[];
24
- ignores: string[];
25
25
  explanations: string[];
26
26
  rules?: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]> | {
27
27
  entries: Record<string, "off" | "error" | "warn" | ["error" | "warn", unknown] | ["error" | "warn", unknown, unknown]>;
@@ -86,7 +86,7 @@ declare const blockESLint: bingo_stratum.BlockWithAddons<{
86
86
  devDependencies?: Record<string, string> | undefined;
87
87
  peerDependencies?: Record<string, string> | undefined;
88
88
  peerDependenciesMeta?: Record<string, unknown> | undefined;
89
- scripts?: Record<string, string> | undefined;
89
+ scripts?: Record<string, string | undefined> | undefined;
90
90
  } | undefined;
91
91
  pnpm?: string | undefined;
92
92
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintComments: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintJSDoc: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintJSONC: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintMarkdown: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintMoreStyling: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintNode: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintPackageJson: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintPerfectionist: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintPlugin: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintRegexp: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockESLintYML: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -59,7 +59,7 @@ declare const blockExampleFiles: bingo_stratum.BlockWithAddons<{
59
59
  devDependencies?: Record<string, string> | undefined;
60
60
  peerDependencies?: Record<string, string> | undefined;
61
61
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
- scripts?: Record<string, string> | undefined;
62
+ scripts?: Record<string, string | undefined> | undefined;
63
63
  } | undefined;
64
64
  pnpm?: string | undefined;
65
65
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockFunding: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -38,8 +38,8 @@ declare const blockGitHubActionsCI: bingo_stratum.BlockWithAddons<{
38
38
  } | {
39
39
  uses: string;
40
40
  }))[];
41
- if?: string | undefined;
42
41
  checkoutWith?: Record<string, string> | undefined;
42
+ if?: string | undefined;
43
43
  }[] | undefined;
44
44
  }, {
45
45
  access: "public" | "restricted";
@@ -98,7 +98,7 @@ declare const blockGitHubActionsCI: bingo_stratum.BlockWithAddons<{
98
98
  devDependencies?: Record<string, string> | undefined;
99
99
  peerDependencies?: Record<string, string> | undefined;
100
100
  peerDependenciesMeta?: Record<string, unknown> | undefined;
101
- scripts?: Record<string, string> | undefined;
101
+ scripts?: Record<string, string | undefined> | undefined;
102
102
  } | undefined;
103
103
  pnpm?: string | undefined;
104
104
  rulesetId?: string | undefined;
@@ -62,7 +62,7 @@ declare const blockGitHubApps: bingo_stratum.BlockWithAddons<{
62
62
  devDependencies?: Record<string, string> | undefined;
63
63
  peerDependencies?: Record<string, string> | undefined;
64
64
  peerDependenciesMeta?: Record<string, unknown> | undefined;
65
- scripts?: Record<string, string> | undefined;
65
+ scripts?: Record<string, string | undefined> | undefined;
66
66
  } | undefined;
67
67
  pnpm?: string | undefined;
68
68
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockGitHubIssueTemplates: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockGitHubPRTemplate: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -59,7 +59,7 @@ declare const blockGitignore: bingo_stratum.BlockWithAddons<{
59
59
  devDependencies?: Record<string, string> | undefined;
60
60
  peerDependencies?: Record<string, string> | undefined;
61
61
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
- scripts?: Record<string, string> | undefined;
62
+ scripts?: Record<string, string | undefined> | undefined;
63
63
  } | undefined;
64
64
  pnpm?: string | undefined;
65
65
  rulesetId?: string | undefined;
@@ -61,7 +61,7 @@ declare const blockKnip: bingo_stratum.BlockWithAddons<{
61
61
  devDependencies?: Record<string, string> | undefined;
62
62
  peerDependencies?: Record<string, string> | undefined;
63
63
  peerDependenciesMeta?: Record<string, unknown> | undefined;
64
- scripts?: Record<string, string> | undefined;
64
+ scripts?: Record<string, string | undefined> | undefined;
65
65
  } | undefined;
66
66
  pnpm?: string | undefined;
67
67
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockMITLicense: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -60,7 +60,7 @@ declare const blockMain: bingo_stratum.BlockWithAddons<{
60
60
  devDependencies?: Record<string, string> | undefined;
61
61
  peerDependencies?: Record<string, string> | undefined;
62
62
  peerDependenciesMeta?: Record<string, unknown> | undefined;
63
- scripts?: Record<string, string> | undefined;
63
+ scripts?: Record<string, string | undefined> | undefined;
64
64
  } | undefined;
65
65
  pnpm?: string | undefined;
66
66
  rulesetId?: string | undefined;
@@ -59,7 +59,7 @@ declare const blockMarkdownlint: bingo_stratum.BlockWithAddons<{
59
59
  devDependencies?: Record<string, string> | undefined;
60
60
  peerDependencies?: Record<string, string> | undefined;
61
61
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
- scripts?: Record<string, string> | undefined;
62
+ scripts?: Record<string, string | undefined> | undefined;
63
63
  } | undefined;
64
64
  pnpm?: string | undefined;
65
65
  rulesetId?: string | undefined;
@@ -1,6 +1,8 @@
1
1
  import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockNcc: bingo_stratum.BlockWithoutAddons<{
3
+ declare const blockNcc: bingo_stratum.BlockWithAddons<{
4
+ entry?: string | undefined;
5
+ }, {
4
6
  access: "public" | "restricted";
5
7
  description: string;
6
8
  directory: string;
@@ -57,7 +59,7 @@ declare const blockNcc: bingo_stratum.BlockWithoutAddons<{
57
59
  devDependencies?: Record<string, string> | undefined;
58
60
  peerDependencies?: Record<string, string> | undefined;
59
61
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
62
+ scripts?: Record<string, string | undefined> | undefined;
61
63
  } | undefined;
62
64
  pnpm?: string | undefined;
63
65
  rulesetId?: string | undefined;
@@ -1,3 +1,4 @@
1
+ import { z } from "zod";
1
2
  import { base } from "../base.js";
2
3
  import { blockCSpell } from "./blockCSpell.js";
3
4
  import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
@@ -9,7 +10,18 @@ const blockNcc = base.createBlock({
9
10
  about: {
10
11
  name: "ncc"
11
12
  },
12
- produce() {
13
+ addons: {
14
+ entry: z.string().optional()
15
+ },
16
+ intake({ options }) {
17
+ return {
18
+ entry: options.packageData?.scripts?.["build:release"]?.match(
19
+ /ncc build (.+) -o dist/
20
+ )?.[1]
21
+ };
22
+ },
23
+ produce({ addons }) {
24
+ const { entry = "src/index.ts" } = addons;
13
25
  return {
14
26
  addons: [
15
27
  blockCSpell({
@@ -68,12 +80,12 @@ pnpm build:release
68
80
  },
69
81
  scripts: {
70
82
  build: "tsc",
71
- "build:release": "ncc build src/index.ts -o dist"
83
+ "build:release": `ncc build ${entry} -o dist`
72
84
  }
73
85
  }
74
86
  }),
75
87
  blockPrettier({
76
- ignores: ["dist"]
88
+ ignores: ["/dist"]
77
89
  })
78
90
  ]
79
91
  };
@@ -57,7 +57,7 @@ declare const blockNvmrc: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockPRCompliance: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -50,7 +50,6 @@ declare const blockPackageJson: bingo_stratum.BlockWithAddons<{
50
50
  url?: string | undefined;
51
51
  email?: string | undefined;
52
52
  })[] | undefined;
53
- publishConfig?: Record<string, unknown> | undefined;
54
53
  main?: string | undefined;
55
54
  types?: string | undefined;
56
55
  bugs?: string | {
@@ -66,6 +65,7 @@ declare const blockPackageJson: bingo_stratum.BlockWithAddons<{
66
65
  overrides?: Record<string, unknown> | undefined;
67
66
  os?: string[] | undefined;
68
67
  cpu?: string[] | undefined;
68
+ publishConfig?: Record<string, unknown> | undefined;
69
69
  workspaces?: string[] | undefined;
70
70
  deprecated?: string | undefined;
71
71
  typings?: string | undefined;
@@ -134,7 +134,7 @@ declare const blockPackageJson: bingo_stratum.BlockWithAddons<{
134
134
  devDependencies?: Record<string, string> | undefined;
135
135
  peerDependencies?: Record<string, string> | undefined;
136
136
  peerDependenciesMeta?: Record<string, unknown> | undefined;
137
- scripts?: Record<string, string> | undefined;
137
+ scripts?: Record<string, string | undefined> | undefined;
138
138
  } | undefined;
139
139
  pnpm?: string | undefined;
140
140
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockPnpmDedupe: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -67,7 +67,7 @@ declare const blockPrettier: bingo_stratum.BlockWithAddons<{
67
67
  devDependencies?: Record<string, string> | undefined;
68
68
  peerDependencies?: Record<string, string> | undefined;
69
69
  peerDependenciesMeta?: Record<string, unknown> | undefined;
70
- scripts?: Record<string, string> | undefined;
70
+ scripts?: Record<string, string | undefined> | undefined;
71
71
  } | undefined;
72
72
  pnpm?: string | undefined;
73
73
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockPrettierPluginCurly: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockPrettierPluginPackageJson: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -57,7 +57,7 @@ declare const blockPrettierPluginSh: bingo_stratum.BlockWithoutAddons<{
57
57
  devDependencies?: Record<string, string> | undefined;
58
58
  peerDependencies?: Record<string, string> | undefined;
59
59
  peerDependenciesMeta?: Record<string, unknown> | undefined;
60
- scripts?: Record<string, string> | undefined;
60
+ scripts?: Record<string, string | undefined> | undefined;
61
61
  } | undefined;
62
62
  pnpm?: string | undefined;
63
63
  rulesetId?: string | undefined;
@@ -69,7 +69,7 @@ declare const blockREADME: bingo_stratum.BlockWithAddons<{
69
69
  devDependencies?: Record<string, string> | undefined;
70
70
  peerDependencies?: Record<string, string> | undefined;
71
71
  peerDependenciesMeta?: Record<string, unknown> | undefined;
72
- scripts?: Record<string, string> | undefined;
72
+ scripts?: Record<string, string | undefined> | undefined;
73
73
  } | undefined;
74
74
  pnpm?: string | undefined;
75
75
  rulesetId?: string | undefined;
@@ -2,8 +2,8 @@ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
3
  declare const blockReleaseIt: bingo_stratum.BlockWithAddons<{
4
4
  builders: {
5
- order: number;
6
5
  run: string;
6
+ order: number;
7
7
  }[];
8
8
  }, {
9
9
  access: "public" | "restricted";
@@ -62,7 +62,7 @@ declare const blockReleaseIt: bingo_stratum.BlockWithAddons<{
62
62
  devDependencies?: Record<string, string> | undefined;
63
63
  peerDependencies?: Record<string, string> | undefined;
64
64
  peerDependenciesMeta?: Record<string, unknown> | undefined;
65
- scripts?: Record<string, string> | undefined;
65
+ scripts?: Record<string, string | undefined> | undefined;
66
66
  } | undefined;
67
67
  pnpm?: string | undefined;
68
68
  rulesetId?: string | undefined;
@@ -59,7 +59,7 @@ declare const blockRemoveDependencies: bingo_stratum.BlockWithAddons<{
59
59
  devDependencies?: Record<string, string> | undefined;
60
60
  peerDependencies?: Record<string, string> | undefined;
61
61
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
- scripts?: Record<string, string> | undefined;
62
+ scripts?: Record<string, string | undefined> | undefined;
63
63
  } | undefined;
64
64
  pnpm?: string | undefined;
65
65
  rulesetId?: string | undefined;
@@ -59,7 +59,7 @@ declare const blockRemoveFiles: bingo_stratum.BlockWithAddons<{
59
59
  devDependencies?: Record<string, string> | undefined;
60
60
  peerDependencies?: Record<string, string> | undefined;
61
61
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
- scripts?: Record<string, string> | undefined;
62
+ scripts?: Record<string, string | undefined> | undefined;
63
63
  } | undefined;
64
64
  pnpm?: string | undefined;
65
65
  rulesetId?: string | undefined;
@@ -59,7 +59,7 @@ declare const blockRemoveWorkflows: bingo_stratum.BlockWithAddons<{
59
59
  devDependencies?: Record<string, string> | undefined;
60
60
  peerDependencies?: Record<string, string> | undefined;
61
61
  peerDependenciesMeta?: Record<string, unknown> | undefined;
62
- scripts?: Record<string, string> | undefined;
62
+ scripts?: Record<string, string | undefined> | undefined;
63
63
  } | undefined;
64
64
  pnpm?: string | undefined;
65
65
  rulesetId?: string | undefined;