mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Spawn yarn processes in a cmd subshell on Windows (#9628)
On Windows, spawn fails if the exact filename of a binary isn't passed. e.g. `spawn('yarn')` fails because the binary is named `yarn.cmd`. Instead, we depend on `cross-spawn` which handles differences in `spawn` across platforms.
This commit is contained in:
parent
edefdc4ede
commit
c3fafe311e
@ -1,5 +1,5 @@
|
||||
const EventEmitter = require('events')
|
||||
const { spawn } = require('child_process')
|
||||
const spawn = require('cross-spawn')
|
||||
|
||||
const tasks = {}
|
||||
const taskEvents = new EventEmitter()
|
||||
|
@ -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",
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user