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(cli): Exclude non-files from get_files_list #9560

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

pan93412
Copy link
Contributor

@pan93412 pan93412 commented Sep 17, 2024

Description:

get_files_list does not check if a path with the extensions is really a file.

Related issue:

@pan93412 pan93412 requested a review from a team as a code owner September 17, 2024 03:38
Copy link

changeset-bot bot commented Sep 17, 2024

🦋 Changeset detected

Latest commit: f0f43fd

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pan93412
Copy link
Contributor Author

pan93412 commented Sep 17, 2024

r? @kdy1 – thank you!

I have validated this test case does not work before this fix.

CleanShot 2024-09-17 at 11 50 05@2x

and works after this fix.

CleanShot 2024-09-17 at 11 50 18@2x

@kdy1 kdy1 added this to the Planned milestone Sep 17, 2024
@kdy1 kdy1 self-assigned this Sep 17, 2024
@kdy1 kdy1 enabled auto-merge (squash) September 17, 2024 04:08
@kdy1 kdy1 merged commit 85cc2bd into swc-project:main Sep 17, 2024
154 checks passed
Copy link

codspeed-hq bot commented Sep 17, 2024

CodSpeed Performance Report

Merging #9560 will improve performances by 5.42%

Comparing pan93412:fix-9559 (f0f43fd) with main (9dd8f6f)

Summary

⚡ 1 improvements
✅ 177 untouched benchmarks

Benchmarks breakdown

Benchmark main pan93412:fix-9559 Change
es/full/codegen/es2015 291.2 µs 276.2 µs +5.42%

@pan93412 pan93412 deleted the fix-9559 branch September 17, 2024 08:07
@kdy1 kdy1 modified the milestones: Planned, v1.7.28 Sep 24, 2024
@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

@swc/core's binary does not handle folders with .js suffix well
2 participants