Skip to content

Project configuration

@note: when adding properties here add them to allowedProjectExtensions in adapter/compat.ts

Optional generators: Object

List of default values used by generators.

These defaults are project specific.

Example:

{
"@nx/react": {
"library": {
"style": "scss"
}
}
}

▪ [collectionName: string]: { [generatorName: string]: any; }


Optional implicitDependencies: string[]

List of projects which are added as a dependency


Optional metadata: ProjectMetadata

Metadata about the project


Optional name: string

Project’s name. Optional if specified in workspace.json


Optional namedInputs: Object

Named inputs targets can refer to reduce duplication

▪ [inputName: string]: (string | InputDefinition)[]


Optional projectType: ProjectType

Project type


Optional release: Object

Project specific configuration for nx release

NameType
docker?true | NxReleaseDockerConfiguration
version?Pick<NxReleaseVersionConfiguration, "versionActions" | "versionActionsOptions" | "manifestRootsToUpdate" | "currentVersionResolver" | "currentVersionResolverMetadata" | "fallbackCurrentVersionResolver" | "versionPrefix" | "preserveLocalDependencyProtocols">

root: string

Project’s location relative to the root of the workspace


Optional sourceRoot: string

The location of project’s sources relative to the root of the workspace


Optional tags: string[]

List of tags used by enforce-module-boundaries / project graph


Optional targets: Object

Project’s targets

▪ [targetName: string]: TargetConfiguration