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

Cache TypeScript config file bundles #31

Open
ds300 opened this issue Apr 13, 2023 · 2 comments
Open

Cache TypeScript config file bundles #31

ds300 opened this issue Apr 13, 2023 · 2 comments

Comments

@ds300
Copy link
Owner

ds300 commented Apr 13, 2023

Follow up to #4

If the user uses a TypeScript config file, we bundle it with esbuild before loading it.

If we can get the list of input files to that bundle, we can create a hash manifest the same way we do for input files in lazyrepo, and then use that to avoid bundling the config file or even loading esbuild next time lazyrepo is invoked.

If the use makes a change to any of the files used to create the bundle it should invalidate the cache and re-bundle the file.

@ds300 ds300 converted this from a draft issue Apr 13, 2023
@ds300 ds300 changed the title Cache cache TypeScript config file bundles Cache TypeScript config file bundles Apr 13, 2023
@judicaelandria
Copy link
Contributor

Hey @ds300 I would love to work on this one, :)

@ds300
Copy link
Owner Author

ds300 commented Apr 19, 2023

All yours!

@ds300 ds300 moved this from 🔖 Ready to 🏗 In progress in lazyrepo road to beta Apr 19, 2023
@ds300 ds300 moved this from 🏗 In progress to 🔖 Ready in lazyrepo road to beta Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants