Skip to content

refactor: standardize entry points - #300

Merged
Tony133 merged 1 commit into
mainfrom
refactor/standardize-entry-points
Sep 17, 2026
Merged

Tony133 merged 1 commit into
mainfrom
refactor/standardize-entry-points

Conversation

@Tony133

@Tony133 Tony133 commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Proposal:

This PR renames the primary entry point from auth.js to index.js, following the common pattern used across the Fastify ecosystem and simplifying imports.

Changes:

  • Renamed auth.js to index.js (no content changes)
  • Updated the "main" field in package.json from "auth.js" to "index.js"
  • Reordered package.json fields to match the layout used in other @fastify/* packages (entry point fields after description, repository metadata after scripts/license); no keys added or removed
  • Updated test/auth.test.js, test/example.js, test/example-async.js and test/example-composited.js to require from .. (automatic index resolution)

Note:

@Tony133
Tony133 marked this pull request as ready for review September 16, 2026 14:53
@Tony133
Tony133 requested a review from Fdawgs September 17, 2026 08:44
@Tony133
Tony133 merged commit 3239137 into main Sep 17, 2026
20 checks passed
@Tony133
Tony133 deleted the refactor/standardize-entry-points branch September 17, 2026 08:49
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.

2 participants