I have a component X which imports a component Y.
In componentx.model.ts I defined some types and interfaces.
In component Y I would like to use one of these interfaces so I import it with import { NiceInterface } from '@foo/bar/componentx';
The result is that when I run ng-packagr I get the following error:
Entry point @foo/bar/componentx has a circular dependency on @foo/bar/componenty.
I don't really understand that because I import that interface, nothing else.