From f15f98054a7f3510c8320b2dbc759d082c4a7c3f Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Sun, 17 Mar 2024 12:02:07 +0300 Subject: [PATCH] fix: set detached `false` for win32 by default --- .github/workflows/ci.yaml | 2 +- src/main/ts/spawn.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c8e20d8..bb4e6fc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -87,5 +87,5 @@ jobs: - name: Run win32 tests if: matrix.os == 'windows-latest' - run: node --loader ts-node/esm --experimental-specifier-resolution=node ./src/test/ts/zurk.test.ts + run: yarn test:unit timeout-minutes: 5 diff --git a/src/main/ts/spawn.ts b/src/main/ts/spawn.ts index dba1f01..1188101 100644 --- a/src/main/ts/spawn.ts +++ b/src/main/ts/spawn.ts @@ -74,7 +74,7 @@ export const normalizeCtx = (...ctxs: TSpawnCtx[]): TSpawnCtxNormalized => assig ee: new EventEmitter(), ac: new AbortController(), on: {}, - detached: true, + detached: process.platform !== 'win32', shell: true, spawn: cp.spawn, spawnSync: cp.spawnSync,