Skip to content

Commit c87781e

Browse files
kylemclarenclaude
andcommitted
Run biome format on generated api-sidebar.ts
Ensures the generated file always matches project lint rules. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent bcdf198 commit c87781e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/generate-api-docs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Supports multiple API versions with versioned output directories.
88
*/
99

10+
import { execSync } from 'node:child_process';
1011
import { constants } from 'node:fs';
1112
import {
1213
access,
@@ -1588,6 +1589,10 @@ async function main() {
15881589
DEFAULT_VERSION.id,
15891590
);
15901591
await writeFile(API_SIDEBAR_OUTPUT_PATH, sidebarContent);
1592+
// Format with biome to match project style
1593+
execSync(`npx biome format --write ${API_SIDEBAR_OUTPUT_PATH}`, {
1594+
stdio: 'pipe',
1595+
});
15911596
console.log(` ✅ Generated ${API_SIDEBAR_OUTPUT_PATH}`);
15921597
}
15931598

0 commit comments

Comments
 (0)