Angular CLI: 6.0.1
Node: 10.1.0
OS: darwin x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.6.1
@angular-devkit/core 0.6.1
@angular-devkit/schematics 0.6.1
@schematics/angular 0.6.1
@schematics/update 0.6.1
rxjs 6.1.0
typescript 2.7.2
I have created an angular library using angular cli library command ng g library libname and published it into npm repository. Now whenever I change something in the library, I have to go to the library folder and run npm version <version-type> to update version number before publishing to npm. I did not see a ng command to update the version number of the library.
There is no command ng command to update the version number of the library? Or is there one?
if ang command to update the library version (similar to npm version <version-type>) can be provided, it can be done easily and don't have to do it manually by going inside the library folder.
This is a feature request as this functionality does not exist.
the library folder has its own package json, you could update the version using a script from main project
"build-patch":"cd ./projects/{your_project} && npm version patch && cd .. && ng build",
Duplicate of #11486
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
This is a feature request as this functionality does not exist.