Update bun version

This commit is contained in:
Ryan Hughes
2025-11-11 12:37:18 -05:00
parent 63a1cb039e
commit 459962b913
+10 -2
View File
@@ -18,6 +18,13 @@ makedepends=('git' 'bun-bin' 'go' 'npm')
source=("opencode-${pkgver}.tar.gz::https://github.com/sst/opencode/archive/v${pkgver}${_subver}.tar.gz")
sha256sums=('3db64a1cd6f0b1163e50092aeac73ba21144d8bacbe52c70b1493ba2e52dd05b')
prepare() {
cd "opencode-${pkgver}"
# Patch package.json to accept bun 1.3.2 instead of locked 1.3.1
sed -i 's/"packageManager": "bun@1\.3\.1"/"packageManager": "bun@1.3.2"/' package.json
}
build() {
cd "opencode-${pkgver}"
@@ -27,9 +34,10 @@ build() {
# Install workspace dependencies from root
bun install
# Install from package directory to create local node_modules with workspace symlinks
# The build script uses relative imports like ../node_modules/...
# Create symlink so packages/opencode/node_modules points to root node_modules
cd packages/opencode
bun install
ln -sf ../../node_modules node_modules
# Build the binary
OPENCODE_CHANNEL=latest OPENCODE_VERSION=${pkgver} bun run build --single