From df59909384b6177e42f59b77f12807e6a8c2ca7f Mon Sep 17 00:00:00 2001 From: "Candy.J" Date: Thu, 16 Jan 2020 14:25:42 +0800 Subject: [PATCH] fix($cli): inferUserDocsDirectory ignore all node_modules (#2137) --- packages/vuepress/lib/handleUnknownCommand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vuepress/lib/handleUnknownCommand.js b/packages/vuepress/lib/handleUnknownCommand.js index 06aa948da0..8ef9853fd5 100644 --- a/packages/vuepress/lib/handleUnknownCommand.js +++ b/packages/vuepress/lib/handleUnknownCommand.js @@ -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