Revert "updated utils.ts to make nizzy sync work for windows" (#1450)

This commit is contained in:
Adam
2025-06-23 11:49:06 -07:00
committed by GitHub
parent c4d777df7e
commit 9fbc867a85

View File

@@ -16,12 +16,7 @@ export const getProjectRoot = async () => {
};
export const runCommand = async (command: string, args: string[], options: SpawnOptions = {}) => {
const isWindows = process.platform === 'win32';
const child = spawn(command, args, {
stdio: 'inherit',
shell: isWindows,
...options,
});
const child = spawn(command, args, { stdio: 'inherit', ...options });
await new Promise((resolve, reject) => {
child.once('close', resolve);
child.once('error', reject);