Sfoglia il codice sorgente

ignore: fix snapshot (#4444)

Co-authored-by: opencode <[email protected]>
Aiden Cline 3 mesi fa
parent
commit
e49204bd33
4 ha cambiato i file con 4 aggiunte e 8 eliminazioni
  1. 1 1
      .github/workflows/snapshot.yml
  2. 1 1
      bun.lock
  3. 1 1
      nix/hashes.json
  4. 1 5
      packages/opencode/script/build.ts

+ 1 - 1
.github/workflows/snapshot.yml

@@ -4,7 +4,7 @@ on:
   push:
     branches:
       - dev
-      - fix-build
+      - fix-snapshot-2
       - v0
 
 concurrency: ${{ github.workflow }}-${{ github.ref }}

+ 1 - 1
bun.lock

@@ -1,6 +1,6 @@
 {
   "lockfileVersion": 1,
-  "configVersion": 0,
+  "configVersion": 1,
   "workspaces": {
     "": {
       "name": "opencode",

+ 1 - 1
nix/hashes.json

@@ -1,3 +1,3 @@
 {
-  "nodeModules": "sha256-srbGIRjvpqUF+jWq4GAx7sGAasq02dRySnxTjijJJT8="
+  "nodeModules": "sha256-lAU5G92UJ998pKOd0EAt9gUa/HUXXvu6xAUdH2STmDo="
 }

+ 1 - 5
packages/opencode/script/build.ts

@@ -1,5 +1,6 @@
 #!/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"
@@ -9,11 +10,6 @@ const __filename = fileURLToPath(import.meta.url)
 const __dirname = path.dirname(__filename)
 const dir = path.resolve(__dirname, "..")
 
-// 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)
 
 import pkg from "../package.json"