Skip to content

Version Packages - #249

Merged
unional merged 1 commit into
mainfrom
changeset-release/main
Sep 6, 2026
Merged

Version Packages#249
unional merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

path-equal@1.2.8

Patch Changes

  • e2cb9c7: Serve CJS type declarations to CJS consumers.

    The exports map carried one top-level types pointing at ./esm/index.d.ts, and no require condition. A CommonJS consumer resolving under node16/nodenext was therefore handed the ESM declarations and told the package was ESM, failing with TS1479: the referenced file is an ECMAScript module and cannot be imported with 'require'.

    Nothing was wrong with the emitted code — cjs/package.json already declares {"type":"commonjs"} and cjs/index.d.ts already shipped. The manifest simply never pointed at it. moduleResolution: "node" ignores exports maps entirely, which is why this went unnoticed.

    exports now resolves require and import separately, each with the declarations that match its format, and the top-level types agrees with main instead of contradicting it.

@unional
unional enabled auto-merge September 6, 2026 05:10
@unional
unional added this pull request to the merge queue Sep 6, 2026
Merged via the queue into main with commit 6451d2c Sep 6, 2026
5 checks passed
@unional
unional deleted the changeset-release/main branch September 6, 2026 05:12
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