I have an Angular CLI library where each component should only be imported through their individual entry-points (like Angular Material) :
import {Foo} from '@myLib/foo
import {Bar} from '@myLib/bar
So I don't want a main entry point in ng-packagr config.
I already have all the secondary entry-points defined and I want to remove the primary entry-point so users cannot just "import {Bar} from '@myLib", but ng-package.json requires an entryFile and when I leave the entryFile empty I get an error
ERROR: Internal error: failed to get symbol for entrypoint
I have to add at least one valid export in the the entryFile.
The Angular Material team seem to have got this right - https://github.com/angular/components/blob/master/src/material/index.ts
Any ideas on how to do this?