Leosvel Pérez Espinosa cbf80c18d1
feat(misc): add useProjectJson flag to project generators (#30319)
Add a `useProjectJson` option to project generators to allow users to
opt in/out of generating the Nx configuration in a `project.json` file.

## Current Behavior

## Expected Behavior

## Related Issue(s)

Fixes #
2025-03-11 12:12:03 -04:00

26 lines
652 B
TypeScript

import type { Linter, LinterType } from '@nx/eslint';
export interface ApplicationGeneratorOptions {
directory: string;
name?: string;
frontendProject?: string;
linter?: Linter | LinterType;
skipFormat?: boolean;
skipPackageJson?: boolean;
standaloneConfig?: boolean;
tags?: string;
unitTestRunner?: 'jest' | 'none';
e2eTestRunner?: 'jest' | 'none';
setParserOptionsProject?: boolean;
rootProject?: boolean;
strict?: boolean;
addPlugin?: boolean;
useTsSolution?: boolean;
useProjectJson?: boolean;
}
interface NormalizedOptions extends ApplicationGeneratorOptions {
appProjectName: string;
appProjectRoot: Path;
}