From 4f3e4a12baa2e90b3d0939adfdf490c89201958c Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 27 Apr 2021 18:41:19 -0500 Subject: [PATCH] fix: use _cachePathsForDirectoryWithGlob directly in onAddDir --- lib/paths-cache.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/paths-cache.js b/lib/paths-cache.js index 82f9c7b..6402352 100644 --- a/lib/paths-cache.js +++ b/lib/paths-cache.js @@ -230,8 +230,7 @@ export default class PathsCache extends EventEmitter { * @param addedDir {string} */ async onAddDir(projectDirectory, addedDir) { - const directory = new Directory(addedDir) - await this._cachePathsForDirectory(projectDirectory, directory) + await this._cachePathsForDirectoryWithGlob(addedDir) } /**