@costrict/cs 3.0.6 → 3.0.8
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 +11 -12
- package/postinstall.mjs +8 -2
package/package.json
CHANGED
|
@@ -6,19 +6,18 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
8
8
|
},
|
|
9
|
-
"version": "3.0.
|
|
9
|
+
"version": "3.0.8",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@costrict/cs-linux-arm64": "3.0.
|
|
13
|
-
"@costrict/cs-linux-x64": "3.0.
|
|
14
|
-
"@costrict/cs-linux-x64-baseline": "3.0.
|
|
15
|
-
"@costrict/cs-linux-arm64-musl": "3.0.
|
|
16
|
-
"@costrict/cs-linux-x64-musl": "3.0.
|
|
17
|
-
"@costrict/cs-linux-x64-baseline-musl": "3.0.
|
|
18
|
-
"@costrict/cs-darwin-arm64": "3.0.
|
|
19
|
-
"@costrict/cs-darwin-x64": "3.0.
|
|
20
|
-
"@costrict/cs-
|
|
21
|
-
"@costrict/cs-windows-x64": "3.0.
|
|
22
|
-
"@costrict/cs-windows-x64-baseline": "3.0.6"
|
|
12
|
+
"@costrict/cs-linux-arm64": "3.0.8",
|
|
13
|
+
"@costrict/cs-linux-x64": "3.0.8",
|
|
14
|
+
"@costrict/cs-linux-x64-baseline": "3.0.8",
|
|
15
|
+
"@costrict/cs-linux-arm64-musl": "3.0.8",
|
|
16
|
+
"@costrict/cs-linux-x64-musl": "3.0.8",
|
|
17
|
+
"@costrict/cs-linux-x64-baseline-musl": "3.0.8",
|
|
18
|
+
"@costrict/cs-darwin-arm64": "3.0.8",
|
|
19
|
+
"@costrict/cs-darwin-x64": "3.0.8",
|
|
20
|
+
"@costrict/cs-windows-x64": "3.0.8",
|
|
21
|
+
"@costrict/cs-windows-x64-baseline": "3.0.8"
|
|
23
22
|
}
|
|
24
23
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -119,8 +119,14 @@ async function main() {
|
|
|
119
119
|
// On non-Windows platforms, just verify the binary package exists
|
|
120
120
|
// Don't replace the wrapper script - it handles binary execution
|
|
121
121
|
const { binaryPath } = findBinary()
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
const target = path.join(__dirname, "bin", ".opencode")
|
|
123
|
+
if (fs.existsSync(target)) fs.unlinkSync(target)
|
|
124
|
+
try {
|
|
125
|
+
fs.linkSync(binaryPath, target)
|
|
126
|
+
} catch {
|
|
127
|
+
fs.copyFileSync(binaryPath, target)
|
|
128
|
+
}
|
|
129
|
+
fs.chmodSync(target, 0o755)
|
|
124
130
|
} catch (error) {
|
|
125
131
|
console.error("Failed to setup cs binary:", error.message)
|
|
126
132
|
process.exit(1)
|