diff --git a/package.json b/package.json index 0387a4e7ce..2348780603 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,12 @@ "start": "yarn workspace example-app start", "bundle": "yarn build && yarn workspace example-app bundle", "build": "lerna run build", + "clean": "yarn run clean:cli && yarn run clean:app && yarn run clean:core && yarn run clean:storybook && yarn clean:root", + "clean:root": "rimraf node_modules/", + "clean:cli":"rimraf packages/cli/dist/ packages/cli/node_modules/", + "clean:app":"rimraf packages/app/node_modules/", + "clean:core": "rimraf packages/core/dist packages/core/node_modules", + "clean:storybook":"rimraf packages/storybook/node_modules", "test": "yarn build && lerna run test --since origin/master -- --coverage", "test:all": "yarn build && lerna run test -- --coverage", "lint": "lerna run lint --since origin/master --", @@ -32,6 +38,7 @@ "lerna": "^3.20.2", "lint-staged": "^10.1.0", "prettier": "^1.19.1", + "rimraf": "^3.0.2", "typescript": "^3.7.5", "zombie": "^6.1.4" },