How to update an Angular library project?

Viewed 2362

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.

2 Answers

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.

change version in dist/package.json run command ng version 0.0.2 run command

Related