Commit fd7a56b
authored
Include gitignored OpenAPI specs as Turbo inputs to fix stale client generation (#856)
### Summary & Motivation
Fix stale frontend API client generation caused by Turbo not detecting
changes to gitignored OpenAPI spec files. After the recent removal of
`*.Api.json` files from version control, Turbo's cache no longer
detected when the backend regenerated these specs, causing `dev:setup`
and `build` tasks to skip re-running `openapi-typescript`. This resulted
in the frontend loading a stale `api.generated.d.ts` with missing types
and API paths.
- Add `shared/lib/api/*.Api.json` as explicit Turbo inputs alongside
`$TURBO_DEFAULT$` for both `build` and `dev:setup` tasks, so Turbo
includes the gitignored OpenAPI specs in its cache hash and invalidates
correctly when the backend regenerates them
### Checklist
- [x] I have added tests, or done manual regression tests
- [x] I have updated the documentation, if necessary1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments