diff --git a/development/build/task.js b/development/build/task.js index 879ab1c97c2b..6988696d7268 100644 --- a/development/build/task.js +++ b/development/build/task.js @@ -1,5 +1,5 @@ const EventEmitter = require('events') -const { spawn } = require('child_process') +const spawn = require('cross-spawn') const tasks = {} const taskEvents = new EventEmitter() diff --git a/package.json b/package.json index 2ed8e593a9fb..32047178d8ed 100644 --- a/package.json +++ b/package.json @@ -210,6 +210,7 @@ "concurrently": "^5.2.0", "copy-webpack-plugin": "^6.0.3", "coveralls": "^3.0.0", + "cross-spawn": "^7.0.3", "css-loader": "^2.1.1", "del": "^3.0.0", "deps-dump": "^1.1.0", diff --git a/yarn.lock b/yarn.lock index c6dc9e22f5eb..f8a74409cab4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7963,10 +7963,10 @@ cross-spawn@^5.0.1: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^7.0.0: - version "7.0.1" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz#0ab56286e0f7c24e153d04cc2aa027e43a9a5d14" - integrity sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg== +cross-spawn@^7.0.0, cross-spawn@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== dependencies: path-key "^3.1.0" shebang-command "^2.0.0"