Skip to content

Add registry identifier to publish prompt. #191

@cactysman

Description

@cactysman

#96 introduced RFC #28 for a publish confirmation prompt. I think that is really useful because it prevents a lot of accidental pushing.
I suggested something similar in the archived forums, but that never seemed to reach anyone.

However, my main concern with the current publishing process is, that it doesn't really let you know which registry you are publishing to. Faulty configuration or a typo in the publish command could lead to private / confidential code leaking into the public npm registry.


The current state of the RFC includes this line:

This operation will publish your package to the npm registry.

I believe it should be made more obvious - or if it wasn't even intended to indicate it, specifically mentioned - that this line would show which registry it would publish to, if the user chose a custom registry.

Example

npm publish --registry=https://example.com

This operation will publish your package to the registry at https://example.com.


Please let me know what you think of this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions