Skip to content

Align package validation with v1.1.0 package boundary#38

Merged
GsCommand merged 1 commit into
mainfrom
codex/fix-validate-all.mjs-package-boundary-validation
Mar 21, 2026
Merged

Align package validation with v1.1.0 package boundary#38
GsCommand merged 1 commit into
mainfrom
codex/fix-validate-all.mjs-package-boundary-validation

Conversation

@GsCommand
Copy link
Copy Markdown
Contributor

Motivation

  • The package files/exports expectations in scripts/validate-all.mjs still assumed the older, broader surface which caused schema validation failures like package files surface drift after package.json was narrowed to the v1.1.0-only release surface.

Description

  • Update scripts/validate-all.mjs to expect the exact v1.1.0 package files list: schemas/v1.1.0/, examples/v1.1.0/, manifest.json, checksums.txt, README.md, LICENSE, and index.js by replacing the previous surface check with EXPECTED_PACKAGE_FILES.
  • Replace the partial exports assertions with a deep equality check against the exact v1.1.0 export map EXPECTED_PACKAGE_EXPORTS, which includes ., ./manifest.json, ./checksums.txt, ./schemas/v1.1.0/*, and ./examples/v1.1.0/*.
  • Keep existing schema validation logic and version handling unchanged, and remove the unused CANONICAL_PACKAGE_SURFACE import from the script.

Testing

  • Ran npm run validate which invokes the full validation flow and the command completed successfully with all steps passing (schemas, examples, integrity, and pack validations).
  • Running node scripts/validate-all.mjs directly also returned successful validation for the v1.1.0 package boundary.

Codex Task

@GsCommand GsCommand merged commit 0b30bb3 into main Mar 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant