Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .releaserc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Minimal semantic-release configuration to filter merge commits from generated
// release notes. This customizes the release-notes writer transform only.
// It returns null for merge commits so they are excluded from notes.
module.exports = {
branches: ['main'],
plugins: [
['@semantic-release/commit-analyzer', { preset: 'conventionalcommits' }],
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
writerOpts: {
transform(commit) {
if (commit && commit.header && typeof commit.header === 'string') {
if (commit.header.startsWith('Merge pull request')) return null
}
return commit
},
},
},
],
'@semantic-release/npm',
'@semantic-release/github',
],
}
9 changes: 0 additions & 9 deletions .releaserc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
"workbench.colorTheme": "Visual Studio Dark",
"workbench.layoutControl.enabled": false,
// Spell check settings
"cSpell.words": ["Codacy", "elif", "Molyuk", "vitest"]
"cSpell.words": ["Codacy", "elif", "Molyuk", "releaserc", "vitest"]
}
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import prettierPluginRecommended from 'eslint-plugin-prettier/recommended'
import tseslint from 'typescript-eslint'

export default [
{ ignores: ['node_modules/**', 'dist/**', '.git/**', '**/*.d.ts'] },
{ ignores: ['node_modules/**', 'dist/**', '.git/**', '**/*.d.ts', '.releaserc.cjs'] },
// Base recommended configuration
eslint.configs.recommended,

Expand Down