While developing my app using @angular/cli, I have noticed that as the app size increases, it becomes increasingly tedious to specify the paths for imports of components, modules, and scss files.
For instance, when the component structure becomes deep, the import statements can get quite long, like
import {something} from '../../../../someComponent'
.
Is there a way to define these paths in a more succinct manner, similar to how a schema can be defined?
For example, in a file called Schema.json:
{
"someComponent": "../../../../someComponent",
"otherComponent": "../../"
}
With this setup, we could import components directly as
import {someComponent} from 'someComponent';
making it easier to import them anywhere in the project.
Is there a method or approach that allows for this kind of simplified path definition in Angular?