From d9616e484665bdfade6da80f37ffcd75e47ed056 Mon Sep 17 00:00:00 2001 From: Laurent Maillet <35027619+lmaillet@users.noreply.github.com> Date: Thu, 3 Aug 2023 09:47:11 +0200 Subject: [PATCH] fix(TDOPS-4938): force windows to use a shell (#4832) * TDOPS-4938: force windows to use a shell * changeset' --- .changeset/tiny-paws-build.md | 5 +++++ tools/scripts-core/src/scripts/build-lib.js | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/tiny-paws-build.md diff --git a/.changeset/tiny-paws-build.md b/.changeset/tiny-paws-build.md new file mode 100644 index 00000000000..e70ea5c05bd --- /dev/null +++ b/.changeset/tiny-paws-build.md @@ -0,0 +1,5 @@ +--- +'@talend/scripts-core': patch +--- + +Fix the use of spawn on windows diff --git a/tools/scripts-core/src/scripts/build-lib.js b/tools/scripts-core/src/scripts/build-lib.js index c180e29ff1c..bceed110a27 100755 --- a/tools/scripts-core/src/scripts/build-lib.js +++ b/tools/scripts-core/src/scripts/build-lib.js @@ -65,6 +65,7 @@ export default async function build(env, presetApi, unsafeOptions) { { stdio: 'inherit', env, + shell: process.platform === 'win32', }, ); babelSpawn.on('exit', status => {