fix(core): Fix credentials lazy-loading (no-changelog) (#6615)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-07-10 17:57:26 +02:00
committed by GitHub
parent d8909ab8b0
commit 07744986ea
5 changed files with 40 additions and 32 deletions

View File

@@ -38,6 +38,10 @@ const generate = async (kind) => {
else obj[name] = { className, sourcePath };
}
if (kind === 'credentials' && Array.isArray(instance.extends)) {
obj[name].extends = instance.extends;
}
if (kind === 'nodes') {
const { credentials } = instance.description;
if (credentials && credentials.length) {
@@ -53,6 +57,7 @@ const generate = async (kind) => {
}
return obj;
}, {});
LoggerProxy.info(`Detected ${Object.keys(data).length} ${kind}`);
await writeJSON(`known/${kind}.json`, data);
return data;