From 0db303d9f8d3c1e14b8babdb99ef3696215d417d Mon Sep 17 00:00:00 2001 From: weishu Date: Wed, 6 May 2026 09:40:43 +0800 Subject: [PATCH] Fix release lockfile platform packages --- bun.lock | 3 ++- cli/scripts/release-all.ts | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bun.lock b/bun.lock index 4a82a276..b0da5e73 100644 --- a/bun.lock +++ b/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "hapi", @@ -1063,7 +1064,7 @@ "@twsxtd/hapi-linux-x64": ["@twsxtd/hapi-linux-x64@0.17.3", "", { "os": "linux", "cpu": "x64", "bin": { "hapi": "bin/hapi" } }, "sha512-VhFrUOuY5hGJlqCyHS0QTkcur7BTCWmoqfPl2G8i/dfIruJ/gHz1V0xFIDEkMkQ0UuYNctgDe0c+06B4enWyKQ=="], - "@twsxtd/hapi-win32-x64": ["@twsxtd/hapi-win32-x64@0.17.2", "", { "os": "win32", "cpu": "x64", "bin": { "hapi": "bin/hapi.exe" } }, "sha512-vFCWnudJa9oDtcTa7OdkEmBvZy6VHUwU+aT0ZnBAA1jRZNPGaw+9FhmGSqVYQL+Zq4EwPak/BABP/JKbM1f3+Q=="], + "@twsxtd/hapi-win32-x64": ["@twsxtd/hapi-win32-x64@0.17.3", "", { "os": "win32", "cpu": "x64", "bin": { "hapi": "bin/hapi.exe" } }, "sha512-fT5anWHaATKlyFAgqdXRao5wo7L4LniKUeNCE0RKnCMYsd1vqcVeEW6PkLxdg0HLUPiljc+BUH8xwy2Yocu68Q=="], "@types/aria-query": ["@types/aria-query@5.0.4", "", {}, "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw=="], diff --git a/cli/scripts/release-all.ts b/cli/scripts/release-all.ts index fda7e502..748bc96e 100644 --- a/cli/scripts/release-all.ts +++ b/cli/scripts/release-all.ts @@ -5,7 +5,7 @@ * 2. Build binaries (with embedded web assets) * 3. Publish platform packages first (so lockfile can resolve them) * 4. Publish main package - * 5. bun install (to get complete lockfile with published packages) + * 5. bun install --lockfile-only --os=* --cpu=* (to lock all platform packages) * 6. Git commit + tag + push */ @@ -124,9 +124,9 @@ async function main(): Promise { } // Step 5: bun install to get complete lockfile - console.log('\nšŸ“„ Step 5: Updating lockfile...'); + console.log('\nšŸ“„ Step 5: Updating lockfile for all platform packages...'); - await runWithTimeoutRetry('bun install', repoRoot); + await runWithTimeoutRetry('bun install --lockfile-only --os=* --cpu=*', repoRoot); // Step 6: Git commit + tag + push console.log('\nšŸ“ Step 6: Creating git commit and tag...'); run(`git add .`, repoRoot);