Skip to content

Include gitignored OpenAPI specs as Turbo inputs to fix stale client generation#856

Merged
tjementum merged 1 commit intomainfrom
pp-1014-stale-frontend-api-client-generation-after-removing-openapi
Mar 7, 2026
Merged

Include gitignored OpenAPI specs as Turbo inputs to fix stale client generation#856
tjementum merged 1 commit intomainfrom
pp-1014-stale-frontend-api-client-generation-after-removing-openapi

Conversation

@tjementum
Copy link
Copy Markdown
Member

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

  • I have added tests, or done manual regression tests
  • I have updated the documentation, if necessary

@tjementum tjementum self-assigned this Mar 7, 2026
@tjementum tjementum added the Bug Something isn't working label Mar 7, 2026
@linear
Copy link
Copy Markdown

linear bot commented Mar 7, 2026

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 7, 2026

@tjementum tjementum merged commit fd7a56b into main Mar 7, 2026
36 checks passed
@tjementum tjementum deleted the pp-1014-stale-frontend-api-client-generation-after-removing-openapi branch March 7, 2026 12:56
@github-project-automation github-project-automation bot moved this to ✅ Done in Kanban board Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

1 participant