Notably Polite Mariner

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

    4.0.0 • 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

    // Type definitions for @lerna/project 4.0
    // 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

    Credits

    These definitions were written by DonMahallem.

    Keywords

    none

    Install

    npm i @types/lerna__project

    DownloadsWeekly Downloads

    1,317

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    5.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • types