mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 18:43:29 +00:00
Correctly load plugins when using "root" option
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user