Skip to content

Commit 849f488

Browse files
committed
ci
1 parent 5ea1042 commit 849f488

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/containers/script/build.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
#!/usr/bin/env bun
22

33
import { $ } from "bun"
4+
import path from "path"
5+
import { fileURLToPath } from "url"
46

5-
const rootDir = new URL("../../..", import.meta.url).pathname
7+
const rootDir = fileURLToPath(new URL("../../..", import.meta.url))
68
process.chdir(rootDir)
79

810
const reg = process.env.REGISTRY ?? "ghcr.io/anomalyco"
911
const tag = process.env.TAG ?? "24.04"
1012
const push = process.argv.includes("--push") || process.env.PUSH === "1"
1113

12-
const root = new URL("package.json", new URL(rootDir)).pathname
14+
const root = path.join(rootDir, "package.json")
1315
const pkg = await Bun.file(root).json()
1416
const manager = pkg.packageManager ?? ""
1517
const bun = manager.startsWith("bun@") ? manager.slice(4) : ""

0 commit comments

Comments
 (0)