set shell for windows

This commit is contained in:
HF 2023-12-28 20:58:18 +01:00
parent f4c4ca96d3
commit 94a6b49abb

View File

@ -70,7 +70,7 @@ function buildServer() {
? ['webpack', '--env', 'extract', '--config', './webpack.config.server.js']
: ['webpack', '--config', './webpack.config.server.js']
const serverCompile = spawn('npx', argsc, {
PATH: process.env.PATH,
shell: process.platform == 'win32',
});
serverCompile.stdout.on('data', (data) => {
console.log(data.toString());
@ -94,7 +94,7 @@ function buildServer() {
function buildClients(slangs) {
return new Promise((resolve, reject) => {
const clientCompile = spawn('npm', ['run', 'build', '--', '--client', '--recursion', '--langs', slangs.join(',')], {
PATH: process.env.PATH,
shell: process.platform == 'win32',
});
clientCompile.stdout.on('data', (data) => {
console.log(data.toString());