@rxap/plugin-utilities
Version:
Provides utility functions for Nx plugins, such as retrieving project dependencies, determining output paths, and interacting with package.json files. It simplifies common tasks within Nx executors and generators. This package helps streamline plugin deve
12 lines (11 loc) • 586 B
TypeScript
import { ExecutorContext } from '@nx/devkit';
/**
* Get the direct package dependencies for the project.
*
* The direct package dependencies are the dependent projects that are directly referenced by the project.
*
* @param context
* @param projectName
*/
export declare function getDirectPackageDependenciesForProject(context: ExecutorContext, projectName?: string): Record<string, string>;
export declare function getDirectPackageDependenciesForProjectWihRetry(context: ExecutorContext, projectName?: string, retries?: number, sleep?: number): Promise<Record<string, string>>;