From e7b1ae86ad83933c153afd1959043c01068c73df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=99=E6=A3=AE?= Date: Sun, 3 Dec 2017 18:23:28 +0800 Subject: [PATCH] Before publish run build command (#12) --- lerna.json | 8 +++++--- package.json | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lerna.json b/lerna.json index be4dedb..aada627 100644 --- a/lerna.json +++ b/lerna.json @@ -14,11 +14,13 @@ "cacheDir": ".changelog" }, "commands": { + "build": { + "scope": ["avet-shared", "avet-client"] + }, "publish": { "ignore": [] } }, - "packages": [ - "packages/*" - ] + "npmClient": "npm", + "packages": ["packages/*"] } diff --git a/package.json b/package.json index 0ac64a9..cdbc806 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,11 @@ "private": true, "scripts": { "dev": "lerna bootstrap", - "build": - "lerna exec --ignore avet-boilerplate* avet-init* --bail --parallel -- npm run build --", - "release": "npm run changelog && lerna publish", "changelog": "lerna-changelog", + "build": "lerna run build", + "publish": "lerna publish", "debug": "lerna run debug", + "release": "npm run changelog && npm run build && npm run publish", "lint": "eslint --ext .js packages", "doc:start": "cross-env NODE_ENV=development && bisheng start -c ./site/bisheng.config.js",