Skip to content

feat(update): support custom npm registries #220

@maksnester

Description

@maksnester

Description

In my .npmrc file I have custom npm registries for some scoped packages like

@foo:registry=https://gitlab.com/api/v4/projects/000000/packages/npm/
//gitlab.com/api/v4/projects/000000/packages/npm/:_authToken=000000

@bar:registry=https://gitlab.com/api/v4/projects/111111112/packages/npm/
//gitlab.com/api/v4/projects/111111112/packages/npm/:_authToken=111111112

Suggested Solution

It would be nice if the update command

syncpack update --filter '@foo' 

Could respect the custom registries as currently it doesn't show any available updates.

As a reference, the NCU tool currently supports it, but would be nice to do this with Syncpack to avoid using one more tool. It looks like this there:

ncu -ws -f "@foo/*"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions