opencode-ai 1.0.34 → 1.0.36
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 +8 -8
- package/postinstall.mjs +5 -2
package/package.json
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
"preinstall": "bun ./preinstall.mjs || node ./preinstall.mjs",
|
|
8
8
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
9
9
|
},
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.36",
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"opencode-windows-x64": "1.0.
|
|
13
|
-
"opencode-linux-arm64": "1.0.
|
|
14
|
-
"opencode-linux-x64": "1.0.
|
|
15
|
-
"opencode-linux-x64-baseline": "1.0.
|
|
16
|
-
"opencode-darwin-x64": "1.0.
|
|
17
|
-
"opencode-darwin-x64-baseline": "1.0.
|
|
18
|
-
"opencode-darwin-arm64": "1.0.
|
|
12
|
+
"opencode-windows-x64": "1.0.36",
|
|
13
|
+
"opencode-linux-arm64": "1.0.36",
|
|
14
|
+
"opencode-linux-x64": "1.0.36",
|
|
15
|
+
"opencode-linux-x64-baseline": "1.0.36",
|
|
16
|
+
"opencode-darwin-x64": "1.0.36",
|
|
17
|
+
"opencode-darwin-x64-baseline": "1.0.36",
|
|
18
|
+
"opencode-darwin-arm64": "1.0.36"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -77,7 +77,8 @@ async function regenerateWindowsCmdWrappers() {
|
|
|
77
77
|
|
|
78
78
|
// npm_config_global is string | undefined
|
|
79
79
|
// if it exists, the value is true
|
|
80
|
-
const isGlobal =
|
|
80
|
+
const isGlobal =
|
|
81
|
+
process.env.npm_config_global === "true" || pkgPath.includes(path.join("npm", "node_modules"))
|
|
81
82
|
|
|
82
83
|
// The npm rebuild command does 2 things - Execute lifecycle scripts and rebuild bin links
|
|
83
84
|
// We want to skip lifecycle scripts to avoid infinite loops, so we use --ignore-scripts
|
|
@@ -93,7 +94,9 @@ async function regenerateWindowsCmdWrappers() {
|
|
|
93
94
|
console.log("Successfully rebuilt npm bin links")
|
|
94
95
|
} catch (error) {
|
|
95
96
|
console.error("Error rebuilding npm links:", error.message)
|
|
96
|
-
console.error(
|
|
97
|
+
console.error(
|
|
98
|
+
"npm rebuild failed. You may need to manually run: npm rebuild opencode-ai --ignore-scripts",
|
|
99
|
+
)
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
|