@onescience/onecode 1.14.50-202607011608 → 1.14.50-202607011643
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/bin/onecode +8 -0
- package/package.json +1 -1
package/bin/onecode
CHANGED
|
@@ -195,4 +195,12 @@ if (!resolved) {
|
|
|
195
195
|
process.exit(1)
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
// Pass the real platform binary path to the child so it can locate bundled
|
|
199
|
+
// .opencode/ (session-seed, oneskills) inside node_modules/onecode-linux-x64/.
|
|
200
|
+
// Without this, process.execPath is bin/.onecode (hardlink) and bundled
|
|
201
|
+
// content relative to that path is never found.
|
|
202
|
+
if (!process.env.ONECODE_BIN_PATH && !process.env.OPENCODE_BIN_PATH) {
|
|
203
|
+
process.env.ONECODE_BIN_PATH = resolved
|
|
204
|
+
}
|
|
205
|
+
|
|
198
206
|
run(resolved)
|