gm-plugkit 2.0.2092 → 2.0.2094

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.
@@ -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.2092",
3
+ "version": "2.0.2094",
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": {