create-typescript-app 2.35.3 → 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.
- package/README.md +1 -1
- package/lib/blocks/blockAllContributors.js +12 -8
- package/lib/blocks/blockGitHubActionsCI.d.ts +1 -1
- package/lib/blocks/blockPackageJson.d.ts +1 -1
- package/lib/blocks/blockReleaseIt.d.ts +1 -1
- package/lib/blocks/blockRenovate.d.ts +3 -1
- package/lib/blocks/blockRenovate.js +17 -2
- package/lib/blocks/blockTypeScript.js +2 -7
- package/lib/blocks/blockVitest.d.ts +4 -4
- package/lib/blocks/index.d.ts +10 -8
- package/lib/data/packageData.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ You can read more about `create-typescript-app` and the tooling it supports:
|
|
|
52
52
|
3. [**FAQs**](./docs/FAQs.md): frequently asked questions and troubleshooting
|
|
53
53
|
|
|
54
54
|
> [!NOTE]
|
|
55
|
-
> This template is
|
|
55
|
+
> This template is opinionated and not endorsed by the TypeScript team.
|
|
56
56
|
> It can be configured to set up a _lot_ of tooling out of the box.
|
|
57
57
|
> If you don't want to use any particular tool, you can always remove it manually.
|
|
58
58
|
|
|
@@ -56,13 +56,17 @@ const blockAllContributors = base.createBlock({
|
|
|
56
56
|
})
|
|
57
57
|
],
|
|
58
58
|
files: {
|
|
59
|
-
".all-contributorsrc": JSON.stringify(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
".all-contributorsrc": JSON.stringify(
|
|
60
|
+
{
|
|
61
|
+
badgeTemplate: ' <a href="#contributors" target="_blank"><img alt="\u{1F46A} All Contributors: <%= contributors.length %>" src="https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg" /></a>',
|
|
62
|
+
contributors: options.contributors ?? [],
|
|
63
|
+
contributorsSortAlphabetically: true,
|
|
64
|
+
projectName: options.repository,
|
|
65
|
+
projectOwner: options.owner
|
|
66
|
+
},
|
|
67
|
+
null,
|
|
68
|
+
2
|
|
69
|
+
),
|
|
66
70
|
".github": {
|
|
67
71
|
workflows: {
|
|
68
72
|
"contributors.yml": createSoloWorkflowFile({
|
|
@@ -98,7 +102,7 @@ const blockAllContributors = base.createBlock({
|
|
|
98
102
|
scripts: [
|
|
99
103
|
{
|
|
100
104
|
commands: [
|
|
101
|
-
`pnpx all-contributors-cli add ${options.owner} ${ownerContributions.join(",")}`
|
|
105
|
+
`pnpx all-contributors-cli@6.23.0 add ${options.owner} ${ownerContributions.join(",")}`
|
|
102
106
|
],
|
|
103
107
|
phase: CommandPhase.Process
|
|
104
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;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockRenovate: bingo_stratum.
|
|
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
|
-
|
|
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:
|
|
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 {
|
|
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
|
|
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
|
}, {
|
package/lib/blocks/index.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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",
|
|
@@ -34,7 +34,7 @@ var scripts = {
|
|
|
34
34
|
};
|
|
35
35
|
var dependencies = {
|
|
36
36
|
"@typescript-eslint/typescript-estree": "^8.29.1",
|
|
37
|
-
bingo: "^0.5.
|
|
37
|
+
bingo: "^0.5.15",
|
|
38
38
|
"bingo-fs": "^0.5.5",
|
|
39
39
|
"bingo-stratum": "^0.5.11",
|
|
40
40
|
"cached-factory": "^0.1.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-typescript-app",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.36.0",
|
|
4
4
|
"description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@typescript-eslint/typescript-estree": "^8.29.1",
|
|
41
|
-
"bingo": "^0.5.
|
|
41
|
+
"bingo": "^0.5.15",
|
|
42
42
|
"bingo-fs": "^0.5.5",
|
|
43
43
|
"bingo-stratum": "^0.5.11",
|
|
44
44
|
"cached-factory": "^0.1.0",
|