Skip to content

fix: allow forward exports from package entrypoints - #51

Merged
artiphishle merged 20 commits into
mainfrom
lint/50-package-entrypoint-forward-exports
Aug 17, 2026
Merged

fix: allow forward exports from package entrypoints#51
artiphishle merged 20 commits into
mainfrom
lint/50-package-entrypoint-forward-exports

Conversation

@artiphishle

Copy link
Copy Markdown
Collaborator

Closes #50

Summary

  • keep ankhorage/no-forward-exports strict for ordinary implementation modules;
  • allow forward exports from public package entrypoints declared by package.json main, types, and exports;
  • map standard dist/... output targets back to src/... source entrypoints;
  • share package metadata path resolution with ESLint profile detection;
  • add integration coverage for non-index entrypoints and undeclared implementation files.

This fixes false positives such as src/root.ts in @ankhorage/studio without hardcoding Studio filenames or adding lint disables.

@artiphishle artiphishle self-assigned this Aug 17, 2026
@artiphishle
artiphishle marked this pull request as ready for review August 17, 2026 02:55
@artiphishle
artiphishle merged commit a6a564d into main Aug 17, 2026
1 check passed
@artiphishle
artiphishle deleted the lint/50-package-entrypoint-forward-exports branch August 17, 2026 03:34
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.

[lint] Allow forward exports from declared package entrypoints

1 participant