GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(win32): scripts/turbo commands would not run (#14829) · romanr/opencode@34495a7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • plugin/script
      • publish.ts
    • sdk/js
      • package.json
      • script
        • build.ts
        • publish.ts
  • script
    • publish.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/plugin/script/publish.ts‎

Copy file name to clipboardExpand all lines: packages/plugin/script/publish.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env bun
22
import { Script } from "@opencode-ai/script"
33
import { $ } from "bun"
4+
import { fileURLToPath } from "url"
45

5-
const dir = new URL("..", import.meta.url).pathname
6+
const dir = fileURLToPath(new URL("..", import.meta.url))
67
process.chdir(dir)
78

89
await $`bun tsc`
Collapse file

‎packages/sdk/js/package.json‎

Copy file name to clipboardExpand all lines: packages/sdk/js/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"scripts": {
88
"typecheck": "tsgo --noEmit",
9-
"build": "./script/build.ts"
9+
"build": "bun ./script/build.ts"
1010
},
1111
"exports": {
1212
".": "./src/index.ts",
Collapse file

‎packages/sdk/js/script/build.ts‎

Copy file name to clipboardExpand all lines: packages/sdk/js/script/build.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bun
2+
import { fileURLToPath } from "url"
23

3-
const dir = new URL("..", import.meta.url).pathname
4+
const dir = fileURLToPath(new URL("..", import.meta.url))
45
process.chdir(dir)
56

67
import { $ } from "bun"
Collapse file

‎packages/sdk/js/script/publish.ts‎

Copy file name to clipboardExpand all lines: packages/sdk/js/script/publish.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
import { Script } from "@opencode-ai/script"
44
import { $ } from "bun"
5+
import { fileURLToPath } from "url"
56

6-
const dir = new URL("..", import.meta.url).pathname
7+
const dir = fileURLToPath(new URL("..", import.meta.url))
78
process.chdir(dir)
89

910
const pkg = (await import("../package.json").then((m) => m.default)) as {
Collapse file

‎script/publish.ts‎

Copy file name to clipboardExpand all lines: script/publish.ts
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { $ } from "bun"
44
import { Script } from "@opencode-ai/script"
5+
import { fileURLToPath } from "url"
56

67
const highlightsTemplate = `
78
<!--
@@ -46,7 +47,7 @@ for (const file of pkgjsons) {
4647
await Bun.file(file).write(pkg)
4748
}
4849

49-
const extensionToml = new URL("../packages/extensions/zed/extension.toml", import.meta.url).pathname
50+
const extensionToml = fileURLToPath(new URL("../packages/extensions/zed/extension.toml", import.meta.url))
5051
let toml = await Bun.file(extensionToml).text()
5152
toml = toml.replace(/^version = "[^"]+"/m, `version = "${Script.version}"`)
5253
toml = toml.replaceAll(/releases\/download\/v[^/]+\//g, `releases/download/v${Script.version}/`)
@@ -78,5 +79,5 @@ await import(`../packages/sdk/js/script/publish.ts`)
7879
console.log("\n=== plugin ===\n")
7980
await import(`../packages/plugin/script/publish.ts`)
8081

81-
const dir = new URL("..", import.meta.url).pathname
82+
const dir = fileURLToPath(new URL("..", import.meta.url))
8283
process.chdir(dir)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.