Skip to content

Allow pass registry option to get-pnpm #63

Description

@anytinz

Currently, a constant is being used to pass the registry to get-pnpm:

await downloadVerifiedPnpm({ versionSpec: resolved.version, registry: REGISTRY, dest: destDir })

I’d be happy to create a PR for this. I have two ideas:

  1. get-pnpm provides a registryFromEnv function that can be used to replace 'https://registry.npmjs.org'. This would align with the get-pnpm documentation, allowing users to pass the registry used for downloading pnpm via the npm_config_registry environment variable. We might also need to add this information to the project’s documentation.
  2. Allow passing a registry as an input parameter.

We can implement this feature either by one of these approaches, or by combining both.

Activity

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