-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use nmMode: hardlinks-global
to reduce disk space consumption
#5011
Conversation
✅ Deploy Preview for redwoodjs-docs canceled.
|
@Philzen thanks for this! Give us a week to let the dust settle on v1 release. But do help us keep this conversation going after that. @jtoar (not urgent) I forget why the Yarn team recommended "local" Overall, in a couple weeks you and I should probably revist the overall status for deps and plot a course for where we want to go. |
@thedavidprice here's relevant comments about the
The first one I linked to is probably why we decided on |
@jtoar Ah, there you go. And, correct, I don't believe we can default to But how can we make devs and projects "aware" of performance optimizations like this? Maybe start a new Yarn doc where we highlight commands like Reactions? |
Yeah a great start would probably be commenting the The hard thing about this is it's mostly uncharted territory. Like I'd say you can't touch the |
Hi all, just checking back on the status of this one. |
I love the @jtoar's PR adding that info in #5093. However, there is still a chicken-egg problem here: You cannot directly create a redwood project from scratch and benefit from the disk space savings of
For the ideal DX we'd save people the time and disk space involved in steps 1 – 3. I could see two options going forward to alleviate that: A. make Would love to hear your perspectives on this, and ideally track of option B. in a separate RFC. I'm trying to understand the caveat / implications that lead to the decision to close this PR – please add / correct me if i'm overlooking something here: As far as i my understanding goes, if this became the default, it would mean if I changed some code in the dist-files of a package contained in my |
This could alleviate some of the perceived pain of pnpm-fanfolks (like me) when starting their RedwoodJS journey.
It saves ~0.8 GB of disk space for any additional fresh
yarn install
of a redwood project and also, (at least in theory) is faster as those packages will be linked rather than copied into the project folder.I've used this setting in an existing project for a couple of weeks now and could not observe any negative side-effects. However, leaving this off to the RedwoodJS dev team to review and decide whether you'd like to merge this enhancement.