|
@@ -7,13 +7,13 @@ fs.emptyDirSync('.temp');
|
|
|
|
|
|
const distDir = `build${SCENE ? '/' + SCENE : ''}`;
|
|
|
|
|
|
-ch.execSync(`npm run build${SCENE ? ':' + SCENE : ''}:test`, {
|
|
|
+ch.execSync(`pnpm build${SCENE ? ':' + SCENE : ''}:test`, {
|
|
|
stdio: ['ignore', 'inherit', 'inherit'],
|
|
|
});
|
|
|
|
|
|
const distFiles = fs.readdirSync(distDir);
|
|
|
|
|
|
-if (!distFiles.length) throw new Error(`请先执行 yarn ${distDir}`);
|
|
|
+if (!distFiles.length) throw new Error(`请先执行 pnpm ${distDir}`);
|
|
|
|
|
|
distFiles.forEach((fileName) => {
|
|
|
fs.copySync(
|