chore: use execa instead of cross-spawn

This commit is contained in:
Evan You
2018-01-25 00:05:19 -05:00
parent 297b8aac75
commit f547481e3e
2 changed files with 2 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
const chalk = require('chalk')
const execSync = require('child_process').execSync
const spawn = require('cross-spawn')
const execa = require('execa')
const opn = require('opn')
// https://github.com/sindresorhus/opn#app
@@ -41,7 +41,7 @@ function getBrowserEnv () {
function executeNodeScript (scriptPath, url) {
const extraArgs = process.argv.slice(2)
const child = spawn('node', [scriptPath, ...extraArgs, url], {
const child = execa('node', [scriptPath, ...extraArgs, url], {
stdio: 'inherit'
})
child.on('close', code => {

View File

@@ -29,7 +29,6 @@
"case-sensitive-paths-webpack-plugin": "^2.1.1",
"chalk": "^2.3.0",
"copy-webpack-plugin": "^4.3.1",
"cross-spawn": "^5.1.0",
"css-loader": "^0.28.8",
"deepmerge": "^2.0.1",
"escape-string-regexp": "^1.0.5",