summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-11-18 01:02:32 -0600
committerAiden Cline <[email protected]>2025-11-18 01:02:52 -0600
commit856c87d05c911c81a9b418052ff9bec86ed72ca0 (patch)
treef93fba8e863611511552f77360c324cfecec6baa
parentde35c3fb84829faeb3ba44413d326ad50a845df4 (diff)
downloadopencode-856c87d05c911c81a9b418052ff9bec86ed72ca0.tar.gz
opencode-856c87d05c911c81a9b418052ff9bec86ed72ca0.zip
fix: snapshot?
-rwxr-xr-xpackages/opencode/script/build.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts
index 2e3c4ee5c..3edd14b17 100755
--- a/packages/opencode/script/build.ts
+++ b/packages/opencode/script/build.ts
@@ -9,7 +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")
+// Resolve @opentui/solid package path more robustly using import.meta.resolve
+const solidPackagePath = path.dirname(fileURLToPath(import.meta.resolve("@opentui/solid")))
+const solidPluginPath = path.join(solidPackagePath, "scripts/solid-plugin.ts")
const solidPlugin = (await import(solidPluginPath)).default
process.chdir(dir)