Skip to content

Commit 133cdfb

Browse files
author
Guillaume Chau
committed
fix(ui): chdir
1 parent 1c95dc2 commit 133cdfb

File tree

1 file changed

+3
-0
lines changed
  • packages/@vue/cli-ui/src/graphql-api/connectors

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ module.exports = {
77
set: (value, context) => {
88
cwd = value
99
context.pubsub.publish(channels.CWD_CHANGED, { cwdChanged: value })
10+
try {
11+
process.chdir(value)
12+
} catch (err) {}
1013
}
1114
}

0 commit comments

Comments
 (0)