Skip to content

how to change package version number for angular cli library using ng command #10825

@aniruddhadas9

Description

@aniruddhadas9

Versions

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

Observed behavior

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?

Desired behavior

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions