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

Issue:
🚀 Feature: Run build --no-dts before eslint-doc-generator in blockESLintPlugin
### Feature Request Checklist

- [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.

### Overview

Coming over from https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/pull/993#discussion_r2032073911, `eslint-doc-generator` builds require having built source code first. We've resolved to have `blockESLintPlugin` run `pnpm build --no-dts` before `eslint-doc-generator` in its build task.

### Additional Info

🎁 

Co-authored-by: @michaelfaith 

Pull request description:
feat: add build --no-dts before eslint-doc-generator in blockESLintPlugin build:docs
## PR Checklist

- [x] Addresses an existing open issue: fixes #2182
- [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/blockESLintPlugin.ts b/src/blocks/blockESLintPlugin.ts
index f8955f1..1b777b0 100644
--- a/src/blocks/blockESLintPlugin.ts
+++ b/src/blocks/blockESLintPlugin.ts
@@ -74,7 +74,7 @@ pnpm build:docs
 							"eslint-plugin-eslint-plugin": "6.4.0",
 						},
 						scripts: {
-							"build:docs": "eslint-doc-generator",
+							"build:docs": "pnpm build --no-dts && eslint-doc-generator",
 							"lint:docs": "eslint-doc-generator --check",
 						},
 					},


Test patch:
diff --git a/src/blocks/blockESLintPlugin.test.ts b/src/blocks/blockESLintPlugin.test.ts
index 357240e..7b58751 100644
--- a/src/blocks/blockESLintPlugin.test.ts
+++ b/src/blocks/blockESLintPlugin.test.ts
@@ -96,7 +96,7 @@ describe("blockESLintPlugin", () => {
 			            "eslint-plugin-eslint-plugin": "6.4.0",
 			          },
 			          "scripts": {
-			            "build:docs": "eslint-doc-generator",
+			            "build:docs": "pnpm build --no-dts && eslint-doc-generator",
 			            "lint:docs": "eslint-doc-generator --check",
 			          },
 			        },
@@ -229,7 +229,7 @@ describe("blockESLintPlugin", () => {
 			            "eslint-plugin-eslint-plugin": "6.4.0",
 			          },
 			          "scripts": {
-			            "build:docs": "eslint-doc-generator",
+			            "build:docs": "pnpm build --no-dts && eslint-doc-generator",
 			            "lint:docs": "eslint-doc-generator --check",
 			          },
 			        },
@@ -360,7 +360,7 @@ describe("blockESLintPlugin", () => {
 			            "eslint-plugin-eslint-plugin": "6.4.0",
 			          },
 			          "scripts": {
-			            "build:docs": "eslint-doc-generator",
+			            "build:docs": "pnpm build --no-dts && eslint-doc-generator",
 			            "lint:docs": "eslint-doc-generator --check",
 			          },
 			        },