diff options
| author | Luke Parker <[email protected]> | 2026-02-24 09:15:25 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-24 09:15:25 +1000 |
| commit | 34495a70d5069355bbad95c95625818afa677eb1 (patch) | |
| tree | b7d73b9f45e52ac2400442746f2b86c1cd6d17de /script | |
| parent | ad5f0816a33d323f2a7e6a6228136fa6a6c4b056 (diff) | |
| download | opencode-34495a70d5069355bbad95c95625818afa677eb1.tar.gz opencode-34495a70d5069355bbad95c95625818afa677eb1.zip | |
fix(win32): scripts/turbo commands would not run (#14829)
Diffstat (limited to 'script')
| -rwxr-xr-x | script/publish.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/script/publish.ts b/script/publish.ts index 8aa921daa..b7ed5c822 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -2,6 +2,7 @@ import { $ } from "bun" import { Script } from "@opencode-ai/script" +import { fileURLToPath } from "url" const highlightsTemplate = ` <!-- @@ -46,7 +47,7 @@ for (const file of pkgjsons) { await Bun.file(file).write(pkg) } -const extensionToml = new URL("../packages/extensions/zed/extension.toml", import.meta.url).pathname +const extensionToml = fileURLToPath(new URL("../packages/extensions/zed/extension.toml", import.meta.url)) let toml = await Bun.file(extensionToml).text() toml = toml.replace(/^version = "[^"]+"/m, `version = "${Script.version}"`) toml = toml.replaceAll(/releases\/download\/v[^/]+\//g, `releases/download/v${Script.version}/`) @@ -78,5 +79,5 @@ await import(`../packages/sdk/js/script/publish.ts`) console.log("\n=== plugin ===\n") await import(`../packages/plugin/script/publish.ts`) -const dir = new URL("..", import.meta.url).pathname +const dir = fileURLToPath(new URL("..", import.meta.url)) process.chdir(dir) |
