fix: windows build issue and add prettier

This commit is contained in:
mingholy.lmh 2026-02-03 10:16:51 +08:00
parent a5a6bddc31
commit 8d8449079d
2 changed files with 16 additions and 2 deletions

View file

@ -51,7 +51,11 @@ if (assetBuilds.length === 0) {
const runCommand = ({ command, args, cwd, label }) =>
new Promise((resolve, reject) => {
const child = spawn(command, args, { cwd, stdio: 'inherit' });
const child = spawn(command, args, {
cwd,
stdio: 'inherit',
shell: process.platform === 'win32',
});
child.on('error', reject);
child.on('exit', (code) => {