gm-plugkit 2.0.2093 → 2.0.2095
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/bootstrap-shared.js +5 -0
- package/package.json +1 -1
package/bootstrap-shared.js
CHANGED
|
@@ -232,6 +232,10 @@ function resolveWindowsExe(cmd) {
|
|
|
232
232
|
|
|
233
233
|
function resolveNpmCliJs(shimPath) {
|
|
234
234
|
const candidates = [];
|
|
235
|
+
try {
|
|
236
|
+
const execDir = path.dirname(process.execPath);
|
|
237
|
+
candidates.push(path.join(execDir, 'node_modules', 'npm', 'bin', 'npm-cli.js'));
|
|
238
|
+
} catch (_) {}
|
|
235
239
|
try {
|
|
236
240
|
const shimDir = path.dirname(shimPath);
|
|
237
241
|
candidates.push(path.join(shimDir, 'node_modules', 'npm', 'bin', 'npm-cli.js'));
|
|
@@ -239,6 +243,7 @@ function resolveNpmCliJs(shimPath) {
|
|
|
239
243
|
candidates.push(
|
|
240
244
|
path.join('C:', 'Program Files', 'nodejs', 'node_modules', 'npm', 'bin', 'npm-cli.js'),
|
|
241
245
|
path.join(process.env.APPDATA || '', 'npm', 'node_modules', 'npm', 'bin', 'npm-cli.js'),
|
|
246
|
+
path.join(process.env.APPDATA || '', 'nvm', process.version.replace(/^v/, ''), 'node_modules', 'npm', 'bin', 'npm-cli.js'),
|
|
242
247
|
);
|
|
243
248
|
return candidates.find(p => { try { return fs.existsSync(p); } catch (_) { return false; } }) || null;
|
|
244
249
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2095",
|
|
4
4
|
"description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform wasm, verifies SHA256, and launches agentplug-runner (the native wasm host) as the spool watcher daemon.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|