Repository: JoshuaKGoldberg/create-typescript-app (ts)

Issue:
🐛 Bug: `blockPrettier` should also add `runBefore` Addon to scripts creation
### Bug Report Checklist

- [x] I have tried restarting my IDE and the issue persists.
- [x] I have pulled the latest `main` branch of the repository.
- [x] I have [searched for related issues](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aissue) and found none that matched my issue.

### Expected

If `blockPrettier` receives a `runBefore` Addon, it should be run before the created formatting script run:

https://github.com/JoshuaKGoldberg/create-typescript-app/blob/702a313987d17503eb4e032fc194d814eace7759/src/blocks/blockPrettier.ts#L107-L112

### Actual

It is not, per https://github.com/JoshuaKGoldberg/prettier-plugin-curly/pull/630/files#r2026901442.

### Additional Info

🎁 

Pull request description:
fix: add runBefore to local CLI run in blockPrettier
## 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

🎁 

Patch:
diff --git a/src/blocks/blockPrettier.ts b/src/blocks/blockPrettier.ts
index db78412..f193199 100644
--- a/src/blocks/blockPrettier.ts
+++ b/src/blocks/blockPrettier.ts
@@ -106,7 +106,7 @@ pnpm format --write
 			},
 			scripts: [
 				{
-					commands: ["pnpm format --write"],
+					commands: [...runBefore, "pnpm format --write"],
 					phase: CommandPhase.Format,
 				},
 			],


Test patch:
diff --git a/src/blocks/blockPrettier.test.ts b/src/blocks/blockPrettier.test.ts
index dc66811..b324bef 100644
--- a/src/blocks/blockPrettier.test.ts
+++ b/src/blocks/blockPrettier.test.ts
@@ -376,6 +376,7 @@ describe("blockPrettier", () => {
 			  "scripts": [
 			    {
 			      "commands": [
+			        "pnpm build || exit 0",
 			        "pnpm format --write",
 			      ],
 			      "phase": 4,