Reputation: 1116
I have an Angular library which is generated using Angular 11 version. Now I want to update it to Angular 12 but no luck using ng update command.
I have used the below command.
ng update --project my-lib
The above library is published in npm. Now I want to update it to the latest version.
Upvotes: 14
Views: 11259
Reputation: 11
change version in dist/package.json run command ng version 0.0.2 run command
Upvotes: 1
Reputation: 538
According to this issue, you need to update the peerDependencies of your library yourself, so according to that info, I think it's normal that ng update
doesn't update the library's package.json.
Upvotes: 2