fix: force to use powershell on windows to fix zx script crash (#1962)
This commit is contained in:
@@ -29,6 +29,10 @@ console.log('build with following dir', {
|
|||||||
await cleanup();
|
await cleanup();
|
||||||
echo('Clean up done');
|
echo('Clean up done');
|
||||||
|
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
$.shell = 'powershell.exe';
|
||||||
|
$.prefix = '';
|
||||||
|
}
|
||||||
// step 1: build web (nextjs) dist
|
// step 1: build web (nextjs) dist
|
||||||
cd(repoRootDir);
|
cd(repoRootDir);
|
||||||
await $`yarn add`;
|
await $`yarn add`;
|
||||||
|
|||||||
Reference in New Issue
Block a user