diff --git a/index.js b/index.js index 42199fd..2c7c822 100644 --- a/index.js +++ b/index.js @@ -12,6 +12,7 @@ const getDirectories = fileName => withFileTypes: true, }) .filter(dirent => dirent.isDirectory()) + .filter(dirent => !(/(^|\/)\.[^\/\.]/g).test(dirent)) .map(dirent => dirent.name); async function run() {