fix: prioritize nested node_modules. fixes #2558.

This commit is contained in:
Pooya Parsa 2018-01-11 15:23:55 +03:30
parent 4ec99ef6f6
commit 421070d385
1 changed files with 1 additions and 1 deletions

View File

@ -56,8 +56,8 @@ Options.from = function (_options) {
// Populate modulesDir // Populate modulesDir
options.modulesDir = [] options.modulesDir = []
.concat(join(options.nuxtDir, 'node_modules'))
.concat(options.modulesDir) .concat(options.modulesDir)
.concat(join(options.nuxtDir, 'node_modules'))
.filter(dir => hasValue(dir)) .filter(dir => hasValue(dir))
.map(dir => resolve(options.rootDir, dir)) .map(dir => resolve(options.rootDir, dir))