dividab / tsconfig-paths

Load node modules according to tsconfig paths, in run-time or via API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

walkForTsConfig() needs error handling

stentibbing opened this issue · comments

The walkForTsConfig function keeps running recursively trying to find config file by entering parent directory on each recursion. If the parent directory is not readable (due to hosting service in my case), fatal Error: EACCES: permission denied, scandir is thrown. Incase directory is not readable, it should treat it as config not found instead of dying.