From f8ae3cf3b978c7bfb7ecc523a7760192364271db Mon Sep 17 00:00:00 2001 From: yiminghe Date: Fri, 11 Sep 2015 10:58:16 +0800 Subject: [PATCH] add beta --- package.json | 3 ++- scripts/publish.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e871cfd186..f94240433e 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,8 @@ "lint": "eslint components index.js --ext '.js,.jsx'", "lesslint": "lesslint style", "test": "webpack && npm run lint", - "pub": "sh ./scripts/publish.sh" + "pub": "sh ./scripts/publish.sh", + "beta": "sh ./scripts/publish.sh --tag beta" }, "precommit": [ "lint" diff --git a/scripts/publish.sh b/scripts/publish.sh index 709d957746..3b3e7e8e82 100644 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -2,6 +2,6 @@ npm run babel rm -rf dist webpack --config webpack.config.production.js node scripts/prenpm.js -npm publish +npm publish $1 $2 rm -rf lib rm -rf dist