gm-plugkit 2.0.1177 → 2.0.1178

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/bootstrap.js +6 -15
  2. package/package.json +1 -1
package/bootstrap.js CHANGED
@@ -178,27 +178,18 @@ async function extractNpmPackageWasm(destPath, version) {
178
178
  log(`extracting npm package ${NPM_PACKAGE}@${version} to ${tempDir}`);
179
179
  obsEvent('bootstrap', 'npm.extract.start', { package: NPM_PACKAGE, version });
180
180
 
181
- let cmd, args;
182
- if (process.platform === 'win32') {
183
- const npxCli = resolveNpxJsCli();
184
- if (npxCli) {
185
- cmd = process.execPath;
186
- args = [npxCli, NPM_PACKAGE + '@' + version, '--prefix', tempDir];
187
- } else {
188
- cmd = 'npx.cmd';
189
- args = [NPM_PACKAGE + '@' + version, '--prefix', tempDir];
190
- }
191
- } else {
192
- cmd = 'npx';
193
- args = [NPM_PACKAGE + '@' + version, '--prefix', tempDir];
194
- }
181
+ fs.writeFileSync(path.join(tempDir, 'package.json'), JSON.stringify({ name: 'plugkit-extract', version: '0.0.0', private: true }));
182
+
183
+ const cmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
184
+ const args = ['install', '--no-audit', '--no-fund', '--no-save', NPM_PACKAGE + '@' + version];
195
185
 
196
186
  const result = spawnSync(cmd, args, {
187
+ cwd: tempDir,
197
188
  stdio: ['ignore', 'pipe', 'pipe'],
198
189
  timeout: ATTEMPT_TIMEOUT_MS,
199
190
  encoding: 'utf8',
200
191
  windowsHide: true,
201
- shell: process.platform === 'win32' && cmd === 'npx.cmd',
192
+ shell: process.platform === 'win32',
202
193
  });
203
194
 
204
195
  if (result.error) throw result.error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1177",
3
+ "version": "2.0.1178",
4
4
  "description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
5
5
  "main": "index.js",
6
6
  "bin": {