fix: make build script work cross-platform (#3430)

Co-authored-by: JosXa <info@josxa.dev>
This commit is contained in:
Joscha Götzer
2025-10-26 07:40:17 +01:00
committed by GitHub
parent c70e393c81
commit 7d0c6860cd

View File

@@ -1,6 +1,11 @@
#!/usr/bin/env bun
import path from "path"
const dir = new URL("..", import.meta.url).pathname
import { fileURLToPath } from "url"
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const dir = path.resolve(__dirname, "..")
process.chdir(dir)
import { $ } from "bun"