Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish as cz instead of commitizen on NPM #777

Open
felipecrs opened this issue Sep 14, 2020 · 3 comments
Open

Publish as cz instead of commitizen on NPM #777

felipecrs opened this issue Sep 14, 2020 · 3 comments

Comments

@felipecrs
Copy link
Contributor

felipecrs commented Sep 14, 2020

It would be awesome if we could keep consistency between the CLI name cz and the NPM package name, commitizen.

This would allow people to:

  1. Use npx cz everywhere, even when not installed. Refs Why cz-conventional-changelog is not the default adapter? #762 (comment).
  2. Set up their repositories easily with npm i -D cz.
  3. Get rid of the confusion caused by npx git-cz, which uses @streamich's git-cz instead of commitizen's official, by advertising npx cz more instead of npx git-cz.

For this to happen we would need:

  1. Maintainers approval
  2. @OmgImAlexis approval, because she owns the cz namespace on NPM. What do you think, @OmgImAlexis?
@felipecrs felipecrs changed the title npm install cz Publish as cz instead of commitizen on NPM Sep 14, 2020
@OmgImAlexis
Copy link

I’d be okay giving it up granted it goes to the org account and not a single person.

@petermetz
Copy link

Maybe this is off-topic, maybe not.
Been using commitizen and what I believe to be the original git-cz package (assumption) together in the same repo and been getting a strange, flaky issue because of it.
I realized that it's because both packages declare git-cz as a binary and probably collide in an nondeterministic manner due to how npm does package installs in parallel (guess).
So, is this a bug? Is commitizen "squatting" on the git-cz binary if we assume that packages should declare binaries matching their name only, to avoid conflicts like this? Or do I have the chicken egg equation backwards and commitizen is the OG implementation?

@OmgImAlexis
Copy link

Hate to be that person but with the recent activity to this repo maybe it's time to bump it.

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

No branches or pull requests

3 participants