UNPKG

@wroud/di-tools-codemod

Version:

@wroud/di-tools-codemod is a codemod utility that automates the migration of your codebase from Inversify to @wroud/di. It streamlines the transformation process, allowing for effortless and customizable transitions through configuration support.

10 lines 416 B
import { Decorator } from "jscodeshift"; export function isInjectableDecorator(packages, decorator) { if (decorator.expression.type !== "CallExpression" || decorator.expression.callee.type !== "Identifier") { return false; } const name = decorator.expression.callee.name; return packages.some((p) => p.injectableDecorator === name); } //# sourceMappingURL=isInjectableDecorator.js.map