File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/containers/script Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env bun
22
33import { $ } 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 ) )
68process . chdir ( rootDir )
79
810const reg = process . env . REGISTRY ?? "ghcr.io/anomalyco"
911const tag = process . env . TAG ?? "24.04"
1012const 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" )
1315const pkg = await Bun . file ( root ) . json ( )
1416const manager = pkg . packageManager ?? ""
1517const bun = manager . startsWith ( "bun@" ) ? manager . slice ( 4 ) : ""
You can’t perform that action at this time.
0 commit comments