Correctly load plugins when using "root" option

This commit is contained in:
Samy Pesse
2016-04-19 17:40:01 +02:00
parent 53ced205b8
commit d490a6e0b4
+1
View File
@@ -145,6 +145,7 @@ function listPlugins(book) {
return Promise.all([
listInstalled(path.resolve(__dirname, '../..')),
listInstalled(book.root),
book.originalRoot? listInstalled(book.originalRoot) : Promise([]),
book.isLanguageBook()? listInstalled(book.parent.root) : Promise([])
])
.spread(function() {