PackageRoles.getRoleFromPackage()
Home > @backstage/cli-node
> PackageRoles
> getRoleFromPackage
Given package JSON data, get the package role.
Signature:
static getRoleFromPackage(pkgJson: unknown): PackageRole | undefined;
Parameters
Parameter |
Type |
Description |
---|---|---|
pkgJson |
unknown |
PackageRole | undefined