information about a package in a workspace

interface WorkspacePackage {
    json: PackageJson;
    packageJsonPath: string;
    path: string;
    root: boolean;
}

Properties

package.json of the package

packageJsonPath: string

path to the package.json file (note that it might not be a .json file)

path: string

path to the package root

root: boolean

whether this is the root package