diff --git a/package.json b/package.json index 7ca46b87..861e3d32 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ }, "license": "MIT", "scripts": { - "build": "tsc", + "clean": "node -e \"require('fs').rmSync('lib',{ recursive:true, force:true })\"", + "build": "yarn run clean && tsc", "prepublishOnly": "yarn run build", "tdd": "yarn testonly --watch", "test": "yarn lint && yarn typecheck && yarn testonly",