From f615b012e7d397fe7f49d3caf738181e2318cf48 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 151500cc..3a687331 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] : []