diff --git a/README.md b/README.md index eb44cb3..3433acb 100644 --- a/README.md +++ b/README.md @@ -332,8 +332,7 @@ For IE11, see [css-vars-ponyfill](https://github.com/jhildenbiddle/css-vars-pony ``` npm run build:lib -cd dist/ng-select2-component -npm publish +npm run publish:lib ``` ## Update Demo diff --git a/package.json b/package.json index 6771adf..0c74a5b 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "build": "ng build", "build:lib": "ng build ng-select2-component --configuration production && cp *.md dist/ng-select2-component", "build:demo": "ng build ng-select2", + "publish:lib": "npm publish dist/ng-select2-component", "test": "ng test", "lint": "ng lint ng-select2-component", "e2e": "ng e2e"