From bcdd1134877235a1f28bd7634d10d3ca42771d32 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 3 Jul 2015 11:22:09 +0800 Subject: [PATCH] update script --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 645b1d2f1..3b12bf7e4 100644 --- a/package.json +++ b/package.json @@ -49,14 +49,14 @@ "webpack-dev-middleware": "~1.0.11" }, "scripts": { - "babel": "rm -rf lib && babel components --out-dir lib", + "babel": "rm -rf lib && babel components --out-dir lib && rm -rf components && mv lib components", "build": "npm run clean && webpack && nico build", - "pub": "npm run babel && npm publish && tnpm sync antd", "start": "npm run clean && nico server --watch", "clean": "rm -rf _site", "deploy": "npm run build && node deploy.js", "lint": "eslint components index.js --ext '.js,.jsx'", - "test": "webpack && npm run lint" + "test": "webpack && npm run lint", + "postinstall": "npm run babel" }, "precommit": [ "lint"