gitnpmcommitnpxcommitizen

How to define Commitizen adapter when using "npx git-cz"?


I am trying to adopt a conventional commits like standard to my projects. While searching for linters and other automation tools I stumbled upon commitizen. I want to use it in my project without installing it locally neither globally using the NPX with the command npx git-cz.


Solution

  • This is a known issue in commitizen.

    If the repository is not commitizen friendly, running npx git-cz will install and use the streamich/git-cz adapter.

    I think this works only because of package name collisions, and do not think you can configure a different adapter this way.