-
-
Notifications
You must be signed in to change notification settings - Fork 238
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: ✨ added support for using current npm registry #673
feat: ✨ added support for using current npm registry #673
Conversation
I would be happy if you could add the I would update the tests shortly |
is it needed if after all the whole repo has There are 2 challenges I have with proposed solution:
|
I haven't saw that, my bad, it's not needed than.
Yeah I saw and I thought about it too but the library is not deprecated so instead of running child process with There is also npm/config package that NPM use it in their CLI code but it seems like it only getting you the config at specific place
I don't really understand what you mean. Anyway, Artborist doesn't use the currently used npm registry. |
@derberg just pinging you in case you haven't saw my comment |
@rluvaton ah, you are right, I missed you comment, thanks for pinging me 🙇🏼 My point is, based of course on my understanding of Arborist, is to use Arborist for authentication with npm registries. So you can pass to generator library and cli an environment variable, like
does it make sense? it gives you more flexibility imho |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
IMO I think we should use the currently used registry and maybe let the user pass custom registry, this way we don't need to handle authentication and stuff, if the user wants to use custom registry only for this he can create an .npmrc file. WDYT? |
Also, doing this we need to support every change in the NPM capabilities, I suggest that we don't use the EDIT: I see that npm CLI uses Arborist so I take that back https://github.com/npm/cli/blob/latest/lib/install.js#L169-L170 But I still think we should use the current configuration rather than implement it by ourselfs |
@rluvaton the reason we switched to Arborist as it is the most latest and modern approach to manage NPM modules installation. We had too many issues with reusing NPM clients. Thus my request is for us to use Arborist for private/custom registries. Using the config file could work as a fallback |
😀 so what we need to do is add those flags: |
@rluvaton yes, and have it in Generator library of course. Critical to remember is security. By default, we must support passing secret data using environment variables. Flag for password and token should be there to just overwrite env variables. |
Hi, I was wondering if this issue is handled, for I have met the same question. |
@rluvaton what do you need to continue here? |
I'm sorry, crazy times, if someone wants she/he can continue this PR... |
This pull request has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation. There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
This pull request has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation. There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Description
Use the current NPM registry
Related issue(s)
Fixes #538