Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(js): fix Rollup plugin to correctly handle .cjs.js and .mjs.js fi… #29366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashkanhosseini
Copy link

…le extensions for type definitions.

Updated the Rollup plugin's logic for generating type definition files to ensure compatibility with additional file extensions, including .cjs.js and .mjs.js.

This change improves the handling of entry points and ensures that corresponding .d.ts files are correctly named and emitted in all supported scenarios.

Added a comprehensive test case to validate the new behavior.

closed #29308

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@ashkanhosseini ashkanhosseini requested a review from a team as a code owner December 16, 2024 11:43
Copy link

vercel bot commented Dec 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Dec 16, 2024 1:53pm

Copy link

nx-cloud bot commented Dec 16, 2024

Your CI Pipeline Execution ↗ for commit da02a50 ⏳ is in progress.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ❌ Failed 44m, 42s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 1m, 3s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 0s View ↗
nx-cloud record -- nx format:check --base=5bdda... ✅ Succeeded 25s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 24s View ↗
nx documentation --no-dte ✅ Succeeded 44s View ↗

Last updated at 2024-12-16 14:41:45UTC

Sent with 💌 from NxCloud.

…le extensions for type definitions.

Updated the Rollup plugin's logic for generating type definition files to ensure compatibility with
additional file extensions, including .cjs.js and .mjs.js.

This change improves the handling of entry points and ensures that corresponding .d.ts files are
correctly named and emitted in all supported scenarios.

Added a comprehensive test case to validate the new behavior.

closed nrwl#29308
@ashkanhosseini ashkanhosseini force-pushed the fix/29308-d-ts-file-formats branch from bd7d7e5 to da02a50 Compare December 16, 2024 13:51
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.

Mismatch Between Type Declaration File Names and types Field in Generated package.json
1 participant