-
Notifications
You must be signed in to change notification settings - Fork 201
parse package.json instead of running npm|yarn list #1690
Conversation
3b94470
to
f414a44
Compare
f414a44
to
fda0265
Compare
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.
Changes look mostly good to me. I left a suggestion, one follow up for @vividviolet and a question regarding some stubs in the test suite.
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.
Thanks for improving this @cecyc. It'll make the package detection in projects much more reliable 🚀
fda0265
to
5913509
Compare
5913509
to
047a16f
Compare
@pepibumur Implemented most of your suggestions, thank you so much for the feedback! The only things I could not implement were:
LMK if you have any other thoughts, like I said, my goal is to merge this Friday Oct. 29 so it can go out with Monday's release on Nov. 1. Thanks! |
That's awesome, thanks @cecyc. I agree, we can go ahead and merge and keep this in mind going forward for future PRs. Excellent job 👏🏼 |
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.
🎩'd with react.tsx template and all the commands ran successfully. Nice work!
WHY are these changes introduced?
Fixes #1683
WHAT is this pull request doing?
Instead of running
npm | yarn list
to find therenderer_package
version that is needed for the extension to run, parse thepackage.json
file and get the version from there.Pros:
npm | yarn list
list
command on earlier versions of Node, and not having to run the command would eliminate said bugHow to test your changes?
shopify extension serve
,shopify extension register
andshopify extension push
on aPRODUCT_SUBSCRIPTION
extensionTophatted:
Product Subscription
Checkout UI
Post Purchase
Post-release steps
N/A
Update checklist