From cb50d872814afaf033debebb5a1981498da884c3 Mon Sep 17 00:00:00 2001 From: Marcelo Boveto Shima Date: Sat, 7 Mar 2020 11:15:00 -0300 Subject: [PATCH] Make createStorage destinationRoot aware and remove private from jsdoc --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 9c880b85..61a5fb4b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -915,9 +915,9 @@ class Generator extends EventEmitter { * @param {String} [path] The name in which is stored inside the json * @param {String} [lodashPath] Treat path as an lodash path * @return {Storage} json storage - * @private */ createStorage(storePath, path, lodashPath = false) { + storePath = this.destinationPath(storePath); return new Storage(path, this.fs, storePath, lodashPath); }