Tldraw/scripts
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
..
lib [infra] missing await (#1951) 2023-09-26 16:44:47 +00:00
CHANGELOG.md
api-check.ts Incorporate signia as @tldraw/state (#1620) 2023-06-20 13:31:26 +00:00
build-api.ts
build-package.ts
check-scripts.ts tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
clean.sh Add next cache to clean command (#1811) 2023-08-18 12:52:51 +00:00
lint.ts Add prettier caching (#2212) 2023-11-14 09:06:52 +00:00
package.json (chore) bump (#1744) 2023-07-18 10:19:28 +00:00
postpack.sh
prepack.ts
publish-canary.ts
publish-manual.ts
publish-new.ts fix standalone examples (#2042) 2023-10-09 10:55:16 +00:00
refresh-assets.ts tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
tsconfig.json
typecheck.ts