create-typescript-app 2.16.2 → 2.17.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/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>;
|
|
@@ -64,11 +64,11 @@ declare const base: bingo_stratum.Base<{
|
|
|
64
64
|
href: z.ZodString;
|
|
65
65
|
title: z.ZodString;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
title: string;
|
|
68
67
|
href: string;
|
|
69
|
-
}, {
|
|
70
68
|
title: string;
|
|
69
|
+
}, {
|
|
71
70
|
href: string;
|
|
71
|
+
title: string;
|
|
72
72
|
}>>;
|
|
73
73
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
74
74
|
logo: z.ZodOptional<z.ZodObject<{
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as bingo_stratum from 'bingo-stratum';
|
|
2
2
|
|
|
3
|
-
declare const blockReleaseIt: bingo_stratum.
|
|
3
|
+
declare const blockReleaseIt: bingo_stratum.BlockWithAddons<{
|
|
4
|
+
builders: {
|
|
5
|
+
order: number;
|
|
6
|
+
run: string;
|
|
7
|
+
}[];
|
|
8
|
+
}, {
|
|
4
9
|
access: "public" | "restricted";
|
|
5
10
|
description: string;
|
|
6
11
|
directory: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { base } from "../base.js";
|
|
2
3
|
import { getPackageDependencies } from "../data/packageData.js";
|
|
3
4
|
import { resolveUses } from "./actions/resolveUses.js";
|
|
@@ -11,7 +12,16 @@ const blockReleaseIt = base.createBlock({
|
|
|
11
12
|
about: {
|
|
12
13
|
name: "release-it"
|
|
13
14
|
},
|
|
14
|
-
|
|
15
|
+
addons: {
|
|
16
|
+
builders: z.array(
|
|
17
|
+
z.object({
|
|
18
|
+
order: z.number(),
|
|
19
|
+
run: z.string()
|
|
20
|
+
})
|
|
21
|
+
).default([])
|
|
22
|
+
},
|
|
23
|
+
produce({ addons, options }) {
|
|
24
|
+
const { builders } = addons;
|
|
15
25
|
return {
|
|
16
26
|
addons: [
|
|
17
27
|
blockCSpell({
|
|
@@ -134,9 +144,7 @@ const blockReleaseIt = base.createBlock({
|
|
|
134
144
|
{
|
|
135
145
|
uses: "./.github/actions/prepare"
|
|
136
146
|
},
|
|
137
|
-
{
|
|
138
|
-
run: "pnpm build"
|
|
139
|
-
},
|
|
147
|
+
...builders.sort((a, b) => a.order - b.order).map(({ run }) => ({ run })),
|
|
140
148
|
{
|
|
141
149
|
env: {
|
|
142
150
|
GITHUB_TOKEN: "${{ secrets.ACCESS_TOKEN }}",
|
package/lib/blocks/blockTSup.js
CHANGED
|
@@ -5,6 +5,7 @@ import { blockDevelopmentDocs } from "./blockDevelopmentDocs.js";
|
|
|
5
5
|
import { blockESLint } from "./blockESLint.js";
|
|
6
6
|
import { blockGitHubActionsCI } from "./blockGitHubActionsCI.js";
|
|
7
7
|
import { blockPackageJson } from "./blockPackageJson.js";
|
|
8
|
+
import { blockReleaseIt } from "./blockReleaseIt.js";
|
|
8
9
|
import { blockRemoveDependencies } from "./blockRemoveDependencies.js";
|
|
9
10
|
import { blockRemoveFiles } from "./blockRemoveFiles.js";
|
|
10
11
|
import { blockRemoveWorkflows } from "./blockRemoveWorkflows.js";
|
|
@@ -61,6 +62,14 @@ pnpm build --watch
|
|
|
61
62
|
build: "tsup"
|
|
62
63
|
}
|
|
63
64
|
}
|
|
65
|
+
}),
|
|
66
|
+
blockReleaseIt({
|
|
67
|
+
builders: [
|
|
68
|
+
{
|
|
69
|
+
order: 0,
|
|
70
|
+
run: "pnpm build"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
64
73
|
})
|
|
65
74
|
],
|
|
66
75
|
files: {
|
package/lib/blocks/index.d.ts
CHANGED
|
@@ -2398,7 +2398,12 @@ declare const blocks: {
|
|
|
2398
2398
|
hash?: string | undefined;
|
|
2399
2399
|
}>> | undefined;
|
|
2400
2400
|
}>;
|
|
2401
|
-
blockReleaseIt: bingo_stratum.
|
|
2401
|
+
blockReleaseIt: bingo_stratum.BlockWithAddons<{
|
|
2402
|
+
builders: {
|
|
2403
|
+
order: number;
|
|
2404
|
+
run: string;
|
|
2405
|
+
}[];
|
|
2406
|
+
}, {
|
|
2402
2407
|
access: "public" | "restricted";
|
|
2403
2408
|
description: string;
|
|
2404
2409
|
directory: string;
|
package/lib/schemas.d.ts
CHANGED
|
@@ -7,16 +7,16 @@ declare const zContributor: z.ZodObject<{
|
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
profile: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
name: string;
|
|
11
10
|
avatar_url: string;
|
|
12
11
|
contributions: string[];
|
|
13
12
|
login: string;
|
|
13
|
+
name: string;
|
|
14
14
|
profile: string;
|
|
15
15
|
}, {
|
|
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
22
|
type Contributor = z.infer<typeof zContributor>;
|