fix: Register community nodes as known nodes (no-changelog) (#4775)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-11-30 18:17:57 +01:00
committed by GitHub
parent f3202ee0a8
commit 8698e02079
2 changed files with 16 additions and 3 deletions

View File

@@ -354,12 +354,12 @@ export class LoadNodesAndCredentialsClass implements INodesAndCredentials {
}
// Nodes and credentials that will be lazy loaded
if (loader instanceof LazyPackageDirectoryLoader) {
if (loader instanceof PackageDirectoryLoader) {
const { packageName, known } = loader;
for (const type in known.nodes) {
const { className, sourcePath } = known.nodes[type];
this.known.nodes[`${packageName}.${type}`] = {
this.known.nodes[type] = {
className,
sourcePath: path.join(dir, sourcePath),
};