create-typescript-app 2.74.4 → 2.75.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.
@@ -1,5 +1,6 @@
1
1
  export declare const blockKnip: import("bingo-stratum").BlockWithAddons<{
2
2
  entry?: string[] | undefined;
3
+ ignore?: string[] | undefined;
3
4
  ignoreDependencies?: string[] | undefined;
4
5
  project?: string[] | undefined;
5
6
  }, {
@@ -18,6 +18,7 @@ const blockKnip = base.createBlock({
18
18
  about: { name: "Knip" },
19
19
  addons: {
20
20
  entry: zStringArray.optional(),
21
+ ignore: zStringArray.optional(),
21
22
  ignoreDependencies: zStringArray.optional(),
22
23
  project: zStringArray.optional()
23
24
  },
@@ -26,12 +27,13 @@ const blockKnip = base.createBlock({
26
27
  if (!knipJson) return;
27
28
  return removeUndefinedObjects({
28
29
  entry: zStringArray.safeParse(knipJson.entry).data,
30
+ ignore: zStringArray.safeParse(knipJson.ignore).data,
29
31
  ignoreDependencies: zStringArray.safeParse(knipJson.ignoreDependencies).data,
30
32
  project: zStringArray.safeParse(knipJson.project).data
31
33
  });
32
34
  },
33
35
  produce({ addons }) {
34
- const { entry, ignoreDependencies, project } = addons;
36
+ const { entry, ignore, ignoreDependencies, project } = addons;
35
37
  return {
36
38
  addons: [
37
39
  blockDevelopmentDocs({ sections: { Linting: { contents: { items: [`- \`pnpm lint:knip\` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports`] } } } }),
@@ -50,6 +52,7 @@ const blockKnip = base.createBlock({
50
52
 
51
53
  export default ${JSON.stringify({
52
54
  entry: entry?.sort(),
55
+ ignore: ignore?.sort(),
53
56
  ignoreDependencies,
54
57
  ignoreExportsUsedInFile: {
55
58
  interface: true,
@@ -1,4 +1,5 @@
1
1
  export declare const blockTypeScript: import("bingo-stratum").BlockWithAddons<{
2
+ include: string[];
2
3
  compilerOptions?: {
3
4
  allowArbitraryExtensions?: boolean | undefined;
4
5
  allowImportingTsExtensions?: boolean | undefined;
@@ -19,16 +19,21 @@ const blockTypeScript = base.createBlock({
19
19
  about: { name: "TypeScript" },
20
20
  addons: {
21
21
  compilerOptions: CompilerOptionsSchema.optional(),
22
+ include: z.array(z.string()).default([]),
22
23
  outDir: z.string().optional()
23
24
  },
24
25
  intake({ files }) {
25
26
  const raw = intakeFileAsJson(files, ["tsconfig.json"]);
26
- const { data } = CompilerOptionsSchema.safeParse(raw?.compilerOptions);
27
- if (!data) return;
28
- return { compilerOptions: data };
27
+ const compilerOptions = CompilerOptionsSchema.safeParse(raw?.compilerOptions).data;
28
+ const include = z.array(z.string()).safeParse(raw?.include).data;
29
+ if (!compilerOptions && !include) return;
30
+ return {
31
+ ...compilerOptions && { compilerOptions },
32
+ ...include && { include }
33
+ };
29
34
  },
30
35
  produce({ addons, options }) {
31
- const { compilerOptions, outDir } = addons;
36
+ const { compilerOptions, include, outDir } = addons;
32
37
  const primaryBin = getPrimaryBin(options.bin, options.repository);
33
38
  return {
34
39
  addons: [
@@ -129,7 +134,7 @@ greet("Hello, world! ${options.emoji}");
129
134
  ...compilerOptions,
130
135
  ...outDir && { noEmit: void 0 }
131
136
  }),
132
- include: ["src"]
137
+ include: Array.from(/* @__PURE__ */ new Set(["src", ...include])).sort()
133
138
  })) }
134
139
  };
135
140
  },
@@ -2047,6 +2047,7 @@ export declare const blocks: {
2047
2047
  }>;
2048
2048
  blockKnip: import("bingo-stratum").BlockWithAddons<{
2049
2049
  entry?: string[] | undefined;
2050
+ ignore?: string[] | undefined;
2050
2051
  ignoreDependencies?: string[] | undefined;
2051
2052
  project?: string[] | undefined;
2052
2053
  }, {
@@ -3639,6 +3640,7 @@ export declare const blocks: {
3639
3640
  }>> | undefined;
3640
3641
  }>;
3641
3642
  blockTypeScript: import("bingo-stratum").BlockWithAddons<{
3643
+ include: string[];
3642
3644
  compilerOptions?: {
3643
3645
  allowArbitraryExtensions?: boolean | undefined;
3644
3646
  allowImportingTsExtensions?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "2.74.4",
3
+ "version": "2.75.0",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,7 +48,7 @@
48
48
  "image-size": "^2.0.2",
49
49
  "input-from-file": "^0.6.0",
50
50
  "input-from-file-json": "^0.5.9",
51
- "input-from-script": "^0.5.9",
51
+ "input-from-script": "^0.6.0",
52
52
  "js-yaml": "^5.0.0",
53
53
  "json5": "^2.2.3",
54
54
  "lazy-value": "^3.0.0",
@@ -81,12 +81,12 @@
81
81
  "@types/node": "26.6.2",
82
82
  "@types/parse-author": "2.0.3",
83
83
  "@types/semver": "7.8.0",
84
- "@vitest/coverage-v8": "5.0.1",
84
+ "@vitest/coverage-v8": "5.1.0",
85
85
  "@vitest/eslint-plugin": "1.6.27",
86
86
  "all-contributors-cli": "6.26.1",
87
- "bingo-requests": "0.5.6",
87
+ "bingo-requests": "0.6.0",
88
88
  "bingo-stratum-testers": "0.5.14",
89
- "bingo-testers": "0.8.0",
89
+ "bingo-testers": "0.9.0",
90
90
  "console-fail-test": "0.10.0",
91
91
  "cspell": "10.4.0",
92
92
  "eslint": "10.14.0",
@@ -94,7 +94,7 @@
94
94
  "eslint-plugin-jsonc": "3.4.1",
95
95
  "eslint-plugin-markdown-links": "0.9.1",
96
96
  "eslint-plugin-n": "18.5.0",
97
- "eslint-plugin-package-json": "1.12.0",
97
+ "eslint-plugin-package-json": "1.14.0",
98
98
  "eslint-plugin-perfectionist": "5.13.0",
99
99
  "eslint-plugin-regexp": "3.3.1",
100
100
  "eslint-plugin-yml": "3.9.0",
@@ -110,9 +110,9 @@
110
110
  "tsdown": "0.23.0",
111
111
  "typescript": "5.9.3",
112
112
  "typescript-eslint": "8.71.0",
113
- "vitest": "5.0.1"
113
+ "vitest": "5.1.0"
114
114
  },
115
- "packageManager": "pnpm@12.16.0",
115
+ "packageManager": "pnpm@12.17.0",
116
116
  "engines": {
117
117
  "node": "^22.13.0 || ^24.11.0 || >=26.0.0"
118
118
  }