Skip to content

Commit bf76950

Browse files
committed
fix(ui): Windows compat
1 parent 21a3421 commit bf76950

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/@vue/cli-ui/src/graphql-api/connectors/tasks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ async function run (id, context) {
269269

270270
const child = execa(command, args, {
271271
cwd: cwd.get(),
272-
stdio: ['inherit', 'pipe', 'pipe', 'ipc']
272+
stdio: ['inherit', 'pipe', 'pipe']
273273
})
274274

275275
task.child = child

packages/@vue/cli-ui/src/graphql-api/utils/resolve-path.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
const path = require('path')
2+
13
exports.resolveModuleRoot = function (filePath, id = null) {
24
{
3-
const index = filePath.lastIndexOf('/index.js')
5+
const index = filePath.lastIndexOf(path.sep + 'index.js')
46
if (index !== -1) {
57
filePath = filePath.substr(0, index)
68
}
79
}
810
if (id) {
11+
id = id.replace(/\//g, path.sep)
912
const index = filePath.lastIndexOf(id)
1013
if (index !== -1) {
1114
filePath = filePath.substr(0, index + id.length)

0 commit comments

Comments
 (0)