Skip to content

types: config.types accept boolean value#278

Merged
pi0 merged 1 commit intounjs:mainfrom
azat-io:fix/types-types
Jul 6, 2025
Merged

types: config.types accept boolean value#278
pi0 merged 1 commit intounjs:mainfrom
azat-io:fix/types-types

Conversation

@azat-io
Copy link
Contributor

@azat-io azat-io commented May 13, 2025

Hello!

In order not to include certain types of commits in changelog, you can pass the value false.

// changelog.config.ts
import type { ChangelogConfig } from 'changelogen'

export default {
  types: {
    perf: {
      title: '🏎 Performance Improvements',
    },
    fix: {
      title: '🐞 Bug Fixes',
    },
    feat: {
      title: '🚀 Features',
    },
    refactor: false,
  },
  templates: {
    commitMessage: 'build: publish v{{newVersion}}',
  },
} satisfies Partial<ChangelogConfig>

This works, but errors occur when used in TypeScript config. This pullquest fixes the types of types.

@azat-io
Copy link
Contributor Author

azat-io commented May 16, 2025

@pi0 Hello, could you check this PR?

@azat-io
Copy link
Contributor Author

azat-io commented Jun 8, 2025

@pi0 Ping

1 similar comment
@azat-io
Copy link
Contributor Author

azat-io commented Jul 5, 2025

@pi0 Ping

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pi0 pi0 changed the title fix: fix type of changelog config types types: config.types accept boolean value Jul 6, 2025
@pi0 pi0 merged commit 10688d9 into unjs:main Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants