Skip to content

Conversation

@schlich
Copy link
Contributor

@schlich schlich commented Oct 10, 2025

Summary

  • Adds pnpm format packages/openapi/ to buildfrontend.sh after the turbo build completes
  • Ensures generated OpenAPI client files (api.ts, session.ts, notebook.ts) match the formatting of tracked files
  • Prevents dirty working tree after running make fe

Background

The make fe command runs buildfrontend.sh, which invokes pnpm turbo build. This triggers the codegen task which regenerates OpenAPI client files using openapi-typescript. However, these files are output in raw generator style (4-space indentation, unions collapsed to one line), while the tracked versions in the repository are properly formatted.

The make fe-codegen target already includes the formatting step (pnpm format packages/openapi/), but make fe was missing it, causing formatting diffs every time the build ran.

Testing

  • Verified that make fe now produces no git diffs for OpenAPI files
  • Confirmed the build still completes successfully

The build script now runs 'pnpm format packages/openapi/' after the turbo
build completes. This ensures generated OpenAPI client files match the
formatting of tracked files, preventing dirty working tree after 'make fe'.
@vercel
Copy link

vercel bot commented Oct 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Oct 10, 2025 10:36pm

@mscolnick mscolnick merged commit 27f0e61 into marimo-team:main Oct 10, 2025
21 checks passed
@schlich schlich deleted the fix/format-openapi-after-codegen branch October 10, 2025 23:06
@dmadisetti dmadisetti added the bug Something isn't working label Oct 15, 2025
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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants