build(root): run clean command on prepublish
MODIFY
package.json
package.json
"test:coverage": "SCOPE=unit jest --expand --coverage",
"test:watch": "jest --expand --onlyChanged --watch",
"clean": "lerna run clean",
- "prepublishOnly": "yarn build && yarn test",
+ "prepublishOnly": "yarn clean && yarn build && yarn test",
"publish": "lerna publish",
"precommit": "lint-staged"
},

build(root): run clean command on prepublish