Skip to content

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?

@MohammadSu1
Copy link
Contributor Author

@bartlomieju Can you please review this PR?

@MohammadSu1
Copy link
Contributor Author

@dsherret Can you review this PR?

@MohammadSu1
Copy link
Contributor Author

@dsherret Can you review this PR, please?

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM. I made the condition more targeted and fixed the test though.

@dsherret dsherret enabled auto-merge (squash) March 5, 2025 16:05
@dsherret dsherret changed the title fix(terminal): Skip the cjs suggestion for mjs/mts modules fix(run): skip the cjs suggestion for mjs/mts modules Mar 5, 2025
@dsherret dsherret disabled auto-merge March 5, 2025 16:05
@dsherret dsherret enabled auto-merge (squash) March 5, 2025 16:06
@dsherret dsherret merged commit 865ec7c into denoland:main Mar 5, 2025
18 checks passed
ry pushed a commit that referenced this pull request Mar 14, 2025
Co-authored-by: David Sherret <dsherret@gmail.com>
ry pushed a commit that referenced this pull request Apr 7, 2025
Co-authored-by: David Sherret <dsherret@gmail.com>
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