@opencode/cli 0.0.0-dev-19391 → 0.0.0-dev-19393

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +13 -13
  2. package/postinstall.mjs +5 -1
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "scripts": {
7
7
  "postinstall": "node ./postinstall.mjs"
8
8
  },
9
- "version": "0.0.0-dev-19391",
9
+ "version": "0.0.0-dev-19393",
10
10
  "license": "MIT",
11
11
  "repository": {
12
12
  "type": "git",
@@ -22,17 +22,17 @@
22
22
  "x64"
23
23
  ],
24
24
  "optionalDependencies": {
25
- "@opencode/cli-linux-arm64": "0.0.0-dev-19391",
26
- "@opencode/cli-linux-x64-baseline": "0.0.0-dev-19391",
27
- "@opencode/cli-windows-x64-baseline": "0.0.0-dev-19391",
28
- "@opencode/cli-windows-arm64": "0.0.0-dev-19391",
29
- "@opencode/cli-windows-x64": "0.0.0-dev-19391",
30
- "@opencode/cli-linux-x64-baseline-musl": "0.0.0-dev-19391",
31
- "@opencode/cli-darwin-arm64": "0.0.0-dev-19391",
32
- "@opencode/cli-darwin-x64-baseline": "0.0.0-dev-19391",
33
- "@opencode/cli-linux-x64-musl": "0.0.0-dev-19391",
34
- "@opencode/cli-linux-arm64-musl": "0.0.0-dev-19391",
35
- "@opencode/cli-linux-x64": "0.0.0-dev-19391",
36
- "@opencode/cli-darwin-x64": "0.0.0-dev-19391"
25
+ "@opencode/cli-linux-x64": "0.0.0-dev-19393",
26
+ "@opencode/cli-windows-x64": "0.0.0-dev-19393",
27
+ "@opencode/cli-darwin-x64": "0.0.0-dev-19393",
28
+ "@opencode/cli-linux-x64-baseline-musl": "0.0.0-dev-19393",
29
+ "@opencode/cli-windows-x64-baseline": "0.0.0-dev-19393",
30
+ "@opencode/cli-linux-x64-baseline": "0.0.0-dev-19393",
31
+ "@opencode/cli-linux-x64-musl": "0.0.0-dev-19393",
32
+ "@opencode/cli-linux-arm64-musl": "0.0.0-dev-19393",
33
+ "@opencode/cli-linux-arm64": "0.0.0-dev-19393",
34
+ "@opencode/cli-windows-arm64": "0.0.0-dev-19393",
35
+ "@opencode/cli-darwin-arm64": "0.0.0-dev-19393",
36
+ "@opencode/cli-darwin-x64-baseline": "0.0.0-dev-19393"
37
37
  }
38
38
  }
package/postinstall.mjs CHANGED
@@ -100,7 +100,11 @@ function packageNames() {
100
100
  function copyBinary(source) {
101
101
  if (!fs.existsSync(source)) throw new Error(`Binary not found at ${source}`)
102
102
  fs.mkdirSync(path.dirname(targetBinary), { recursive: true })
103
- if (fs.existsSync(targetBinary)) fs.unlinkSync(targetBinary)
103
+ if (fs.existsSync(targetBinary)) {
104
+ try {
105
+ fs.unlinkSync(targetBinary)
106
+ } catch {}
107
+ }
104
108
  try {
105
109
  fs.linkSync(source, targetBinary)
106
110
  } catch {