Update bun version
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user