From 1e4ffe4f538a6510877acd4670877a98118662ec Mon Sep 17 00:00:00 2001 From: Santiago Petrone Date: Thu, 5 Aug 2021 13:29:58 +0200 Subject: [PATCH] chore: add prepack & postpublish hooks --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2555700..6e9c70f 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "test": "yarn jest && yarn lint", "lint": "eslint .", "ts:watch": "yarn tsc --watch", - "ts:compile": "yarn tsc" + "ts:compile": "yarn tsc", + "prepack": "git clean -dfx && yarn && yarn run ts:compile", + "postpublish": "git push" }, "repository": { "type": "git",