-
-
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
feat(cart): Add cart module package #5982
Conversation
🦋 Changeset detectedLatest commit: f90940c 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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Ignored Deployments
|
@@ -0,0 +1,50 @@ | |||
import { Modules } from "@medusajs/modules-sdk"; |
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.
comment: These scripts seem to contain a lot of duplicated code with little to no changes across modules. We should consider a refactor to eliminate the amount of boilerplate code
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.
I believe we can create utils function to build those script and export them from the modules
I have left out the migration until I start integration testing |
@riqwan @pKorsholm, did any of you experience issues with building |
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, Maybe you can include a util proposal for the script in a later pr? or create a ticket that we can handle
@olivermrbl I had the same build issue on my SC module PR. |
How did you resolve it? |
I fixed the line it's complaining about but it is strange. |
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! 🎉
Seems true, indeed the function does not return something all the time. In some cases it will return |
@olivermrbl should this require a changeset for the other packages thats affected here? |
Yes, nice catch. Will include it |
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
Adds Cart Module package
@medusajs/cart
Whether to stick with jest or replace with node's built-in testing tools (from v20) is to be discussed
Resolves CORE-1609