Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions docs/documentation/stories/create-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ If this happens just rebuild your library.
To publish your library follow these steps:

```
ng build my-lib --prod
ng build my-lib
cd dist/my-lib
npm publish
```
Expand All @@ -71,9 +71,6 @@ If you've never published a package in npm before, you will need to create a use
You can read more about publishing on npm here:
https://docs.npmjs.com/getting-started/publishing-npm-packages

The `--prod` flag should be used when building to publish because it will completely clean the build
directory for the library beforehand, removing old code leftover code from previous versions.


## Why do I need to build the library everytime I make changes?

Expand Down