5.1.2 • Published 2 years ago
@types/lerna__project v5.1.2
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
// Type definitions for @lerna/project 5.1
// Project: https://github.com/lerna/lerna/tree/main/core/project
// Definitions by: DonMahallem <https://github.com/donmahallem>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Wed, 08 Jun 2022 16:31:38 GMT
- Dependencies: @types/lerna__package
- Global values: none
Credits
These definitions were written by DonMahallem.