fix: yarn watch failure on Windows (#6231)

Fixes #6228

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
This commit is contained in:
Jeff MAURY 2024-03-01 14:43:28 +01:00 committed by GitHub
parent 5753fd112c
commit 782d67c1bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,7 +132,8 @@ const setupUiPackageWatcher = () => {
spawnProcess = null;
}
spawnProcess = spawn(join(__dirname, '../node_modules/.bin/svelte-package'), ['-w'], {
const exe = join(__dirname, '..', 'node_modules', '.bin', 'svelte-package').concat(process.platform === 'win32' ? '.cmd': '');
spawnProcess = spawn(exe, ['-w'], {
cwd: './packages/ui/',
env: { ...process.env },
});