diff --git a/docs/documentation/stories/create-library.md b/docs/documentation/stories/create-library.md index 8ccf97421c49..529cfb8becfc 100644 --- a/docs/documentation/stories/create-library.md +++ b/docs/documentation/stories/create-library.md @@ -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 ``` @@ -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?