Skip to content

antfu/ni like aliases enabled by default to abstract away the used package manager #452

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

Open
patak-dev opened this issue Nov 30, 2021 · 0 comments

Comments

@patak-dev
Copy link
Member

Is your feature request related to a problem? Please describe:

Several repositories in the Vue and Vite ecosystem recently migrated from yarn v1 to pnpm. To ease the transition, the Vue team is suggesting the use of @antfu's ni: https://github.com/antfu/ni#readme
Check recommendation in the vue-next CONTRIBUTING.md

We also recommend installing ni to help switch between repos using different package managers. ni also provides the handy nr command which running npm scripts easier.

The examples below will be using the nr command from the ni package.

This is great for docs, because you avoid the need to repeat the instructions three times (npm, yarn, pnpm)

We are getting very used to ni, and I find myself typing ni and nr all the time in StackBlitz. I think it would be awesome to have this library enabled by default in the env (or providing the same aliases), so you can point users to it, no matter what package manager the project is using.

Describe the solution you'd like:

https://github.com/antfu/ni#readme 🙏🏼

Describe alternatives you've considered:

You could invent different aliases, but ni is gaining some ground already so I think it would be good to align the API with it.

Additional context:

Thanks for StackBlitz ❤️

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

1 participant