diff --git a/package.json b/package.json index c5a840c..1d6a8eb 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,9 @@ "clean": "rm -rf dist", "build": "tsc", "watch": "tsc --watch", - "test": "./test.sh" + "test": "./test.sh", + "prepack": "yarn run clean && yarn run build", + "prepublish": "yarn run test" }, "peerDependencies": { "shelljs": "^0.8.4"