Open bytemain opened 3 years ago
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
}
// ...
}
support change registry in command line.
and also can get registry from npmrc/yarnrc