build(all): added clean script
MODIFY
package.json
package.json
"test": "jest --expand",
"test:coverage": "SCOPE=unit jest --expand --coverage",
"test:watch": "jest --expand --onlyChanged --watch",
+ "clean": "lerna run clean",
"prepare": "yarn test",
"publish": "lerna publish",
"precommit": "lint-staged"

MODIFY
packages/@integration/package.json
packages/@integration/package.json
"main": "src/index.ts",
"scripts": {
"start": "ts-node --project tsconfig.json src/index.ts",
- "watch:dev": "nodemon --watch src --ext ts --ignore '*.spec.ts' --exec yarn start"
+ "watch:dev": "nodemon --watch src --ext ts --ignore '*.spec.ts' --exec yarn start",
+ "clean": "rimraf dist"
},
"private": true,
"repository": {

MODIFY
packages/core/package.json
packages/core/package.json
"watch": "webpack -w",
"build": "webpack",
"prepare": "yarn build",
+ "clean": "rimraf dist",
"prepack": "cp ../../README.md ./ && yarn build"
},
"files": [

MODIFY
packages/middleware-body/package.json
packages/middleware-body/package.json
"start": "yarn watch",
"watch": "webpack -w",
"build": "webpack",
+ "clean": "rimraf dist",
"prepack": "yarn build",
"prepare": "yarn build"
},

MODIFY
packages/middleware-joi/package.json
packages/middleware-joi/package.json
"watch": "webpack -w",
"build": "webpack",
"test": "jest --config ../../jest.config.js",
+ "clean": "rimraf dist",
"prepack": "yarn build",
"prepare": "yarn build"
},

MODIFY
packages/middleware-logger/package.json
packages/middleware-logger/package.json
"start": "yarn watch",
"watch": "webpack -w",
"build": "webpack",
+ "clean": "rimraf dist",
"prepack": "yarn build",
"prepare": "yarn build"
},

build(all): added clean script