Skip to content

Commit a5dcb11

Browse files
fix: add runBefore to local CLI run in blockPrettier (#2123)
## PR Checklist - [x] Addresses an existing open issue: fixes #2122 - [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 c56f218 commit a5dcb11

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/blocks/blockPrettier.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ describe("blockPrettier", () => {
376376
"scripts": [
377377
{
378378
"commands": [
379+
"pnpm build || exit 0",
379380
"pnpm format --write",
380381
],
381382
"phase": 4,

src/blocks/blockPrettier.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pnpm format --write
106106
},
107107
scripts: [
108108
{
109-
commands: ["pnpm format --write"],
109+
commands: [...runBefore, "pnpm format --write"],
110110
phase: CommandPhase.Format,
111111
},
112112
],

0 commit comments

Comments
 (0)