UNPKG

@nestjs/schematics

Version:

The generators behind the Nest CLI: scaffold NestJS applications, libraries, modules, controllers, services and CRUD resources.

17 lines (16 loc) • 669 B
import { Tree } from '@angular-devkit/schematics'; export declare enum NodeDependencyType { Default = "dependencies", Dev = "devDependencies", Peer = "peerDependencies", Optional = "optionalDependencies" } export interface NodeDependency { type: NodeDependencyType; name: string; version: string; overwrite?: boolean; } export declare function addPackageJsonDependency(tree: Tree, dependency: NodeDependency, pkgJsonPath?: string): void; export declare function getPackageJsonDependency(tree: Tree, name: string, pkgJsonPath?: string): NodeDependency | null; export declare function detectPackageManager(tree: Tree): string | undefined;