The purpose of this is to better handle when using environments that cache the node_modules folder by symlinking (ie. AWS CodeBuild cache). By using process.env.INIT_CWD we save the need to have to climb up the directory tree to try and get to the root folder. This would probably also help if this library was somehow used as a sub-module
The purpose of this is to better handle when using environments that cache the node_modules folder by symlinking (ie. AWS CodeBuild cache). By using
process.env.INIT_CWD
we save the need to have to climb up the directory tree to try and get to the root folder. This would probably also help if this library was somehow used as a sub-module