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(medusa): Resolve babel executable with npx #5952

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

olivermrbl
Copy link
Contributor

@olivermrbl olivermrbl commented Dec 21, 2023

What
Use npx to resolve the correct babel binary executable

Why
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.

Copy link

changeset-bot bot commented Dec 21, 2023

🦋 Changeset detected

Latest commit: a3214e3

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

This PR includes changesets to release 1 package
Name Type
@medusajs/medusa Patch

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

Copy link

vercel bot commented Dec 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Ignored (Inspect) Visit Preview Dec 27, 2023 0:55am
docs-ui ⬜️ Ignored (Inspect) Visit Preview Dec 27, 2023 0:55am
medusa-docs ⬜️ Ignored (Inspect) Visit Preview Dec 27, 2023 0:55am

@olivermrbl
Copy link
Contributor Author

/snapshot-this

Copy link
Contributor

🚀 A snapshot release has been made for this PR

Test the snapshots by updating your package.json with the newly published versions:

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

Latest commit: 890e76a

@olivermrbl
Copy link
Contributor Author

/snapshot-this

Copy link
Contributor

🚀 A snapshot release has been made for this PR

Test the snapshots by updating your package.json with the newly published versions:

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

Latest commit: 890e76a

@olivermrbl
Copy link
Contributor Author

/snapshot-this

Copy link
Contributor

🚀 A snapshot release has been made for this PR

Test the snapshots by updating your package.json with the newly published versions:

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

Latest commit: 890e76a

@olivermrbl olivermrbl changed the title [wip] fix(medusa): Resolve babel executable with npx Dec 22, 2023
Copy link
Member

@adrien2p adrien2p left a comment

Choose a reason for hiding this comment

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

LGTM

@olivermrbl olivermrbl merged commit 487067f into develop Jan 2, 2024
15 checks passed
@olivermrbl olivermrbl deleted the fix/develop-command branch January 2, 2024 09:13
@github-actions github-actions bot mentioned this pull request Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants