Skip to content

Commit 2999398

Browse files
anandgupta42claude
andcommitted
fix: [v1.17.9] build.ts stale TUI worker entry path (cli/cmd/tui -> cli/tui)
upstream_fix: the merge relocated the TUI tree cli/cmd/tui -> cli/tui but build.ts:384 still pointed at ./src/cli/cmd/tui/worker.ts, failing local builds with ModuleNotFound at the bundle entry. Repointed to ./src/cli/tui/worker.ts (verified the entry resolves + bundles). Reported by a co-worker building the branch. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6beae93 commit 2999398

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/opencode/script/build.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,10 @@ for (const item of targets) {
381381

382382
const opentuiCoreDir = path.dirname(fileURLToPath(import.meta.resolve("@opentui/core")))
383383
const parserWorker = fs.realpathSync(path.join(opentuiCoreDir, "parser.worker.js"))
384-
const workerPath = "./src/cli/cmd/tui/worker.ts"
384+
// altimate_change start — upstream_fix: TUI tree relocated cli/cmd/tui -> cli/tui in this merge;
385+
// build entry path must follow (was ./src/cli/cmd/tui/worker.ts -> ModuleNotFound at build).
386+
const workerPath = "./src/cli/tui/worker.ts"
387+
// altimate_change end
385388

386389
// Use platform-specific bunfs root path based on target OS
387390
const bunfsRoot = item.os === "win32" ? "B:/~BUN/root/" : "/$bunfs/root/"

0 commit comments

Comments
 (0)