From 50ca5c0900d8d52de549865afe637cd4ec1ffe00 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Mon, 22 Apr 2024 11:50:25 +0530 Subject: [PATCH] chore: update release-it config --- package.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 29afd57..8371606 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "precompile": "npm run lint && npm run clean", "compile": "tsup-node && tsc --emitDeclarationOnly --declaration", "build": "npm run compile", - "release": "npx release-it", + "release": "release-it", "version": "npm run build", "format": "prettier --write .", "prepublishOnly": "npm run build", @@ -66,7 +66,7 @@ "github-label-sync": "^2.3.1", "husky": "^9.0.11", "prettier": "^3.2.5", - "release-it": "^17.1.1", + "release-it": "^17.2.0", "ts-node": "^10.9.2", "tsup": "^8.0.2", "typescript": "^5.4.5" @@ -110,6 +110,11 @@ "tagAnnotation": "v${version}", "tagName": "v${version}" }, + "hooks": { + "before:init": [ + "npm test" + ] + }, "github": { "release": true, "releaseName": "v${version}",