Skip to content

Commit 493e076

Browse files
feat: add runArgs to blockTSup (#1859)
## PR Checklist - [x] Addresses an existing open issue: fixes #1854 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview 💖
1 parent a626758 commit 493e076

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/next/blocks/blockTSup.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const blockTSup = base.createBlock({
1414
},
1515
addons: {
1616
entry: z.array(z.string()).default([]),
17+
runArgs: z.array(z.string()).default([]),
1718
},
1819
migrate() {
1920
return {
@@ -56,7 +57,12 @@ pnpm build --watch
5657
jobs: [
5758
{
5859
name: "Build",
59-
steps: [{ run: "pnpm build" }, { run: "node ./lib/index.js" }],
60+
steps: [
61+
{ run: "pnpm build" },
62+
{
63+
run: `node ./lib/index.js${addons.runArgs.map((arg) => ` ${arg}`).join("")}`,
64+
},
65+
],
6066
},
6167
],
6268
}),

0 commit comments

Comments
 (0)