I decided to add an ng-add schematic to my library, since there are additional setup steps when installing it past running npm/yarn install. This way, users will be able to run ng add @myorg/mylib
and the schematics will run
I am having difficulty test running the schematic. Angular Guide only mentions how to test generate
schematics, not add
ones. The problem is that the schematic is supposed to run when I install the library, however ng add
command always seems to install the repository version, and not the local one even if I link my library with yarn link
Thanks for your help.