PackageRoles.detectRoleFromPackage()
Home > @backstage/cli-node
> PackageRoles
> detectRoleFromPackage
Attempt to detect the role of a package from its package.json.
Signature:
static detectRoleFromPackage(pkgJson: unknown): PackageRole | undefined;
Parameters
Parameter |
Type |
Description |
---|---|---|
pkgJson |
unknown |
PackageRole | undefined