opencode-ai 1.0.44 → 1.0.46

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