Is there a way to dynamically include files based on path patterns? Currently, my scripts contain lines like this:
import '../../../../myresource/src/shared/my-interface'
However, I'm interested in simplifying it to something like:
import '@myresource/shared/my-interface'
In this revised example, the 'src' folder is omitted and the 'myresource' part of the path can be substituted with various folder names such as 'myresource', 'myresource1', 'myresource2', and so on. Is there a solution that doesn't involve manually adding each specific folder to the 'paths' object in tsconfig.json?