@nestjs-mod/common
Version:
A collection of utilities for unifying NestJS applications and modules
31 lines (30 loc) • 1.55 kB
TypeScript
import { ProjectUtilsConfiguration } from '../project-utils.configuration';
import { JSONSchemaForNxProjects } from '../project-utils.types';
import { ApplicationPackageJsonService } from './application-package-json.service';
import { DotEnvService } from './dot-env.service';
import { PackageJsonService } from './package-json.service';
export declare class NxProjectJsonService {
private readonly projectUtilsConfiguration;
private readonly applicationPackageJsonService;
private readonly packageJsonService;
private readonly dotEnvService;
constructor(projectUtilsConfiguration: ProjectUtilsConfiguration, applicationPackageJsonService: ApplicationPackageJsonService, packageJsonService: PackageJsonService, dotEnvService: DotEnvService);
getNxProjectJsonFilePath(): string | undefined;
addRunCommands(
/**
* Command lines for append
*/
lines: string[],
/**
* Name of the target where you need to add it; if it does not exist, it will be created automatically
*/
targetName?: string,
/**
* A line to check whether to add, by default it searches for each command to add
*/
searchCommand?: string, customNxProjectJsonFile?: string): void;
readFile(nxProjectJsonFile: string): JSONSchemaForNxProjects | undefined;
writeFile(nxProjectJsonFile: string, data: JSONSchemaForNxProjects): void;
read(customNxProjectJsonFile?: string): JSONSchemaForNxProjects | undefined;
write(data: JSONSchemaForNxProjects, customNxProjectJsonFile?: string): void;
}