Skip to content

Commit

Permalink
chore: skip confirmIfGitDirty in API MODE (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Aug 8, 2019
1 parent bf983d7 commit 7384c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli/lib/util/confirmIfGitDirty.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const inquirer = require('inquirer')
const { warn, hasProjectGit } = require('@vue/cli-shared-utils')

module.exports = async function confirmIfGitDirty (context) {
if (process.env.VUE_CLI_SKIP_DIRTY_GIT_PROMPT) {
if (process.env.VUE_CLI_SKIP_DIRTY_GIT_PROMPT || process.env.VUE_CLI_API_MODE) {
return true
}

Expand Down

0 comments on commit 7384c62

Please sign in to comment.