Skip to content

fix: correct package entrypoints for 1.6.8 dist output#872

Merged
veritem merged 1 commit intovitest-dev:mainfrom
yyxi:fix/package-entrypoints-1-6-8
Feb 14, 2026
Merged

fix: correct package entrypoints for 1.6.8 dist output#872
veritem merged 1 commit intovitest-dev:mainfrom
yyxi:fix/package-entrypoints-1-6-8

Conversation

@yyxi
Copy link
Contributor

@yyxi yyxi commented Feb 14, 2026

This patch fixes broken package entrypoints in v1.6.8.

Root cause:

  • Introduced in commit 73a7184 (chore: bump up deps chore: bump up deps #871).
  • tsdown was upgraded from ^0.15.10 to ^0.20.3.
  • Build output changed from index.js/index.d.ts to index.mjs/index.d.mts, but package.json still pointed to index.js/index.d.ts.

Changes:

  • module -> ./dist/index.mjs
  • types -> ./dist/index.d.mts
  • exports["."].import -> ./dist/index.mjs
  • exports["."].types.import -> ./dist/index.d.mts
  • exports["."].types.require -> ./dist/index.d.cts

Verification:

  • pnpm build
  • pnpm typecheck
  • pnpm test
  • npm pack confirms all referenced files are present

@yyxi
Copy link
Contributor Author

yyxi commented Feb 14, 2026

@veritem Thanks for the release work here. This looks like a patch-level regression with downstream impact: v1.6.8 publishes dist/index.mjs and dist/index.d.mts, while package entrypoints still reference dist/index.js and dist/index.d.ts. That mismatch breaks module resolution in consumers (for example ESLint config loading).

This PR only updates package.json entrypoints to match the published dist output and keeps CommonJS and type paths aligned.

Copy link
Member

@veritem veritem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@veritem veritem merged commit 1cf7964 into vitest-dev:main Feb 14, 2026
5 checks passed
@yyxi yyxi deleted the fix/package-entrypoints-1-6-8 branch February 14, 2026 17:58
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