mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-02-05 22:48:27 -06:00
chore: use execa instead of cross-spawn
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user