Skip to content

Sync the manifest schemas: the server package key is nodeModules - #5

Open
adrianstevens wants to merge 1 commit into
mainfrom
adrian/devkit-schema-sync
Open

adrianstevens wants to merge 1 commit into
mainfrom
adrian/devkit-schema-sync

Conversation

@adrianstevens

Copy link
Copy Markdown
Contributor

Mechanical sync, safe to merge on its own.

The checked-in schemas declared the server package key as node_modules and marked it required. It is nodeModules.

server keys: ['launch', 'deploy', 'nodeModules']
nodeModules value: ['node_modules']
node_modules key present: False

node_modules only ever appears as a path value. The key is nodeModules in every real manifest — all 12 first-party apps, the third-party fleet, and all 62 manifests inside this repo.

Why this is a sync, not a fix

Docs.Developer's content/manifest-schemas/manifest.app.schema.json already has nodeModules. packages/devkit-sync/build.ts generates schemas/root-manifest.{app,bot}.schema.json from it, so these two files had simply drifted stale against their own source. Running the sync produces exactly this diff. No upstream change is needed.

Worth knowing for anything else in this directory: devkit-sync writes only templates/ and schemas/. Edits made directly to files in those two paths get reverted by the next sync — they have to be made in Docs.Developer. Everything else in the repo, recipes/ included, is authored here and safe.

Impact

Anyone validating a working manifest against the published schema was being told, confidently and in detail, that it was invalid — and an agent generating a manifest from the schema would have produced a broken one, since the key was also listed as required.

The checked-in copies declared the key as node_modules and marked it
required. Every real manifest uses nodeModules, including all 62 inside this
repo, and node_modules only ever appears as a path value. Docs.Developer's
content/manifest-schemas already had it right, so these are the sync output
catching the DevKit's stale copies up rather than a fix in their own right.

Anyone validating a working manifest against the published schema was being
told, confidently, that it was invalid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant