Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support change registry #13

Open
bytemain opened this issue Aug 15, 2021 · 1 comment
Open

support change registry #13

bytemain opened this issue Aug 15, 2021 · 1 comment

Comments

@bytemain
Copy link

support change registry in command line.

and also can get registry from npmrc/yarnrc

@a1mersnow
Copy link
Contributor

a1mersnow commented Nov 23, 2023

As I test, taze already support specify the registry via .npmrc.

In my opinion, it's not very useful to specify registry via command line options.

export async function getPackageData(name: string): Promise<PackageData> {
  // ...

  try {
    debug.resolve(`resolving ${name}`)
    const npmConfig = await getNpmConfig()
    // .npmrc -> npmConfig
    const data = await pacote.packument(name, { ...npmConfig, fullMetadata: true })

    // ...
  }
  catch (e) {
    error = e
  }
  // ...
}

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

No branches or pull requests

3 participants