Skip to content
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

yarn add local package duplicates node-modules. Normal ? #7606

Open
jeromeSH26 opened this issue Oct 6, 2019 · 0 comments
Open

yarn add local package duplicates node-modules. Normal ? #7606

jeromeSH26 opened this issue Oct 6, 2019 · 0 comments

Comments

@jeromeSH26
Copy link

Hi,

I have created a typescript "TEST" package. After building it, the "dist" folder is created. So have mainly 3 folders : dist, src, node-modules

Then I have created another package "TEST22" and have added the TEST package as a dependency by running "yarn add c:/****/TEST".

The package TEST is will listed in node-module of TEST22 and I can import it.

However, the node_modules of TEST is duplicated in TEST22/node-modules/TEST/node-module.

How to avoid this ? It increases the size of TEST22 a lot.

Thks

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