Skip to content

Commit

Permalink
fix debug mode check for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 10, 2018
1 parent e7d619b commit dc84b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli/bin/vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (!semver.satisfies(process.version, requiredVersion)) {
}

// enter debug mode when creating test repo
if (process.cwd().indexOf('/packages/test') > 0 &&
if (process.cwd().indexOf(path.resolve('/packages/test')) > 0 &&
fs.existsSync(path.resolve(process.cwd(), '../@vue'))) {
process.env.VUE_CLI_DEBUG = true
}
Expand Down

0 comments on commit dc84b7e

Please sign in to comment.