diff --git a/core/cli/package.json b/core/cli/package.json index fdfd243..917fc7a 100644 --- a/core/cli/package.json +++ b/core/cli/package.json @@ -9,7 +9,7 @@ "ioc", "inversion of control" ], - "version": "0.0.33", + "version": "0.0.34", "license": "MIT", "author": { "name": "Dan Kadera", diff --git a/core/cli/src/checker.ts b/core/cli/src/checker.ts index 6b6dbc4..ce26ba5 100644 --- a/core/cli/src/checker.ts +++ b/core/cli/src/checker.ts @@ -14,7 +14,7 @@ export class Checker { removeExtraneousImplicitRegistrations(): void { for (const def of this.registry.getDefinitions()) { - if (!def.explicit && this.registry.getIdsByType(def.type).filter((id) => id !== def.id)) { + if (!def.explicit && this.registry.getIdsByType(def.type).filter((id) => id !== def.id).length) { this.registry.unregister(def.id); } }