diff --git a/package.json b/package.json index 720f3fef14..e871cfd186 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "lint": "eslint components index.js --ext '.js,.jsx'", "lesslint": "lesslint style", "test": "webpack && npm run lint", - "prepublish": "npm run babel && rm -rf dist && webpack --config webpack.config.production.js && node scripts/prenpm.js" + "pub": "sh ./scripts/publish.sh" }, "precommit": [ "lint" diff --git a/scripts/publish.sh b/scripts/publish.sh new file mode 100644 index 0000000000..501d68e49e --- /dev/null +++ b/scripts/publish.sh @@ -0,0 +1,5 @@ +npm run babel +rm -rf dist +webpack --config webpack.config.production.js +node scripts/prenpm.js +npm publish