diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-19 17:40:01 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-19 17:40:01 +0200 |
commit | d490a6e0b4e5e4d714c3ede6aa5b3897d169462d (patch) | |
tree | c94de8596011d5d406370d7adc44b19d4a0c0415 /lib/plugins | |
parent | 53ced205b820a0b8cf6bfc0d3090b3bb3dc20d6b (diff) | |
download | gitbook-d490a6e0b4e5e4d714c3ede6aa5b3897d169462d.zip gitbook-d490a6e0b4e5e4d714c3ede6aa5b3897d169462d.tar.gz gitbook-d490a6e0b4e5e4d714c3ede6aa5b3897d169462d.tar.bz2 |
Correctly load plugins when using "root" option
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/registry.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/plugins/registry.js b/lib/plugins/registry.js index 90b8539..fe9406d 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() { |