fix: force to use powershell on windows to fix zx script crash (#1962)

This commit is contained in:
Horus 2023-04-16 01:24:57 +08:00 committed by GitHub
parent ec445207d6
commit 8b3c1fb363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,10 @@ console.log('build with following dir', {
await cleanup();
echo('Clean up done');
if (process.platform === 'win32') {
$.shell = 'powershell.exe';
$.prefix = '';
}
// step 1: build web (nextjs) dist
cd(repoRootDir);
await $`yarn add`;