fix: watch script broken on Windows (#8106)

Fixes #8083

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
This commit is contained in:
Jeff MAURY 2024-07-16 10:37:06 -04:00 committed by GitHub
parent e7ef48d7a0
commit 7e2c60389a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,6 +136,7 @@ const setupUiPackageWatcher = () => {
spawnProcess = spawn(exe, ['-w'], {
cwd: './packages/ui/',
env: { ...process.env },
shell: process.platform === 'win32',
});
spawnProcess.stdout.on('data', d => d.toString().trim() && logger.warn(d.toString(), { timestamp: true }));