Skip to content

fix: allow empty peer dependency metadata - #210

Open
pengyuayn wants to merge 1 commit into
npm:mainfrom
pengyuayn:fix/peer-dependencies-meta-optional
Open

fix: allow empty peer dependency metadata#210
pengyuayn wants to merge 1 commit into
npm:mainfrom
pengyuayn:fix/peer-dependencies-meta-optional

Conversation

@pengyuayn

Copy link
Copy Markdown

Summary

  • Make PeerDependencyMeta.optional optional so PackageJSON accepts empty peer dependency metadata objects.
  • Add a type-level regression test covering peerDependenciesMeta: { react: {} }.

Validation

  • npx tap test/package-json.ts
  • npm run eslint -- test/package-json.ts types/index.d.ts
  • git diff --check

Notes

  • npm test type-checks successfully but the full run currently fails because live npm registry fixture snapshots for old uuid versions changed their deprecated text upstream. That snapshot drift is unrelated to this change.

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