diff --git a/scripts/bin/umi-scripts.js b/scripts/bin/umi-scripts.js index 7afc1f06a432..5e2c7a518213 100755 --- a/scripts/bin/umi-scripts.js +++ b/scripts/bin/umi-scripts.js @@ -21,8 +21,8 @@ console.log(chalk.cyan(`umi-scripts: ${name}\n`)) // https://github.com/umijs/umi/issues/9865 const scriptPathAsStr = JSON.stringify(scriptsPath) const spawn = sync( - 'tsx', - [scriptPathAsStr, ...throughArgs], + 'pnpm', + ['tsx', scriptPathAsStr, ...throughArgs], { env: process.env, cwd: process.cwd(),