-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Compatibility with pnpm #1064
Comments
Do you run |
Indeed, it seems that pnpm is doing that for all exported binaries. |
See pnpm/pnpm#244 //cc @zkochan |
Sounds like a very bad idea. It's a flag for a reason. You should only use it when you control the whole environment. |
Using this flag allowed us to install packages to a shared folder. It is unbelievable what amount of disk-space it saves! Personally I did not experience any problems while using the cc @pnpm, @iamstarkov, @rstacruz, @andreypopp |
@zkochan I'm afraid that requiring users to configure pnpm for their usage will really hurt pnpm as it will no longer be a drop-in replacement for npm i 😒 |
Well the same we could say about ava, right? Other testing frameworks seem to work with pnpm and the --preserve-symlink flag. What I suggest is to add a new property to ava's package.json. Users of ava/pnpm won't have to do anything. (I think it would work, I can check later today) Or we could add a config to pnpm to disable --preserve-symlinks. But that would disallow the usage of a shared store. Would this work for you @julien-f? |
@zkochan I only want what's best for pnpm because it's much nicer to use than npm :) Adding a property to ava's package.json looks like the best approach but it's not up to me (@sindresorhus, what's your opinion on this?). |
Well for pnpm the best would be if ava would just work with --preserve-symlinks 😄 Is it somewhere documented why ava cannot do that? |
I don't remember why. See: #814. @jamestalmage would be the best person to comment on this. We're not going to add an option, but if there's any way we could automatically support it without too much code I'm open to it. |
I think #643 (comment) should fix this. |
I don't know whether this was fixed on ava's end but the latest version of pnpm does not require In case of questions feel free to open an issue on pnpm, or write me on gitter/twitter |
pnpm is a fast implementation of
npm install
with the following features:Unfortunately, ava is not compatible with it as
pnpm
use symlinks to install the deps which makes ava complain:Example repository: https://github.com/julien-f/issue-ava-pnpm
It would be very nice if it could be fixed 😄
The text was updated successfully, but these errors were encountered: