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:
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.
- Allow passing a
registry as an input parameter.
We can implement this feature either by one of these approaches, or by combining both.
Currently, a constant is being used to pass the
registrytoget-pnpm:setup/src/install-pnpm/download.ts
Line 57 in fbda4c8
I’d be happy to create a PR for this. I have two ideas:
get-pnpmprovides aregistryFromEnvfunction that can be used to replace'https://registry.npmjs.org'. This would align with theget-pnpmdocumentation, allowing users to pass the registry used for downloading pnpm via thenpm_config_registryenvironment variable. We might also need to add this information to the project’s documentation.registryas an input parameter.We can implement this feature either by one of these approaches, or by combining both.