From d490a6e0b4e5e4d714c3ede6aa5b3897d169462d Mon Sep 17 00:00:00 2001 From: Samy Pesse Date: Tue, 19 Apr 2016 17:40:01 +0200 Subject: [PATCH] Correctly load plugins when using "root" option --- lib/plugins/registry.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plugins/registry.js b/lib/plugins/registry.js index 90b8539d8..fe9406dde 100644 --- a/lib/plugins/registry.js +++ b/lib/plugins/registry.js @@ -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() {