create-typescript-app 2.35.4 → 2.36.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.
@@ -102,7 +102,7 @@ const blockAllContributors = base.createBlock({
102
102
  scripts: [
103
103
  {
104
104
  commands: [
105
- `pnpx all-contributors-cli add ${options.owner} ${ownerContributions.join(",")}`
105
+ `pnpx all-contributors-cli@6.23.0 add ${options.owner} ${ownerContributions.join(",")}`
106
106
  ],
107
107
  phase: CommandPhase.Process
108
108
  }
@@ -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";
@@ -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;
@@ -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";
@@ -1,6 +1,8 @@
1
1
  import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockRenovate: bingo_stratum.BlockWithoutAddons<{
3
+ declare const blockRenovate: bingo_stratum.BlockWithAddons<{
4
+ ignoreDeps: string[];
5
+ }, {
4
6
  access: "public" | "restricted";
5
7
  description: string;
6
8
  directory: string;
@@ -1,10 +1,23 @@
1
+ import { z } from "zod";
1
2
  import { base } from "../base.js";
2
3
  import { blockGitHubApps } from "./blockGitHubApps.js";
4
+ import { intakeFileAsJson } from "./intake/intakeFileAsJson.js";
5
+ const zIgnoreDeps = z.array(z.string()).default([]);
3
6
  const blockRenovate = base.createBlock({
4
7
  about: {
5
8
  name: "Renovate"
6
9
  },
7
- produce() {
10
+ addons: {
11
+ ignoreDeps: zIgnoreDeps
12
+ },
13
+ intake({ files }) {
14
+ const raw = intakeFileAsJson(files, [".github", "renovate.json"]);
15
+ return {
16
+ ignoreDeps: zIgnoreDeps.safeParse(raw?.ignoreDeps).data
17
+ };
18
+ },
19
+ produce({ addons }) {
20
+ const { ignoreDeps } = addons;
8
21
  return {
9
22
  addons: [
10
23
  blockGitHubApps({
@@ -26,7 +39,9 @@ const blockRenovate = base.createBlock({
26
39
  "config:best-practices",
27
40
  "replacements:all"
28
41
  ],
29
- ignoreDeps: ["codecov/codecov-action"],
42
+ ignoreDeps: Array.from(
43
+ /* @__PURE__ */ new Set(["codecov/codecov-action", ...ignoreDeps])
44
+ ).sort(),
30
45
  labels: ["dependencies"],
31
46
  minimumReleaseAge: "7 days",
32
47
  patch: { enabled: false },
@@ -1,4 +1,3 @@
1
- import JSON5 from "json5";
2
1
  import sortKeys from "sort-keys";
3
2
  import { CompilerOptionsSchema } from "zod-tsconfig";
4
3
  import { base } from "../base.js";
@@ -14,7 +13,7 @@ import { blockPackageJson } from "./blockPackageJson.js";
14
13
  import { blockRemoveWorkflows } from "./blockRemoveWorkflows.js";
15
14
  import { blockVitest } from "./blockVitest.js";
16
15
  import { blockVSCode } from "./blockVSCode.js";
17
- import { intakeFile } from "./intake/intakeFile.js";
16
+ import { intakeFileAsJson } from "./intake/intakeFileAsJson.js";
18
17
  const blockTypeScript = base.createBlock({
19
18
  about: {
20
19
  name: "TypeScript"
@@ -23,11 +22,7 @@ const blockTypeScript = base.createBlock({
23
22
  compilerOptions: CompilerOptionsSchema.optional()
24
23
  },
25
24
  intake({ files }) {
26
- const tsconfig = intakeFile(files, ["tsconfig.json"]);
27
- if (!tsconfig) {
28
- return void 0;
29
- }
30
- const raw = JSON5.parse(tsconfig[0]);
25
+ const raw = intakeFileAsJson(files, ["tsconfig.json"]);
31
26
  const { data } = CompilerOptionsSchema.safeParse(raw?.compilerOptions);
32
27
  if (!data) {
33
28
  return void 0;
@@ -2,10 +2,6 @@ import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
3
  declare const blockVitest: bingo_stratum.BlockWithAddons<{
4
4
  exclude: string[];
5
- coverage: {
6
- exclude?: string[] | undefined;
7
- include?: string[] | undefined;
8
- };
9
5
  actionSteps: ({
10
6
  with?: Record<string, string> | undefined;
11
7
  env?: Record<string, string> | undefined;
@@ -15,6 +11,10 @@ declare const blockVitest: bingo_stratum.BlockWithAddons<{
15
11
  } | {
16
12
  uses: string;
17
13
  }))[];
14
+ coverage: {
15
+ exclude?: string[] | undefined;
16
+ include?: string[] | undefined;
17
+ };
18
18
  flags: string[];
19
19
  environment?: string | undefined;
20
20
  }, {
@@ -1470,8 +1470,8 @@ declare const blocks: {
1470
1470
  } | {
1471
1471
  uses: string;
1472
1472
  }))[];
1473
- if?: string | undefined;
1474
1473
  checkoutWith?: Record<string, string> | undefined;
1474
+ if?: string | undefined;
1475
1475
  }[] | undefined;
1476
1476
  }, {
1477
1477
  access: "public" | "restricted";
@@ -2216,7 +2216,6 @@ declare const blocks: {
2216
2216
  url?: string | undefined;
2217
2217
  email?: string | undefined;
2218
2218
  })[] | undefined;
2219
- publishConfig?: Record<string, unknown> | undefined;
2220
2219
  main?: string | undefined;
2221
2220
  types?: string | undefined;
2222
2221
  bugs?: string | {
@@ -2232,6 +2231,7 @@ declare const blocks: {
2232
2231
  overrides?: Record<string, unknown> | undefined;
2233
2232
  os?: string[] | undefined;
2234
2233
  cpu?: string[] | undefined;
2234
+ publishConfig?: Record<string, unknown> | undefined;
2235
2235
  workspaces?: string[] | undefined;
2236
2236
  deprecated?: string | undefined;
2237
2237
  typings?: string | undefined;
@@ -2811,8 +2811,8 @@ declare const blocks: {
2811
2811
  }>;
2812
2812
  blockReleaseIt: bingo_stratum.BlockWithAddons<{
2813
2813
  builders: {
2814
- order: number;
2815
2814
  run: string;
2815
+ order: number;
2816
2816
  }[];
2817
2817
  }, {
2818
2818
  access: "public" | "restricted";
@@ -2882,7 +2882,9 @@ declare const blocks: {
2882
2882
  hash?: string | undefined;
2883
2883
  }>> | undefined;
2884
2884
  }>;
2885
- blockRenovate: bingo_stratum.BlockWithoutAddons<{
2885
+ blockRenovate: bingo_stratum.BlockWithAddons<{
2886
+ ignoreDeps: string[];
2887
+ }, {
2886
2888
  access: "public" | "restricted";
2887
2889
  description: string;
2888
2890
  directory: string;
@@ -3340,10 +3342,6 @@ declare const blocks: {
3340
3342
  }>;
3341
3343
  blockVitest: bingo_stratum.BlockWithAddons<{
3342
3344
  exclude: string[];
3343
- coverage: {
3344
- exclude?: string[] | undefined;
3345
- include?: string[] | undefined;
3346
- };
3347
3345
  actionSteps: ({
3348
3346
  with?: Record<string, string> | undefined;
3349
3347
  env?: Record<string, string> | undefined;
@@ -3353,6 +3351,10 @@ declare const blocks: {
3353
3351
  } | {
3354
3352
  uses: string;
3355
3353
  }))[];
3354
+ coverage: {
3355
+ exclude?: string[] | undefined;
3356
+ include?: string[] | undefined;
3357
+ };
3356
3358
  flags: string[];
3357
3359
  environment?: string | undefined;
3358
3360
  }, {
@@ -1,5 +1,5 @@
1
1
  var name = "create-typescript-app";
2
- var version = "2.35.3";
2
+ var version = "2.35.4";
3
3
  var description = "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁";
4
4
  var repository = {
5
5
  type: "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "2.35.4",
3
+ "version": "2.36.0",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",