From d35e8c7f2f3b2d15913d9f1991d25db7bd159efd Mon Sep 17 00:00:00 2001 From: Michel Selerin Date: Wed, 3 Oct 2018 12:46:41 +0200 Subject: [PATCH] chore: prepare package.json to publish lib --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 570b0fe..ac5ed96 100644 --- a/package.json +++ b/package.json @@ -14,17 +14,18 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build": "npm run build:lib && npm copy:docs", + "build": "npm run build:lib", "test": "npm run test:lib && npm run build:lib && npm run test:app", "build:app": "ng build --prod", - "build:lib": "ng build ngx-security", + "build:lib": "ng build ngx-security && npm run copy:docs", "watch:lib": "ng build ngx-security --watch", "test:app": "jest --config ./jest.app.config.js", "test:lib": "jest --config ./jest.lib.config.js", "lint": "ng lint", "e2e": "ng e2e", "release": "lerna version --no-push", - "copy:docs": "cpx {LICENSE,README.md} dist/ngx-security" + "copy:docs": "cpx {LICENSE,README.md} dist/ngx-security", + "publish:lib": "npm run build:lib && cd dist/ngx-security" }, "dependencies": { "@angular/animations": "^6.1.0",