From 418df8ae3438416e0299b9791e6f9f09023a0e0a Mon Sep 17 00:00:00 2001
From: Jan Loewe <jan.loewe@ptb.de>
Date: Fri, 16 Jun 2023 16:03:35 +0200
Subject: [PATCH] chore(pkg): update prepublish and pack scripts

---
 package.json | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/package.json b/package.json
index 0fc6476..b236348 100644
--- a/package.json
+++ b/package.json
@@ -18,9 +18,8 @@
     "test:lint": "eslint src --ext .ts",
     "test:prettier": "prettier \"src/**/*.ts\" --list-different",
     "test:unit": "jest",
-    "prepare": "yarn run build",
-    "prepublishOnly": "yarn run test",
-    "preversion": "yarn run test"
+    "prepack": "npx rimraf lib && yarn run build",
+    "prepublish": "yarn run test"
   },
   "dependencies": {
     "xml-js": "^1.6.11"
-- 
GitLab