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(swc/cli): correctly expose swcx entrypoint #3784

Merged
merged 2 commits into from
Mar 1, 2022

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Feb 28, 2022

Description:

This PR fixes entrypoint to swcx binary for npm. It was my incorrect understanding pointing to native binary (swcx.exe for example) creates symlink to node_modules/.bin. This isn't ideal as it requires warm up node.js process, but it allows easier experiment.

This doesn't mean we'll use this as permanent solution. We don't even have decided to use @swc/core as single pkg or use separate pkg for cli. It's something we'll need to think about.

Also: if someone see node_modules/.bin doesn't have swcx properly, it's likely due to npm/cli#4308. I confirmed when it comes to scoped pkg there's no binary entrypoint being created.

Related issue (if exists):

@kdy1 kdy1 added this to the v1.2.147 milestone Mar 1, 2022
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

Thank you!


swc-bump:

  • ''

@kdy1 kdy1 enabled auto-merge (squash) March 1, 2022 03:50
@kdy1 kdy1 merged commit 95ecc01 into swc-project:main Mar 1, 2022
@kdy1 kdy1 modified the milestones: v1.2.147, v1.2.148 Mar 1, 2022
@kwonoj kwonoj deleted the fix-swcx-entrypoint branch March 5, 2022 04:52
@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 27, 2022
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.

3 participants