Handle kind property in registries
This commit is contained in:
parent
e1763c0db9
commit
6682b14bf4
3 changed files with 10 additions and 5 deletions
5
lib/config-utils.js
generated
5
lib/config-utils.js
generated
|
|
@ -498,8 +498,8 @@ function parseRegistries(registriesInput) {
|
|||
}
|
||||
function parseRegistriesWithoutCredentials(registriesInput) {
|
||||
return parseRegistries(registriesInput)?.map((r) => {
|
||||
const { url, packages } = r;
|
||||
return { url, packages };
|
||||
const { url, packages, kind } = r;
|
||||
return { url, packages, kind };
|
||||
});
|
||||
}
|
||||
function isLocal(configPath) {
|
||||
|
|
@ -623,6 +623,7 @@ function createRegistriesBlock(registries) {
|
|||
// ensure the url ends with a slash to avoid a bug in the CLI 2.10.4
|
||||
url: !registry?.url.endsWith("/") ? `${registry.url}/` : registry.url,
|
||||
packages: registry.packages,
|
||||
kind: registry.kind,
|
||||
}));
|
||||
const qlconfig = {
|
||||
registries: safeRegistries,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue