chore: switch to .release-it.json configuration (#119)

Replace the inline release-it configuration with a dedicated
.release-it.json file for better organization and maintainability.
This commit is contained in:
Daniel Lando 2025-10-07 16:31:45 +02:00 committed by GitHub
parent 370fbdbaa6
commit 2f66258949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 52 additions and 47 deletions

52
.release-it.json Normal file
View File

@ -0,0 +1,52 @@
{
"$schema": "https://unpkg.com/release-it@19/schema/release-it.json",
"github": {
"release": false
},
"hooks": {
"before:init": [
"yarn lint"
]
},
"npm": {
"publish": true
},
"plugins": {
"@release-it/conventional-changelog": {
"infile": "CHANGELOG.md",
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "test",
"section": "Test added"
},
{
"type": "refactor",
"section": "Code refactoring"
},
{
"type": "chore",
"section": "Chores"
},
{
"type": "docs",
"section": "Documentation"
}
]
}
}
},
"git": {
"tagName": "v${version}",
"requireBranch": "main"
}
}

View File

@ -62,53 +62,6 @@
"release:patch": "npm run release -- patch",
"release:minor": "npm run release -- minor"
},
"release-it": {
"github": {
"release": false
},
"hooks": {
"before:init": [
"yarn lint"
]
},
"npm": {
"publish": true
},
"plugins": {
"@release-it/conventional-changelog": {
"infile": "CHANGELOG.md",
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "test",
"section": "Test added"
},
{
"type": "refactor",
"section": "Code refactoring"
},
{
"type": "chore",
"section": "Chores"
},
{
"type": "docs",
"section": "Documentation"
}
]
}
}
}
},
"prettier": {
"singleQuote": true
},