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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share cache across multiple projects in monorepo setup. #2250

Closed
mortyccp opened this issue Jan 5, 2021 · 2 comments
Closed

Share cache across multiple projects in monorepo setup. #2250

mortyccp opened this issue Jan 5, 2021 · 2 comments
Labels
馃殌 Feature Request new suggested feature

Comments

@mortyccp
Copy link

mortyccp commented Jan 5, 2021

馃殌 Feature Proposal

Share cache across multiple projects in monorepo setup.

Motivation

Multiple projects in monorepo setup seem to have separate ts-jest cache now. With shared cache across multiple projects, we can have performance increase.

Example

Running jest in the monorepo env will share cache.

@mortyccp mortyccp added the 馃殌 Feature Request new suggested feature label Jan 5, 2021
@ahnpnl
Copy link
Collaborator

ahnpnl commented Jan 5, 2021

See jestjs/jest#10835, we use jest cache dir as base for cache dir so we can鈥檛 do anything in this case.

@ahnpnl ahnpnl closed this as completed Jan 5, 2021
@ahnpnl
Copy link
Collaborator

ahnpnl commented Jan 5, 2021

This can also be done if Jest allows transformers to share cache with each other. ts-jest is only a transformer and everything is decided by internal Jest runtime.

Perhaps this can be brought to Jest team to discuss and propose a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃殌 Feature Request new suggested feature
Projects
None yet
Development

No branches or pull requests

2 participants