Installation
npm install --save @types/lerna__project
Summary
This package contains type definitions for @lerna/project (https://github.com/lerna/lerna/tree/main/core/project).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lerna__project.
index.d.ts
import { Package } from "@lerna/package";
export interface ProjectConfig {
packages: string[];
/** if Yarn workspaces are being used */
useWorkspaces: boolean;
/**
* Root Version
*/
version: string;
}
/**
* A representation of the entire project managed by Lerna.
*
* Wherever the lerna.json file is located, that is the project root.
* All package globs are rooted from this location.
*/
export class Project {
/**
* @param cwd defaults to process.cwd()
*/
static getPackages(cwd?: string): Promise<Package[]>;
/**
* @param cwd defaults to process.cwd()
*/
static getPackagesSync(cwd?: string): Package[];
constructor(cwd?: string);
get version(): string;
set version(val: string);
get packageConfigs(): string[];
get packageParentDirs(): string[];
get manifest(): Package;
get licensePath(): string;
getPackages(): Promise<Package[]>;
getPackagesSync(): Package[];
getPackageLicensePaths(): string[];
isIndependent(): boolean;
rootPath: string;
rootConfigLocation: string;
config: ProjectConfig;
}
export const getPackages: typeof Project.getPackages;
export const getPackagesSync: typeof Project.getPackagesSync;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/lerna__package
Credits
These definitions were written by DonMahallem.