summaryrefslogtreecommitdiffhomepage
path: root/packages/containers/script
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-01-29 23:15:12 -0500
committerDax Raad <[email protected]>2026-01-29 23:15:12 -0500
commit849f488744ae6ba6b1f647e2ace9485bf1e3f214 (patch)
tree2010612a9a770fbfd22ef2d1b56616a0a9707001 /packages/containers/script
parent5ea1042ffba32b4e1b66e8944b5ec8c3899f5674 (diff)
downloadopencode-849f488744ae6ba6b1f647e2ace9485bf1e3f214.tar.gz
opencode-849f488744ae6ba6b1f647e2ace9485bf1e3f214.zip
ci
Diffstat (limited to 'packages/containers/script')
-rw-r--r--packages/containers/script/build.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/containers/script/build.ts b/packages/containers/script/build.ts
index 0ace10731..ff259f2ab 100644
--- a/packages/containers/script/build.ts
+++ b/packages/containers/script/build.ts
@@ -1,15 +1,17 @@
#!/usr/bin/env bun
import { $ } from "bun"
+import path from "path"
+import { fileURLToPath } from "url"
-const rootDir = new URL("../../..", import.meta.url).pathname
+const rootDir = fileURLToPath(new URL("../../..", import.meta.url))
process.chdir(rootDir)
const reg = process.env.REGISTRY ?? "ghcr.io/anomalyco"
const tag = process.env.TAG ?? "24.04"
const push = process.argv.includes("--push") || process.env.PUSH === "1"
-const root = new URL("package.json", new URL(rootDir)).pathname
+const root = path.join(rootDir, "package.json")
const pkg = await Bun.file(root).json()
const manager = pkg.packageManager ?? ""
const bun = manager.startsWith("bun@") ? manager.slice(4) : ""