Skip to content

Commit

Permalink
fix(release-it): release-it cli with conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
mahabubx7 committed Oct 15, 2024
1 parent 0ced475 commit 2063db4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "akar",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "Akar.js is a simple and lightweight schema based data-validation library.",
"type": "module",
"main": "dist/lib/index.cjs",
"module": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"release": "release-it",
"format": "prettier --write .",
Expand All @@ -23,7 +23,7 @@
"docs:preview": "cd docs && npm run docs:preview"
},
"files": [
"dist/lib",
"dist",
"package.json",
"README.md",
"CHANGELOG.md",
Expand Down Expand Up @@ -87,16 +87,12 @@
"cjs"
],
"splitting": false,
"sourceMap": false,
"sourceMap": true,
"minify": false,
"clean": true,
"keepNames": true,
"outDir": "dist",
"entry": [
"lib/index.ts",
"lib/schemas/*",
"lib/validators/*",
"lib/helpers/*",
"index.ts"
]
},
Expand Down
18 changes: 17 additions & 1 deletion release-it.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,24 @@ module.exports = {
},
plugins: {
"@release-it/conventional-changelog": {
preset: "angular",
infile: "CHANGELOG.md",
preset: {
name: "conventionalcommits",
types: [
{ type: "feat", section: "Features" },
{ type: "fix", section: "Bug Fixes" },
{ type: "perf", section: "Performance Improvements" },
{ type: "revert", section: "Reverts" },
{ type: "docs", section: "Documentation" },
{ type: "style", section: "Styles" },
{ type: "refactor", section: "Code Refactoring" },
{ type: "test", section: "Tests" },
{ type: "build", section: "Build System" },
{ type: "ci", section: "Continuous Integration" },
{ type: "chore", section: "Chores" },
{ type: "breaking", section: "Breaking Changes", hidden: true }
]
},
whatBump: (commits) => {
let level = 2
let reason = "0 breaking changes, 0 features"
Expand Down

0 comments on commit 2063db4

Please sign in to comment.