@types/lerna__project
TypeScript icon, indicating that this package has built-in type declarations

5.1.2 • Public • Published

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

Credits

These definitions were written by DonMahallem.

Dependents (1)

Package Sidebar

Install

npm i @types/lerna__project

Weekly Downloads

3,196

Version

5.1.2

License

MIT

Unpacked Size

5.2 kB

Total Files

5

Last publish

Collaborators

  • types