dividab / tsconfig-paths

Load node modules according to tsconfig paths, in run-time or via API.
MIT License
1.8k stars 100 forks source link

walkForTsConfig() needs error handling #258

Open stentibbing opened 9 months ago

stentibbing commented 9 months ago

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.