Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit e34ac8b

Browse files
committed
chore: replace np with release-it
1 parent a32a9f8 commit e34ac8b

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

package.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"precompile": "npm run lint && npm run clean",
2626
"compile": "tsup-node && tsc --emitDeclarationOnly --declaration",
2727
"build": "npm run compile",
28-
"release": "np",
28+
"release": "release-it",
2929
"version": "npm run build",
3030
"format": "prettier --write .",
3131
"prepublishOnly": "npm run build",
@@ -53,8 +53,8 @@
5353
"eslint": "^8.56.0",
5454
"github-label-sync": "^2.3.1",
5555
"husky": "^9.0.11",
56-
"np": "^10.0.5",
5756
"prettier": "^3.2.5",
57+
"release-it": "^17.2.0",
5858
"ts-node": "^10.9.2",
5959
"tsup": "^8.0.2",
6060
"typescript": "^5.4.5"
@@ -79,12 +79,6 @@
7979
"access": "public",
8080
"tag": "latest"
8181
},
82-
"np": {
83-
"message": "chore(release): %s",
84-
"tag": "latest",
85-
"branch": "main",
86-
"anyBranch": false
87-
},
8882
"c8": {
8983
"reporter": [
9084
"text",
@@ -110,5 +104,22 @@
110104
"dts": false,
111105
"sourcemap": true,
112106
"target": "esnext"
107+
},
108+
"release-it": {
109+
"git": {
110+
"commitMessage": "chore(release): ${version}",
111+
"tagAnnotation": "v${version}",
112+
"tagName": "v${version}"
113+
},
114+
"hooks": {
115+
"before:init": [
116+
"npm test"
117+
]
118+
},
119+
"github": {
120+
"release": true,
121+
"releaseName": "v${version}",
122+
"web": true
123+
}
113124
}
114125
}

0 commit comments

Comments
 (0)