fix: prioritize nuxtDir in modulesDir

This commit is contained in:
Pooya Parsa 2017-12-28 20:19:56 +03:30
parent ef5b910112
commit 2656529771

View File

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