Skip to content

Commit 004cac3

Browse files
committed
fix(build): generate endpoint bindings before mirroring them into the docs manifest
1 parent e7767ed commit 004cac3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

scripts/build.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,12 +442,15 @@ async function main() {
442442
console.log('Generating theme preset CSS from palettes...');
443443
execSync('bun run scripts/sync-themes.ts', { stdio: 'inherit' });
444444

445-
console.log('Syncing docs manifest mirror...');
446-
execSync('bun run scripts/sync-manifest.ts', { stdio: 'inherit' });
447-
445+
// Bindings BEFORE the mirror: sync-manifest copies the generated bindings into
446+
// apps/docs/manifest.js, so running it first mirrors the previous build's map
447+
// and the demo Embed tab derives from a stale one until the next build.
448448
console.log('Generating spec-derived endpoint bindings...');
449449
execSync('bun run scripts/sync-bindings.ts', { stdio: 'inherit' });
450450

451+
console.log('Syncing docs manifest mirror...');
452+
execSync('bun run scripts/sync-manifest.ts', { stdio: 'inherit' });
453+
451454
console.log('Generating components catalog (for jsDelivr + the /ui page)...');
452455
execSync('bun run scripts/sync-catalog.ts', { stdio: 'inherit' });
453456

0 commit comments

Comments
 (0)