Replies: 1 comment
-
Every package I install has a node_modules dir.
Each one loads copies of dependancies.
There are dozens of duplicate files scattered among them.
One node_modules at the root, with a single directory tree, to hold all of
them, should not need duplicates.
Unless I'm doing something wrong.
…On Tuesday, March 22, 2022, Rich Trott ***@***.***> wrote:
I don't understand. This de-duplicates nothing.
—
Reply to this email directly, view it on GitHub
<#42432 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHJ7GLXNAGN45IZB4CDH74LVBHLKXANCNFSM5RKAL34A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Presently, each package sets up node_modules, often creating duplicates.
Without changing the format of package.json, I suggest modifying the structure of node_modules behind the scenes.
For example, to install
Make the node_modules file structure as:
node_modules
In other words, break the package, and it's dependancies, on the "-" and the "@" to form sub-folders.
This should eliminate duplicates on the user system, and still have specific versions available for various dependancies.
It sounds easy enough, but I'm not good enough with javascript to.pull it off myself.
Beta Was this translation helpful? Give feedback.
All reactions