From e9cb77066c8c35e29c866a66559a358bfa51457a Mon Sep 17 00:00:00 2001 From: rafaelcalpena Date: Mon, 14 Sep 2020 19:59:49 -0300 Subject: [PATCH] fix: make commands work on windows --- lib/utils/bootstrap-ui-package.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/bootstrap-ui-package.ts b/lib/utils/bootstrap-ui-package.ts index e3e8b7e..05a0354 100644 --- a/lib/utils/bootstrap-ui-package.ts +++ b/lib/utils/bootstrap-ui-package.ts @@ -3,7 +3,8 @@ import {join} from 'path'; import {SpawnSyncStrict} from './spawn-sync-strict'; import {answersObject} from './create-utils'; -const defaultSpawnOptions = {stdio: 'inherit', encoding: 'utf-8'} as const; +/* Use shell: true to work on Windows */ +const defaultSpawnOptions = {stdio: 'inherit', encoding: 'utf-8', shell: true} as const; /* Context object is passed by flatiron during plugin registration. Check /lib/cli/start.ts app.use(loaderPlugin, {...}) call for more information.