mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
chore: 🛠 quit pub script when throw error (#26006)
* eslint * chore: quit pub script when throw error close #25965 https://stackoverflow.com/a/2871034 * revert
This commit is contained in:
parent
5461934f54
commit
a33dc19ec8
@ -86,7 +86,7 @@
|
||||
"start:preact": "antd-tools run clean && cross-env NODE_ENV=development REACT_ENV=preact concurrently \"npm run color-less\" \"bisheng start -c ./site/bisheng.config.js\"",
|
||||
"test": "jest --config .jest.js --no-cache",
|
||||
"test:update": "jest --config .jest.js --no-cache --update-snapshot",
|
||||
"test-all": "./scripts/test-all.sh",
|
||||
"test-all": "sh -e ./scripts/test-all.sh",
|
||||
"test-node": "jest --config .jest.node.js --no-cache",
|
||||
"tsc": "tsc --noEmit",
|
||||
"site:test": "jest --config .jest.site.js --cache=false",
|
||||
|
@ -1,5 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "[TEST ALL] check-commit"
|
||||
npm run check-commit
|
||||
|
||||
echo "[TEST ALL] lint"
|
||||
npm run lint
|
||||
|
||||
if [ "$1" != "--skip-build" ]; then
|
||||
echo "[TEST ALL] dist"
|
||||
npm run dist
|
||||
@ -10,12 +16,6 @@ else
|
||||
echo "Skip build..."
|
||||
fi
|
||||
|
||||
echo "[TEST ALL] check-commit"
|
||||
npm run check-commit
|
||||
|
||||
echo "[TEST ALL] lint"
|
||||
npm run lint
|
||||
|
||||
echo "[TEST ALL] dekko dist"
|
||||
node ./tests/dekko/dist.test.js
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user