Skip to content

Commit

Permalink
feat: add release-it configs
Browse files Browse the repository at this point in the history
  • Loading branch information
obetomuniz committed Apr 3, 2023
1 parent 00b42a9 commit 83d9659
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Beto Muniz <[email protected]>",
"name": "chrts",
"version": "1.0.0",
"version": "0.0.1",
"description": "A simple chart web components library using SVG, CSS, and TypeScript.",
"directories": {
"doc": "docs",
Expand All @@ -10,7 +10,9 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc"
"build": "tsc",
"prepublishOnly": "npm run build",
"release": "release-it"
},
"keywords": [
"web-component",
Expand All @@ -24,5 +26,26 @@
"@release-it/conventional-changelog": "^5.1.1",
"release-it": "^15.10.0",
"typescript": "^5.0.3"
},
"release-it": {
"git": {
"commitMessage": "Release v${version}"
},
"github": {
"release": true,
"web": true
},
"npm": {
"publish": true
},
"plugins": {
"@release-it/conventional-changelog": {
"infile": "docs/CHANGELOG.md",
"header": "# Changelog",
"preset": {
"name": "conventionalcommits"
}
}
}
}
}

0 comments on commit 83d9659

Please sign in to comment.