I have certain files in my TypeScript project that are frequently used by many files throughout the hierarchy of the project - modules like helper functions or configuration. I end up needing to apply a very long string in the import statements. For example:
import config from '../../../../../path/to/configFile';
Is there a way to configure a project to make files like that available like ones from the node_modules folder with short paths? So, in the above example, I'll simply have to type:
import config from 'my-config-module';
I don't want to put these files in the node_modules folder because I don't want to have to remember to put them in there every time I delete the folder and reinstall it. Was just wondering if such a thing is possible in Node (or TypeScript)...