tldraw/packages
Mitja Bezenšek 9e7d258b5f
Add prettier caching (#2212)
Adds `--cache` flag to prettier which significantly speeds up `yarn
format`:
https://prettier.io/docs/en/cli#--cache

One downside is that changing the plugins we use with prettier will not
cause the cache to invalidate. Stills seems worth it though.

> Plugins version and implementation are not used as cache keys. We
recommend that you delete the cache when updating plugins.

### Change Type

- [ ] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [x] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Run `yarn format`
2. Run `yarn format` again, this time it should be significantly faster.

### Release Notes

- Speed up formatting of files via `yarn format`.
2023-11-14 09:06:52 +00:00
..
assets Update CHANGELOG.md [skip ci] 2023-11-10 10:49:37 +00:00
editor Revert back to the previous color. (#2210) 2023-11-14 08:21:24 +00:00
state Replace Atom.value with Atom.get() (#2189) 2023-11-13 11:51:22 +00:00
store Replace Atom.value with Atom.get() (#2189) 2023-11-13 11:51:22 +00:00
tldraw [fix] huge images, use downscale for image scaling (#2207) 2023-11-14 08:21:32 +00:00
tlschema Add prettier caching (#2212) 2023-11-14 09:06:52 +00:00
utils Update CHANGELOG.md [skip ci] 2023-11-10 10:49:37 +00:00
validate Update CHANGELOG.md [skip ci] 2023-11-10 10:49:37 +00:00