frontend/.pnpm-store/v3/files/5e/5d457ea8b667a19927584bc3245451a3285dabfb858841a51fa01643bb95e7ca0c2ff1c8f630cf79706c0a0bde986de518e433b70be54321113c4cf01dcc46

8 lines
333 B
Plaintext

const npmConf = require('@pnpm/npm-conf')
module.exports = function getRegistryUrl (scope, npmrc) {
const rc = npmrc ? { config: { get: (key) => npmrc[key] } } : npmConf()
const url = rc.config.get(scope + ':registry') || rc.config.get('registry') || npmConf.defaults.registry
return url.slice(-1) === '/' ? url : url + '/'
}