I am in the processes of developing an NPM package with many different directories. Internally, I manage this by using subpath imports in the package.json.
“imports” : { “#*”: “./src”, “#factories”: “./src/factories”…}
This works well when isolated to the package. However, when I install the package on a consuming application, the consuming application takes issue with the alaising when importing and using the package.
Is there a way to keep the path alaising isolated to the package and not have to transfer additional configuration to the consuming application, or do I need to just return to the uglier but functional unaliased relative paths?