machinaos 0.0.56 → 0.0.58

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/cli.js CHANGED
@@ -127,10 +127,9 @@ function doctor() {
127
127
  }
128
128
 
129
129
  function run(script, extraArgs = []) {
130
- const pmArgs = ['run', script];
131
- if (extraArgs.length) pmArgs.push('--', ...extraArgs);
132
- const pm = process.platform === 'win32' ? 'pnpm.cmd' : 'pnpm';
133
- const child = spawn(pm, pmArgs, {
130
+ const npmArgs = ['run', script];
131
+ if (extraArgs.length) npmArgs.push('--', ...extraArgs);
132
+ const child = spawn(process.platform === 'win32' ? 'npm.cmd' : 'npm', npmArgs, {
134
133
  cwd: ROOT,
135
134
  stdio: 'inherit',
136
135
  shell: true,