Skip to content

Commit 941ba7f

Browse files
committed
load actual opentui version for native prebuild packages
1 parent af0f40e commit 941ba7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/script/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ for (const [os, arch] of targets) {
3737

3838
const opentui = `@opentui/core-${os === "windows" ? "win32" : os}-${arch.replace("-baseline", "")}`
3939
await $`mkdir -p ../../node_modules/${opentui}`
40-
await $`npm pack ${opentui}`.cwd(path.join(dir, "../../node_modules"))
40+
await $`npm pack ${opentui}@${pkg.dependencies["@opentui/core"]}`.cwd(path.join(dir, "../../node_modules"))
4141
await $`tar -xf ../../node_modules/${opentui.replace("@opentui/", "opentui-")}-*.tgz -C ../../node_modules/${opentui} --strip-components=1`
4242

4343
const watcher = `@parcel/watcher-${os === "windows" ? "win32" : os}-${arch.replace("-baseline", "")}${os === "linux" ? "-glibc" : ""}`

0 commit comments

Comments
 (0)