Workspace
Deprecated
use ProjectsConfigurations or NxJsonConfiguration
Hierarchy
Section titled “Hierarchy”-
↳
Workspace
Table of contents
Section titled “Table of contents”Properties
Section titled “Properties”- $schema
- affected
- cacheDirectory
- cli
- defaultBase
- defaultProject
- extends
- generators
- implicitDependencies
- installation
- maxCacheSize
- namedInputs
- neverConnectToCloud
- nxCloudAccessToken
- nxCloudEncryptionKey
- nxCloudId
- nxCloudUrl
- parallel
- plugins
- pluginsConfig
- projects
- release
- sync
- targetDefaults
- tasksRunnerOptions
- tui
- useDaemonProcess
- useInferencePlugins
- version
- workspaceLayout
Properties
Section titled “Properties”$schema
Section titled “$schema”• Optional $schema: string
Inherited from
Section titled “Inherited from”affected
Section titled “affected”• Optional affected: NxAffectedConfig
Default options for nx affected
Deprecated
use defaultBase instead. For more information see https://nx.dev/deprecated/affected-config#affected-config
Inherited from
Section titled “Inherited from”cacheDirectory
Section titled “cacheDirectory”• Optional cacheDirectory: string
Changes the directory used by Nx to store its cache.
Inherited from
Section titled “Inherited from”NxJsonConfiguration.cacheDirectory
• Optional cli: Object
Default generator collection. It is used when no collection is provided.
Type declaration
Section titled “Type declaration”| Name | Type |
|---|---|
defaultProjectName? | string |
packageManager? | PackageManager |
Inherited from
Section titled “Inherited from”defaultBase
Section titled “defaultBase”• Optional defaultBase: string
Default value for —base used by nx affected and nx format.
Inherited from
Section titled “Inherited from”NxJsonConfiguration.defaultBase
defaultProject
Section titled “defaultProject”• Optional defaultProject: string
Default project. When project isn’t provided, the default project will be used. Convenient for small workspaces with one main application.
Inherited from
Section titled “Inherited from”NxJsonConfiguration.defaultProject
extends
Section titled “extends”• Optional extends: string
Optional (additional) Nx.json configuration file which becomes a base for this one
Inherited from
Section titled “Inherited from”generators
Section titled “generators”• Optional generators: Object
List of default values used by generators.
These defaults are global. They are used when no other defaults are configured.
Example:
{ "@nx/react": { "library": { "style": "scss" } }}Index signature
Section titled “Index signature”▪ [collectionName: string]: { [generatorName: string]: any; }
Inherited from
Section titled “Inherited from”NxJsonConfiguration.generators
implicitDependencies
Section titled “implicitDependencies”• Optional implicitDependencies: ImplicitDependencyEntry<string[] | "*">
Map of files to projects that implicitly depend on them
Deprecated
use namedInputs instead. For more information see https://nx.dev/deprecated/global-implicit-dependencies#global-implicit-dependencies
Inherited from
Section titled “Inherited from”NxJsonConfiguration.implicitDependencies
installation
Section titled “installation”• Optional installation: NxInstallationConfiguration
Configures the Nx installation for a repo. Useful for maintaining a separate set of dependencies for Nx + Plugins compared to the base package.json, but also useful for workspaces that don’t have a root package.json + node_modules.
Inherited from
Section titled “Inherited from”NxJsonConfiguration.installation
maxCacheSize
Section titled “maxCacheSize”• Optional maxCacheSize: string
Sets the maximum size of the local cache. Accepts a number followed by a unit (e.g. 100MB). Accepted units are B, KB, MB, and GB.
Inherited from
Section titled “Inherited from”NxJsonConfiguration.maxCacheSize
namedInputs
Section titled “namedInputs”• Optional namedInputs: Object
Named inputs targets can refer to reduce duplication
Index signature
Section titled “Index signature”▪ [inputName: string]: (string | InputDefinition)[]
Inherited from
Section titled “Inherited from”NxJsonConfiguration.namedInputs
neverConnectToCloud
Section titled “neverConnectToCloud”• Optional neverConnectToCloud: boolean
Set this to true to disable connection to Nx Cloud
Inherited from
Section titled “Inherited from”NxJsonConfiguration.neverConnectToCloud
nxCloudAccessToken
Section titled “nxCloudAccessToken”• Optional nxCloudAccessToken: string
If specified Nx will use nx-cloud by default with the given token. To use a different runner that accepts an access token, define it in tasksRunnerOptions
Inherited from
Section titled “Inherited from”NxJsonConfiguration.nxCloudAccessToken
nxCloudEncryptionKey
Section titled “nxCloudEncryptionKey”• Optional nxCloudEncryptionKey: string
Specifies the encryption key used to encrypt artifacts data before sending it to nx cloud.
Inherited from
Section titled “Inherited from”NxJsonConfiguration.nxCloudEncryptionKey
nxCloudId
Section titled “nxCloudId”• Optional nxCloudId: string
If specified Nx will use nx-cloud by default with the given cloud id. To use a different runner that accepts a cloud id, define it in tasksRunnerOptions
Inherited from
Section titled “Inherited from”nxCloudUrl
Section titled “nxCloudUrl”• Optional nxCloudUrl: string
Specifies the url pointing to an instance of nx cloud. Used for remote caching and displaying run links.
Inherited from
Section titled “Inherited from”NxJsonConfiguration.nxCloudUrl
parallel
Section titled “parallel”• Optional parallel: number
Specifies how many tasks can be run in parallel.
Inherited from
Section titled “Inherited from”plugins
Section titled “plugins”• Optional plugins: PluginConfiguration[]
Plugins for extending the project graph
Inherited from
Section titled “Inherited from”pluginsConfig
Section titled “pluginsConfig”• Optional pluginsConfig: Record<string, Record<string, unknown>>
Configuration for Nx Plugins
Inherited from
Section titled “Inherited from”NxJsonConfiguration.pluginsConfig
projects
Section titled “projects”• projects: Record<string, ProjectConfiguration>
Projects’ projects
Overrides
Section titled “Overrides”ProjectsConfigurations.projects
release
Section titled “release”• Optional release: NxReleaseConfiguration
Configuration for nx release (versioning and publishing of applications and libraries)
Inherited from
Section titled “Inherited from”• Optional sync: NxSyncConfiguration
Configuration for the nx sync command.
Inherited from
Section titled “Inherited from”targetDefaults
Section titled “targetDefaults”• Optional targetDefaults: TargetDefaults
Dependencies between different target names across all projects
Inherited from
Section titled “Inherited from”NxJsonConfiguration.targetDefaults
tasksRunnerOptions
Section titled “tasksRunnerOptions”• Optional tasksRunnerOptions: Object
Deprecated
Custom task runners will be replaced by a new API starting with Nx 21. More info: https://nx.dev/deprecated/custom-tasks-runner Available Task Runners for Nx to use
Index signature
Section titled “Index signature”▪ [tasksRunnerName: string]: { options?: any ; runner?: string }
Inherited from
Section titled “Inherited from”NxJsonConfiguration.tasksRunnerOptions
• Optional tui: Object
Settings for the Nx Terminal User Interface (TUI)
Type declaration
Section titled “Type declaration”| Name | Type | Description |
|---|---|---|
autoExit? | number | boolean | Whether to exit the TUI automatically after all tasks finish. - If set to true, the TUI will exit immediately. - If set to false the TUI will not automatically exit. - If set to a number, an interruptible countdown popup will be shown for that many seconds before the TUI exits. |
enabled? | boolean | Whether to enable the TUI whenever possible (based on the current environment and terminal). |
suppressHints? | boolean | Whether to suppress hint popups that provide guidance for unhandled keys. Defaults to false (hints are shown). |
Inherited from
Section titled “Inherited from”useDaemonProcess
Section titled “useDaemonProcess”• Optional useDaemonProcess: boolean
Set this to false to disable the daemon.
Inherited from
Section titled “Inherited from”NxJsonConfiguration.useDaemonProcess
useInferencePlugins
Section titled “useInferencePlugins”• Optional useInferencePlugins: boolean
Set this to false to disable adding inference plugins when generating new projects
Inherited from
Section titled “Inherited from”NxJsonConfiguration.useInferencePlugins
version
Section titled “version”• version: number
Version of the configuration format
Inherited from
Section titled “Inherited from”ProjectsConfigurations.version
workspaceLayout
Section titled “workspaceLayout”• Optional workspaceLayout: Object
Where new apps + libs should be placed
Type declaration
Section titled “Type declaration”| Name | Type |
|---|---|
appsDir? | string |
libsDir? | string |