Skip to content

Commit f547481

Browse files
committed
chore: use execa instead of cross-spawn
1 parent 297b8aa commit f547481

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/@vue/cli-service/lib/util/openBrowser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
const chalk = require('chalk')
1010
const execSync = require('child_process').execSync
11-
const spawn = require('cross-spawn')
11+
const execa = require('execa')
1212
const opn = require('opn')
1313

1414
// https://github.com/sindresorhus/opn#app
@@ -41,7 +41,7 @@ function getBrowserEnv () {
4141

4242
function executeNodeScript (scriptPath, url) {
4343
const extraArgs = process.argv.slice(2)
44-
const child = spawn('node', [scriptPath, ...extraArgs, url], {
44+
const child = execa('node', [scriptPath, ...extraArgs, url], {
4545
stdio: 'inherit'
4646
})
4747
child.on('close', code => {

packages/@vue/cli-service/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"case-sensitive-paths-webpack-plugin": "^2.1.1",
3030
"chalk": "^2.3.0",
3131
"copy-webpack-plugin": "^4.3.1",
32-
"cross-spawn": "^5.1.0",
3332
"css-loader": "^0.28.8",
3433
"deepmerge": "^2.0.1",
3534
"escape-string-regexp": "^1.0.5",

0 commit comments

Comments
 (0)