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

feat: Automatically select the package manager to install release-it #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vaebe
Copy link

@vaebe vaebe commented Dec 26, 2024

When using npm init release-it to initialize release-it, I encountered the following error, which left me a bit confused. Clearly, it didn't fully succeed!

image

Then I realized it was because my project uses pnpm as the package manager, so executing npm install release-it --save-dev failed. To address this, I added a piece of logic to automatically detect the project's package manager and execute the corresponding installation command. It works well now!

bun

image

pnpm

image

npm

image

@vaebe
Copy link
Author

vaebe commented Dec 26, 2024

Basic tests have been conducted on npm, pnpm, yarn, and bun, and they are running smoothly!

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.

1 participant