-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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(medusa): Resolve babel executable with npx
#5952
Conversation
🦋 Changeset detectedLatest commit: a3214e3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Ignored Deployments
|
/snapshot-this |
🚀 A snapshot release has been made for this PRTest the snapshots by updating your yarn add @medusajs/admin-ui@2.1.11-snapshot-20231221111816 yarn add @medusajs/authentication@0.0.1 yarn add @medusajs/link-modules@0.2.6-snapshot-20231221111816 yarn add @medusajs/medusa@1.19.1-snapshot-20231221111816 yarn add medusa-fulfillment-manual@1.1.39-snapshot-20231221111816 yarn add medusa-fulfillment-webshipper@1.4.2-snapshot-20231221111816 yarn add medusa-interfaces@1.3.8-snapshot-20231221111816 yarn add @medusajs/medusa-js@6.1.5-snapshot-20231221111816 yarn add medusa-payment-adyen@1.1.45-snapshot-20231221111816 yarn add @medusajs/modules-sdk@1.12.6-snapshot-20231221111816 yarn add @medusajs/orchestration@0.5.2-snapshot-20231221111816 yarn add @medusajs/pricing@0.1.7-snapshot-20231221111816 yarn add @medusajs/promotion@0.0.1 yarn add @medusajs/types@1.11.10-snapshot-20231221111816 yarn add @medusajs/utils@1.11.3-snapshot-20231221111816 yarn add @medusajs/workflows-sdk@0.1.1-snapshot-20231221111816
|
/snapshot-this |
🚀 A snapshot release has been made for this PRTest the snapshots by updating your yarn add @medusajs/admin-ui@2.1.11-snapshot-20231221132615 yarn add @medusajs/link-modules@0.2.6-snapshot-20231221132615 yarn add @medusajs/medusa@1.19.1-snapshot-20231221132615 yarn add medusa-fulfillment-manual@1.1.39-snapshot-20231221132615 yarn add medusa-fulfillment-webshipper@1.4.2-snapshot-20231221132615 yarn add medusa-interfaces@1.3.8-snapshot-20231221132615 yarn add @medusajs/medusa-js@6.1.5-snapshot-20231221132615 yarn add medusa-payment-adyen@1.1.45-snapshot-20231221132615 yarn add @medusajs/modules-sdk@1.12.6-snapshot-20231221132615 yarn add @medusajs/orchestration@0.5.2-snapshot-20231221132615 yarn add @medusajs/pricing@0.1.7-snapshot-20231221132615 yarn add @medusajs/types@1.11.10-snapshot-20231221132615 yarn add @medusajs/utils@1.11.3-snapshot-20231221132615 yarn add @medusajs/workflows-sdk@0.1.1-snapshot-20231221132615
|
6f016b1
to
0c1bca2
Compare
/snapshot-this |
🚀 A snapshot release has been made for this PRTest the snapshots by updating your yarn add @medusajs/admin-ui@2.1.11-snapshot-20231221133510 yarn add @medusajs/link-modules@0.2.6-snapshot-20231221133510 yarn add @medusajs/medusa@1.19.1-snapshot-20231221133510 yarn add medusa-fulfillment-manual@1.1.39-snapshot-20231221133510 yarn add medusa-fulfillment-webshipper@1.4.2-snapshot-20231221133510 yarn add medusa-interfaces@1.3.8-snapshot-20231221133510 yarn add @medusajs/medusa-js@6.1.5-snapshot-20231221133510 yarn add medusa-payment-adyen@1.1.45-snapshot-20231221133510 yarn add @medusajs/modules-sdk@1.12.6-snapshot-20231221133510 yarn add @medusajs/orchestration@0.5.2-snapshot-20231221133510 yarn add @medusajs/pricing@0.1.7-snapshot-20231221133510 yarn add @medusajs/types@1.11.10-snapshot-20231221133510 yarn add @medusajs/utils@1.11.3-snapshot-20231221133510 yarn add @medusajs/workflows-sdk@0.1.1-snapshot-20231221133510
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What
Use
npx
to resolve the correct babel binary executableWhy
In https://github.com/medusajs/medusa/pull/5723/files, we introduced a new best guess method for where to find the babel executable in an attempt to improve monorepo usage. However, it turned out to introduce issues on Windows as evident from #5905.
How
npx
automatically resolves the correct executable from the nearest node_modules/.bin directory, starting from the current working directory and moving up the directory hierarchy.npx
should work in simple repositories as well as monorepos – at least using the most popular monorepo tools like workspaces, nx, turborepo, etc.