Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@
"@opencode-ai/script": "workspace:*",
"@opencode-ai/sdk": "workspace:*",
"heap-snapshot-toolkit": "1.1.3",
"opencode-linux-x64": "1.18.25",
"opencode-linux-x64-baseline": "1.18.25",
"opencode-linux-x64-baseline-musl": "1.18.25",
"opencode-linux-x64-musl": "1.18.25",
"typescript": "catalog:"
},
"repository": {
Expand Down
12 changes: 7 additions & 5 deletions packages/opencode/bin/opencode
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

const childProcess = require("child_process")
const fs = require("fs")
const path = require("path")
const os = require("os")
import childProcess from "node:child_process"
import fs from "node:fs"
import path from "node:path"
import os from "node:os"

const forwardedSignals = ["SIGINT", "SIGTERM", "SIGHUP"]

Expand Down Expand Up @@ -45,7 +45,9 @@ function run(target) {

const envPath = process.env.OPENCODE_BIN_PATH

const scriptPath = fs.realpathSync(__filename)
import { fileURLToPath } from "node:url"

const scriptPath = fs.realpathSync(fileURLToPath(import.meta.url))
const scriptDir = path.dirname(scriptPath)

//
Expand Down
Loading