mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
fix publish
This commit is contained in:
parent
0fafa86cac
commit
cc16da4a9f
@ -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"
|
||||
|
5
scripts/publish.sh
Normal file
5
scripts/publish.sh
Normal file
@ -0,0 +1,5 @@
|
||||
npm run babel
|
||||
rm -rf dist
|
||||
webpack --config webpack.config.production.js
|
||||
node scripts/prenpm.js
|
||||
npm publish
|
Loading…
Reference in New Issue
Block a user