build: support build on windows (#3956)

This commit is contained in:
Alan Wang 2021-10-20 09:45:47 +08:00 committed by GitHub
parent 7349165300
commit 21e37b1900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ export const run = async (command: string, cwd: string = projRoot) =>
const app = spawn(cmd, args, { const app = spawn(cmd, args, {
cwd, cwd,
stdio: 'inherit', stdio: 'inherit',
shell: process.platform === 'win32',
}) })
const onProcessExit = () => app.kill('SIGHUP') const onProcessExit = () => app.kill('SIGHUP')