release-it / conventional-changelog

Conventional changelog plugin for release-it
MIT License
122 stars 36 forks source link

conventional-changelog v8+ not loaded #93

Open timmywil opened 3 months ago

timmywil commented 3 months ago

With conventional-changelog now ESM-only, this package no longer seems to load the plugin in a usable way, at least not by default. Versions of conventional-changelog-conventionalcommits before v8 work fine. I am using @release-it/conventional-changelog@8.0.1

Example config

{
  "verbose": 2,
  "hooks": {
    "before:init": "npm test"
  },
  "git": {
    "commitMessage": "chore(release): ${version}",
    "requireBranch": "main",
    "tagName": "${version}"
  },
  "npm": {
    "publish": false
  },
  "github": {
    "release": true
  },
  "plugins": {
    "@release-it/conventional-changelog": {
      "preset": {
        "name": "conventionalcommits",
        "types": [
          {
            "type": "feat",
            "section": "Features"
          },
          {
            "type": "fix",
            "section": "Bug Fixes"
          },
          {
            "type": "perf",
            "section": "Performance Improvements"
          }
        ]
      }
    }
  }
}

Edit: looking closer at this plugins dependencies, I wonder if it's simply a matter of upgrading conventional-changelog to 6.0

webpro commented 3 weeks ago

Unfortunately conventional-changelog 6.0 has some significant breaking changes