feat(schema): generate app JSON Schemas from src/apps - #257
Merged
Conversation
Extend generate-schema.ts to scan installed app bridges under src/apps/ and populate manifest.blocks.apps so the CMS can edit VTEX, blog, and custom apps without per-site merge scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
3 tasks
JonasJesus42
approved these changes
Jun 18, 2026
|
🎉 This PR is included in version 6.12.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
generate-schema.tsto scansrc/apps/(third pass after loaders and sections)manifest.blocks.appsandschema.root.appsso the CMS can edit installed appssite/apps/**/_*and support--skip-apps/--appsCLI flagsTest plan
npx tsx scripts/generate-schema.tson a site withsrc/apps/deco/vtex.tsbridgemeta.gen.jsonincludesmanifest.blocks.appswith VTEX entryMade with Cursor
Summary by cubic
Generate JSON Schemas for app bridges in
src/apps/and expose them inmanifest.blocks.appsandschema.root.apps. This lets the CMS edit installed apps (e.g., VTEX) without manual wiring.New Features
scripts/generate-schema.tsthat scanssrc/apps/and builds JSON Schema 7 for each appProps.manifest.blocks.appsandschema.root.apps.anyOfwith refs to each app schema./_*; adds--apps <dir>and--skip-appsflags.Migration
npx tsx scripts/generate-schema.tsto generate app entries.Props(interface/type or via default export) undersrc/apps/.meta.gen.jsonshows entries undermanifest.blocks.apps.Written for commit 113ac5a. Summary will update on new commits.