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
build: Enable prettier caching #18370
Conversation
⯅ @fluid-example/bundle-size-tests: +14 Bytes
Baseline commit: e373070 |
| # Ignore docs markdown files since those are formatted using markdownlint | ||
| docs/**/*.yaml | ||
| docs/**/*.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yaml or markdown?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the ignore entry from my previous comment, looks good!
|
🔗 Found some broken links! 💔 Run a link check locally to find them. See linkcheck output |
Enables prettier caching.
I set up two repos, one with the change and one without, then ran some benchmarks. Results show at least a 4x improvement.
cd no-cache ; pnpm run -r --no-sort --stream prettier:fixcd with-cache ; pnpm run -r --no-sort --stream prettier:fixcd no-cache ; pnpm run -r --no-sort --stream prettiercd with-cache ; pnpm run -r --no-sort --stream prettier