Imagine having a project structured like this:
projects
|-app1
|-app2
|-common
node_modules
pakcage.json
tsconfig.json
angular.json
... (other root files)
Currently, in a file within app1
, you can have an import statement like this:
import { Repository } from '../../../app2/src/app/query/repository';
Although it functions correctly and builds successfully, avoiding such imports is preferred to maintain a clean project structure. Is there a way to configure angular/typescript to generate an error during serve/build if cross-project imports are used?