From f0ad6d0869978a02c4fc204908535567802fdfdc Mon Sep 17 00:00:00 2001 From: Facundo Merighi Date: Wed, 30 Jun 2021 11:14:09 -0300 Subject: [PATCH] check the type if is an array load it as it is. --- lib/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/app.js b/lib/app.js index 03c92ca..ef85a90 100644 --- a/lib/app.js +++ b/lib/app.js @@ -87,7 +87,14 @@ class Mali extends Emitter { if (typeof path === 'object' && path.root && path.file) { protoFilePath = path.file if (!loadOptions.includeDirs) { - loadOptions.includeDirs = [path.root] + /** + * To support multiple folders to feed the protoLoader. + */ + if (path.root instanceof Array) { + loadOptions.includeDirs = path.root + } else { + loadOptions.includeDirs = [path.root] + } } }