summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-11-15 18:16:19 -0800
committerGitHub <[email protected]>2025-11-15 20:16:19 -0600
commit6527a123f0375eae6e141901195707df88f28411 (patch)
tree64786ceb04d59973f99cd0d7676d022d770c0657
parent0377cfd37c20bef41c57c62370709facee8fc449 (diff)
downloadopencode-6527a123f0375eae6e141901195707df88f28411.tar.gz
opencode-6527a123f0375eae6e141901195707df88f28411.zip
fix aur build (#4359)
-rw-r--r--.github/workflows/snapshot.yml2
-rwxr-xr-xpackages/opencode/script/build.ts4
2 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml
index ab2f9c0f2..6c38495d1 100644
--- a/.github/workflows/snapshot.yml
+++ b/.github/workflows/snapshot.yml
@@ -4,7 +4,7 @@ on:
push:
branches:
- dev
- - windows
+ - fix-build
- v0
concurrency: ${{ github.workflow }}-${{ github.ref }}
diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts
index 502baed02..2e3c4ee5c 100755
--- a/packages/opencode/script/build.ts
+++ b/packages/opencode/script/build.ts
@@ -1,6 +1,5 @@
#!/usr/bin/env bun
-import solidPlugin from "../node_modules/@opentui/solid/scripts/solid-plugin"
import path from "path"
import fs from "fs"
import { $ } from "bun"
@@ -10,6 +9,9 @@ const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const dir = path.resolve(__dirname, "..")
+const solidPluginPath = path.resolve(dir, "node_modules/@opentui/solid/scripts/solid-plugin.ts")
+const solidPlugin = (await import(solidPluginPath)).default
+
process.chdir(dir)
import pkg from "../package.json"