Skip to content

[Bounty: $90] Add an export-surface parity test for every exports subpath against the root entry #424

Description

@oalaro-netizen

Context

package.json exports the root plus ./config, ./errors, ./http, ./models, and ./types, and the existing subpath checks only assert that the subpath files resolve to real files. Nothing verifies that a symbol importable from the root is also importable from its natural subpath, which is how the ./errors surface drifted from what docs/subpath-imports.md documents.

Proposed Change

Add a parity test that imports the public surface from the root entry and, for each subpath, verifies the documented/expected symbols are present in the matching built declaration file or are importable from that subpath.

Acceptance Criteria

  • The test fails when a root symbol is missing from its natural subpath (e.g. an error class or type guard under ./errors)
  • The test passes for ./config, ./http, ./models, and ./types once aligned
  • The test runs against the built dist so it exercises the real exports map

Suggested Label

tests

ETA: 24 hours

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions