Skip to content

Commit

Permalink
fix($cli): inferUserDocsDirectory ignore all node_modules (#2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuijing1031 authored and meteorlxy committed Jan 16, 2020
1 parent 810300e commit df59909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuepress/lib/handleUnknownCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = async function (cli, options) {
async function inferUserDocsDirectory (cwd) {
const paths = await globby([
'**/.vuepress/config.js',
'!node_modules'
'!**/node_modules/**'
], {
cwd,
dot: true
Expand Down

0 comments on commit df59909

Please sign in to comment.