mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-10 20:40:36 +00:00
fix: make build script work cross-platform (#3430)
Co-authored-by: JosXa <info@josxa.dev>
This commit is contained in:
parent
c70e393c81
commit
7d0c6860cd
1 changed files with 6 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue