create-typescript-app 2.16.1 → 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.
@@ -1,6 +1,11 @@
1
1
  import * as bingo_stratum from 'bingo-stratum';
2
2
 
3
- declare const blockReleaseIt: bingo_stratum.BlockWithoutAddons<{
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
- produce({ options }) {
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 }}",
@@ -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: {
@@ -62,15 +62,15 @@ To launch it, open a test file, then run _Debug Current Test File_ from the VS C
62
62
  ],
63
63
  files: {
64
64
  ".vscode": {
65
- "extensions.json": extensions && JSON.stringify({
65
+ "extensions.json": extensions?.length ? JSON.stringify({
66
66
  recommendations: [...extensions].sort()
67
- }),
68
- "launch.json": debuggers && JSON.stringify({
67
+ }) : void 0,
68
+ "launch.json": debuggers?.length ? JSON.stringify({
69
69
  configurations: [...debuggers].sort(
70
70
  (a, b) => a.name.localeCompare(b.name)
71
71
  ),
72
72
  version: "0.2.0"
73
- }),
73
+ }) : void 0,
74
74
  "settings.json": JSON.stringify(
75
75
  sortKeys({
76
76
  "editor.formatOnSave": true,
@@ -78,10 +78,10 @@ To launch it, open a test file, then run _Debug Current Test File_ from the VS C
78
78
  ...settings
79
79
  })
80
80
  ),
81
- "tasks.json": tasks && JSON.stringify({
81
+ "tasks.json": tasks?.length ? JSON.stringify({
82
82
  tasks: tasks.sort((a, b) => a.detail.localeCompare(b.detail)),
83
83
  version: "2.0.0"
84
- })
84
+ }) : void 0
85
85
  }
86
86
  }
87
87
  };
@@ -2398,7 +2398,12 @@ declare const blocks: {
2398
2398
  hash?: string | undefined;
2399
2399
  }>> | undefined;
2400
2400
  }>;
2401
- blockReleaseIt: bingo_stratum.BlockWithoutAddons<{
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;
@@ -1,5 +1,5 @@
1
1
  var name = "create-typescript-app";
2
- var version = "2.16.0";
2
+ var version = "2.16.2";
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.16.1",
3
+ "version": "2.17.0",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",