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

Show registry URL before publishing #485

Merged
merged 2 commits into from Feb 7, 2020

Conversation

TiagoDanin
Copy link
Contributor

@TiagoDanin TiagoDanin mentioned this pull request Jan 11, 2020

exports.getRegistryUrl = async (pkgManager, pkg) => {
const args = ['config', 'get', 'registry'];
if (exports.isExternalRegistry(pkg)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

If this is the case, then you already know the registry URL ahead of time, and so you should return it (instead of calling ${pkgManager} config get unnecessarily).

Copy link
Collaborator

Choose a reason for hiding this comment

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

@TiagoDanin Could you take a look at this?

source/ui.js Outdated Show resolved Hide resolved
Co-Authored-By: Itai Steinherz <itaisteinherz@gmail.com>
@sindresorhus sindresorhus changed the title Show registry url Show registry URL before publishing Feb 7, 2020
@sindresorhus sindresorhus merged commit 6bf85df into sindresorhus:master Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants