From a0469381a7ffd34b45b4d3f717bbf597fc62dbdd Mon Sep 17 00:00:00 2001 From: Sangrak Choi Date: Sun, 11 Jan 2026 01:20:44 -0800 Subject: [PATCH] fix: run build before npm publish to include correct version (#653) --- script/publish.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/publish.ts b/script/publish.ts index 151500cca..3a6873310 100644 --- a/script/publish.ts +++ b/script/publish.ts @@ -114,6 +114,9 @@ function getDistTag(version: string): string | null { } async function buildAndPublish(version: string): Promise { + console.log("\nBuilding before publish...") + await $`bun run clean && bun run build` + console.log("\nPublishing to npm...") const distTag = getDistTag(version) const tagArgs = distTag ? ["--tag", distTag] : []