@contextfort-ai/openclaw-secure 0.1.0 → 0.1.1
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/openclaw-secure.js +2 -1
- package/package.json +1 -1
package/bin/openclaw-secure.js
CHANGED
|
@@ -19,7 +19,8 @@ try {
|
|
|
19
19
|
}
|
|
20
20
|
const installedBinDir = path.dirname(installedScript);
|
|
21
21
|
const packageDir = path.dirname(installedBinDir);
|
|
22
|
-
|
|
22
|
+
let nodeModules = path.dirname(packageDir);
|
|
23
|
+
if (path.basename(nodeModules).startsWith('@')) nodeModules = path.dirname(nodeModules);
|
|
23
24
|
const prefixDir = path.dirname(path.dirname(nodeModules));
|
|
24
25
|
const binDir = path.join(prefixDir, 'bin');
|
|
25
26
|
const realOpenclaw = path.join(nodeModules, 'openclaw', 'openclaw.mjs');
|
package/package.json
CHANGED