Is there a package.json
property that can be used to specify the root folder that module resolution should start?
For example suppose we have an install in node_modules/mypackage/src/file1
. And all the files we want to import start under the src
directory. Can we specify something like:
{
root: ./src/
}
And then require('mypackage/file1');
Thoughts?