-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Not possible to use @hypermod/cli to run transforms located in a private NPM package, right? #210
Comments
Hey @alistairwilliamtaylor 👋 Thanks for raising an issue! I should really create a page for this on the site. It should be possible to use hypermod for private packages, you might need to use either the https://www.codeshiftcommunity.com/docs/cli#--registry Assuming developers within your company are using the correct |
Oh thank you so much for getting back to me about this - I'll give it a go in the next few days and let you know |
Wonderful, feel free to reach out whenever! I'd love to make sure you guys can use hypermod successfully! 🙏 |
Thanks Daniel! I've been having a go over the past few days, but sadly no success yet. I might potentially have a bit of a lead, though? I initially tried just with
And then the cursor just hangs and hangs on that - it never produces an error message, but it also doesn't work. I tried providing a bogus registry and/or bogus registry token and it fails immediately if either of them is wrong, which leads me to believe that when it hangs it is a somewhat encouraging sign? I'm happy to keep playing around with this, please feel free to let me know if you have any suggestions about things I could try |
Ah really interesting, I wonder why it's hanging like that 🤔 Does the npm package have a large bundlesize? It could be hanging while it downloads and maybe fail silently. Could you share some logs if there are any? |
Initially I was cancelling the command because it was hanging for so long, but if I leave it for 5-6 minutes I eventually get:
|
Ah I see, the package loader we use has some drawbacks. I suspect the bundlesize is too large which is causing it to run out of memory. I have implemented a more robust loader behind the [ Is the package you're deploying you're codemods with quite large? |
Yeah it is quite large - it has all of our components for the design system in it. Sorry about that! I'm not opposed to creating a separate package for the hypermod codemods for now, so that I can start playing around more with hypermod. I'll try to have a go this week. Thanks for all of your support with this! 😄 |
No worries at all! Feel free to reach out if you run into any more issues, I'd be more than happy to help! Yeah, a standalone package in this case would be the best way to go! |
Hello, and thank you for this wonderful project!
I'm just a junior dev trying to figure out how to set up codemods for our company's design system. I'd been playing around with setting up a script in our package which would use the jsCodeshift executable to run the transforms I'd written, but then I found hypermod and thought that could potentially save me from myself and I could instruct consumers to run something like:
npx @hypermod/cli --packages @myob/[email protected] ./src
However, our package
@myob/myob-widgets
is a private package, so I'm imagining that's why I'm getting the following error:Am I right in thinking that it won't work because
@myob/myob-widgets
is a private package? And are my options therefore to either (a) create a separate public NPM package with transforms which hypermod would be able to access, or (b) try to set up a script myself to run the transforms with jsCodeshift in our private package.Thanks for your help, and my apologies if this question is in the wrong place / wildly off the mark
The text was updated successfully, but these errors were encountered: