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

31 lines
811 B
TypeScript

import type { Linter, LinterType } from '@nx/eslint';
export interface Schema {
directory: string;
name?: string;
linter?: Linter | LinterType;
formatter?: 'none' | 'prettier';
skipFormat?: boolean;
unitTestRunner?: 'vitest' | 'none';
e2eTestRunner?: 'cypress' | 'playwright' | 'none';
tags?: string;
js?: boolean;
skipPackageJson?: boolean;
rootProject?: boolean;
setParserOptionsProject?: boolean;
style?: 'css' | 'scss' | 'less' | 'none';
nxCloudToken?: string;
useTsSolution?: boolean;
useProjectJson?: boolean;
}
export interface NormalizedSchema extends Omit<Schema, 'useTsSolution'> {
projectName: string;
appProjectRoot: string;
importPath: string;
e2eProjectName: string;
e2eProjectRoot: string;
parsedTags: string[];
isUsingTsSolutionConfig: boolean;
}