aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-npm/scripts/npm-build.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bun-npm/scripts/npm-build.ts')
-rw-r--r--packages/bun-npm/scripts/npm-build.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/bun-npm/scripts/npm-build.ts b/packages/bun-npm/scripts/npm-build.ts
index 874eedbf5..3218e28cc 100644
--- a/packages/bun-npm/scripts/npm-build.ts
+++ b/packages/bun-npm/scripts/npm-build.ts
@@ -32,8 +32,11 @@ async function build(version: string): Promise<void> {
if (release.tag_name === "canary") {
const { tag_name } = await getRelease();
const sha = await getSha(tag_name);
- // Note: this needs to be run using canary
- npmVersion = `${Bun.version}-canary+${sha}`;
+ // Bun.version is the nightly release version,
+ // but that means this script must be run using canary.
+ // Also, npm does not accept "+build" in releases,
+ // so the format is "{nightly}-canary.{sha}".
+ npmVersion = `${Bun.version}-canary.${sha}`;
} else {
npmVersion = release.tag_name.replace("bun-v", "");
}