From f1dcaa8594b65502590ae9f316f52bed4385a0d6 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Mon, 22 Apr 2024 12:07:58 +0530 Subject: [PATCH] chore: replace np with release-it --- package.json | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 6714cd1..c00b852 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "precompile": "npm run lint && npm run clean", "compile": "tsup-node && tsc --emitDeclarationOnly --declaration", "build": "npm run compile", - "release": "np", + "release": "release-it", "version": "npm run build", "format": "prettier --write .", "prepublishOnly": "npm run build", @@ -65,9 +65,9 @@ "fs-extra": "^11.2.0", "github-label-sync": "^2.3.1", "husky": "^9.0.11", - "np": "^10.0.5", "prettier": "^3.2.5", "reflect-metadata": "^0.2.2", + "release-it": "^17.2.0", "supertest": "^6.3.4", "ts-node": "^10.9.2", "tsup": "^8.0.2", @@ -114,12 +114,6 @@ "access": "public", "tag": "latest" }, - "np": { - "message": "chore(release): %s", - "tag": "latest", - "branch": "main", - "anyBranch": false - }, "c8": { "reporter": [ "text", @@ -148,5 +142,22 @@ "dts": false, "sourcemap": true, "target": "esnext" + }, + "release-it": { + "git": { + "commitMessage": "chore(release): ${version}", + "tagAnnotation": "v${version}", + "tagName": "v${version}" + }, + "hooks": { + "before:init": [ + "npm test" + ] + }, + "github": { + "release": true, + "releaseName": "v${version}", + "web": true + } } }