UNPKG

npm-ws-tools

Version:

Command line tools for working with npm workspaces. Includes version bumping and dependencies version update

25 lines 827 B
export declare function findClosestPackage(dir: string): string | null; export declare class Package { content: Record<string, any>; tab: number; nlAtEof: boolean; parent?: Package; file: string; isRoot: boolean; isPnpmRoot: boolean; projects?: Package[]; constructor(file: string, content: Record<string, any>, tab?: number, nlAtEof?: boolean); get dir(): string; get name(): string; set name(value: string); get version(): string; set version(value: string); excludeProjects(prefix: string | undefined): this; _resolveWorkspaces(projectPaths: string[]): Package[]; loadParent(): Package; loadRoot(): Package; save(): void; static load(file: string): Package; static findClosest(cwd?: string): Package; } //# sourceMappingURL=Package.d.ts.map