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 Typst packages #16

Merged
merged 9 commits into from
Feb 8, 2024
Merged

Cache Typst packages #16

merged 9 commits into from
Feb 8, 2024

Conversation

yusancky
Copy link
Member

No description provided.

@yusancky yusancky requested a review from jcbhmr January 25, 2024 03:17
@yusancky

This comment was marked as resolved.

@yusancky yusancky linked an issue Jan 25, 2024 that may be closed by this pull request
@jcbhmr jcbhmr mentioned this pull request Jan 25, 2024
2 tasks
Copy link
Member

@jcbhmr jcbhmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to use glob.hashFiles() across any files like package-lock.json or in this case **/*.typ to get a unique cache id. Then save to that instead of packages-id? Similar to https://github.com/actions/setup-node ? does that make sense?

as for the "vite doesn't work" you're absolutely 100% right. 😆 it workd great up until it didn't. https://bun.sh seems to work in this instance so i guess you can use that instead

i made a bunch of changes in #17 that i think you should check out and consider merging into this #16 branch 🤷

@yusancky

This comment was marked as outdated.

src/main.ts Outdated Show resolved Hide resolved
src/post.ts Outdated Show resolved Hide resolved
src/main.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@yusancky yusancky merged commit ebe8708 into main Feb 8, 2024
3 checks passed
@yusancky yusancky deleted the package-cache-230124 branch February 8, 2024 00:52
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

Successfully merging this pull request may close these issues.

Also cache package download dir
3 participants