diff --git a/package.json b/package.json index 48bbd471b0..2f5564487b 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "bundlesize": "bundlesize", "check-commit": "node ./scripts/check-commit", "check-ts-demo": "node ./scripts/check-ts-demo", + "clean": "antd-tools run clean && rm -rf es lib coverage dist report.html", "prestart": "npm run version", "precompile": "npm run version", "pretest": "npm run version", diff --git a/scripts/test-all.sh b/scripts/test-all.sh index 92e40ad124..3c80233dee 100755 --- a/scripts/test-all.sh +++ b/scripts/test-all.sh @@ -1,5 +1,8 @@ #!/bin/sh +echo "[CLEAN] clean" +npm run clean + echo "[TEST ALL] check-commit" npm run check-commit