create-typescript-app 2.74.5 → 2.75.1

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.
package/README.md CHANGED
@@ -101,7 +101,7 @@ Thanks! 🎁
101
101
  <td align="center" valign="top" width="14.28%"><a href="https://jessicawilkins.dev/"><img src="https://avatars.githubusercontent.com/u/67210629?v=4?s=100" width="100px;" alt="Jessica Wilkins "/><br /><sub><b>Jessica Wilkins </b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jdwilkin4" title="Code">💻</a></td>
102
102
  <td align="center" valign="top" width="14.28%"><a href="https://typescriptcourse.com/tutorials"><img src="https://avatars.githubusercontent.com/u/3806031?v=4?s=100" width="100px;" alt="Joe Previte"/><br /><sub><b>Joe Previte</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Ajsjoeio" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jsjoeio" title="Code">💻</a></td>
103
103
  <td align="center" valign="top" width="14.28%"><a href="https://blog.johnnyreilly.com/"><img src="https://avatars.githubusercontent.com/u/1010525?v=4?s=100" width="100px;" alt="John Reilly"/><br /><sub><b>John Reilly</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=johnnyreilly" title="Code">💻</a> <a href="#ideas-johnnyreilly" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3Ajohnnyreilly" title="Bug reports">🐛</a> <a href="#maintenance-johnnyreilly" title="Maintenance">🚧</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=johnnyreilly" title="Documentation">📖</a> <a href="#tool-johnnyreilly" title="Tools">🔧</a></td>
104
- <td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Code">💻</a> <a href="#maintenance-JoshuaKGoldberg" title="Maintenance">🚧</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/pulls?q=is%3Apr+reviewed-by%3AJoshuaKGoldberg" title="Reviewed Pull Requests">👀</a> <a href="#tool-JoshuaKGoldberg" title="Tools">🔧</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Documentation">📖</a> <a href="#infra-JoshuaKGoldberg" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Tests">⚠️</a> <a href="#ideas-JoshuaKGoldberg" title="Ideas, Planning, & Feedback">🤔</a> <a href="#design-JoshuaKGoldberg" title="Design">🎨</a></td>
104
+ <td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Code">💻</a> <a href="#content-JoshuaKGoldberg" title="Content">🖋</a> <a href="#design-JoshuaKGoldberg" title="Design">🎨</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Documentation">📖</a> <a href="#ideas-JoshuaKGoldberg" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-JoshuaKGoldberg" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-JoshuaKGoldberg" title="Maintenance">🚧</a> <a href="#projectManagement-JoshuaKGoldberg" title="Project Management">📆</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/pulls?q=is%3Apr+reviewed-by%3AJoshuaKGoldberg" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=JoshuaKGoldberg" title="Tests">⚠️</a> <a href="#tool-JoshuaKGoldberg" title="Tools">🔧</a></td>
105
105
  <td align="center" valign="top" width="14.28%"><a href="https://twitter.com/Jolg42"><img src="https://avatars.githubusercontent.com/u/1328733?v=4?s=100" width="100px;" alt="Joël Galeran"/><br /><sub><b>Joël Galeran</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jolg42" title="Code">💻</a></td>
106
106
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/jaas666"><img src="https://avatars.githubusercontent.com/u/30204147?v=4?s=100" width="100px;" alt="Juan A."/><br /><sub><b>Juan A.</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jaas666" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/create-typescript-app/commits?author=jaas666" title="Documentation">📖</a></td>
107
107
  </tr>
@@ -12,8 +12,13 @@ import { contributionTypes, createContributionLink, isContributionTypeName } fro
12
12
  const blockAllContributors = base.createBlock({
13
13
  about: { name: "AllContributors" },
14
14
  produce({ options }) {
15
- const contributions = options.contributors?.length;
16
- const ownerContributions = Array.from(new Set([options.contributors?.find((contributor) => contributor.login.toLowerCase() === options.owner.toLowerCase())?.contributions, startingOwnerContributions].filter(Boolean).flat()));
15
+ const owner = options.contributors?.find((contributor) => contributor.login.toLowerCase() === options.owner.toLowerCase());
16
+ const ownerContributions = Array.from(/* @__PURE__ */ new Set([...owner?.contributions ?? [], ...startingOwnerContributions]));
17
+ const contributors = options.contributors?.map((contributor) => contributor === owner ? {
18
+ ...contributor,
19
+ contributions: ownerContributions
20
+ } : contributor);
21
+ const contributions = contributors?.length;
17
22
  return {
18
23
  addons: [blockPrettier({ ignores: ["/.all-contributorsrc"] }), blockREADME({
19
24
  badges: [{
@@ -29,7 +34,7 @@ const blockAllContributors = base.createBlock({
29
34
  href: "#contributors",
30
35
  src: `https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-${contributions}-21bb42.svg`
31
36
  }],
32
- sections: options.contributors ? [printAllContributorsTable(options.contributors, {
37
+ sections: contributors ? [printAllContributorsTable(contributors, {
33
38
  projectName: options.repository,
34
39
  projectOwner: options.owner
35
40
  })] : void 0
@@ -38,7 +43,7 @@ const blockAllContributors = base.createBlock({
38
43
  ".all-contributorsrc": JSON.stringify({
39
44
  badgeTemplate: " <a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>",
40
45
  commitType: "docs",
41
- contributors: options.contributors ?? [],
46
+ contributors: contributors ?? [],
42
47
  contributorsPerLine: 7,
43
48
  contributorsSortAlphabetically: true,
44
49
  files: ["README.md"],
@@ -61,7 +66,7 @@ const blockAllContributors = base.createBlock({
61
66
  }]
62
67
  }), ["contributors.yml"]) } }
63
68
  },
64
- scripts: [{
69
+ scripts: owner ? void 0 : [{
65
70
  commands: [`pnpx all-contributors-cli@6.23.1 add ${options.owner} ${ownerContributions.join(",")}`],
66
71
  phase: CommandPhase.Process
67
72
  }]
@@ -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.5",
3
+ "version": "2.75.1",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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.13.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
  }