Preventing inappropriate imports and enforcing project hierarchy in Typescript
问题 In a TS project I'd like the following to be blocked: A file from folder common importing from folder projectA A file from folder projectB importing from folder projectA I'd like the following to be allowed: A file from folder projectA importing from folder projectA A file from folder projectA importing from folder common. I'm aware of References. However, as I understand, they require a build for type checking (If such a separation is made, one must build to create d.ts files first) which I