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(terminal): Skip the cjs suggestion for mjs/mts modules #26698

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

MohammadSu1
Copy link
Contributor

This PR is for solving #26557.

  1. A check statement was added to verify if the file ends with .mjs or .mts.
  2. If this condition is true, the CJS suggestions will be skipped.

@MohammadSu1 MohammadSu1 changed the title Fix(terminal): Skip the cjs suggestion for mjs/mts modules fix(terminal): Skip the cjs suggestion for mjs/mts modules Nov 3, 2024
@bartlomieju
Copy link
Member

Could you please add a test that uses .cts file?

@MohammadSu1
Copy link
Contributor Author

Sure! I will add a test asap

@MohammadSu1
Copy link
Contributor Author

When I try to add a test that uses a .cts file, it shows me the following error:
cts_problem

@dsherret
Copy link
Member

dsherret commented Nov 8, 2024

@MohammadSu1 can you push the failing test to the PR?

@MohammadSu1
Copy link
Contributor Author

@dsherret I tried fixing the issue in the test and pushed it to the PR. I think it's working correctly now

@MohammadSu1
Copy link
Contributor Author

@dsherret Can you please review this PR?

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.

3 participants