@opencode/cli-node 0.0.0-beta-19381 → 0.0.0-beta-19398
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.
- package/package.json +6 -6
- 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-beta-
|
|
9
|
+
"version": "0.0.0-beta-19398",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"x64"
|
|
23
23
|
],
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@opencode/cli-node-linux-
|
|
26
|
-
"@opencode/cli-node-windows-
|
|
27
|
-
"@opencode/cli-node-windows-
|
|
28
|
-
"@opencode/cli-node-
|
|
29
|
-
"@opencode/cli-node-
|
|
25
|
+
"@opencode/cli-node-linux-x64": "0.0.0-beta-19398",
|
|
26
|
+
"@opencode/cli-node-windows-arm64": "0.0.0-beta-19398",
|
|
27
|
+
"@opencode/cli-node-windows-x64": "0.0.0-beta-19398",
|
|
28
|
+
"@opencode/cli-node-linux-arm64": "0.0.0-beta-19398",
|
|
29
|
+
"@opencode/cli-node-darwin-arm64": "0.0.0-beta-19398"
|
|
30
30
|
}
|
|
31
31
|
}
|
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))
|
|
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 {
|