Skip to content

[RRFC] Please don't store registry info in packge-lock.json #821

Open

Description

@JounQin

Motivation ("The Why")

It's very bad for different users prefer different registries globally, I accidentally commit unexpected changes several times.

Example

FYI, yarn 2+ and pnpm don't store registry info in their lockfile.

How

Current Behaviour

Read it from .npmrc instead.

Desired Behaviour

As title, registry should not be stored into package-lock.json, it would also make package-lock.json much smaller.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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