-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
> NX Running global Nx CLI with PNPM may have issues. #16
Comments
I recently started to use pnpm and also noticed the warning but I just ignored it, I wonder what issues it can cause and why. I agree it would be great to handle this directly in the plugin, if you want to contribute you are welcome. |
Sometimes, some command will fail if used without I might take a look on this, but not sure I'll have time. But feel free to reuse that piece of code I've shared. btw, not sure if this is possible, but I would improve the behavior of that script a bit. |
I'm not sure if this helps in your case, but I have added this tiny script to my
|
Just as an idea for potential solution. There is a package I use https://github.com/antfu/ni which can automatically detect package manager used in the project and install dependencies with proper manager. |
and @Peeeep , your solution works like a charm, thanks. # ~/.zshrc file
function nx() {
pnpm nx "$@"
} |
When running
nx
inpnpm
managed repo, I get the following warning (which sometimes even results in not working command)Using the alias from the TIP would break this autocompletion, so would be really great if the plugin could work with PNPM natively and run
pnpm nx
whenevernx
is used.Here is what I came up with as a solution for me:
In
.zrhrc
So, now whenever I type
nx {command}
it gets replaced bypnpm nx {command}
automatically onEnter
. This also doesn't break this autocompletion pluginThe text was updated successfully, but these errors were encountered: