Update bun version
This commit is contained in:
1 parent
63a1cb039e
commit
459962b913
1 file changed
+10
-2
@@ -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")
|
source=("opencode-${pkgver}.tar.gz::https://github.com/sst/opencode/archive/v${pkgver}${_subver}.tar.gz")
|
||||||
sha256sums=('3db64a1cd6f0b1163e50092aeac73ba21144d8bacbe52c70b1493ba2e52dd05b')
|
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() {
|
build() {
|
||||||
cd "opencode-${pkgver}"
|
cd "opencode-${pkgver}"
|
||||||
|
|
||||||
@@ -27,9 +34,10 @@ build() {
|
|||||||
# Install workspace dependencies from root
|
# Install workspace dependencies from root
|
||||||
bun install
|
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
|
cd packages/opencode
|
||||||
bun install
|
ln -sf ../../node_modules node_modules
|
||||||
|
|
||||||
# Build the binary
|
# Build the binary
|
||||||
OPENCODE_CHANNEL=latest OPENCODE_VERSION=${pkgver} bun run build --single
|
OPENCODE_CHANNEL=latest OPENCODE_VERSION=${pkgver} bun run build --single
|
||||||
|
|||||||
Reference in new issue
Block a user