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

monorepo: Is it possible to cache node_modules from another directory? #490

Open
dan-cooke opened this issue Mar 13, 2019 · 0 comments
Open

Comments

@dan-cooke
Copy link

We are using a monorepo with the following structure

.
| - node_modules
├── packages
│   ├── packageA (hard source package)
|              - node_modules
│   ├── packageB
│   ├── packageC

As we use lerna to hoist all our packages shared dependencies to the root level, the package node_modules, ie. packageA node_modules directory is virtually empty, it just contains a few symlinks to the root level.

Question

Is it possible to cache the node_modules at the root directory instead of the immediate node_modules from packageA?

@dan-cooke dan-cooke changed the title Is it possible to cache node_modules from another directory? monorepo: Is it possible to cache node_modules from another directory? May 22, 2019
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