The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.
nx
Package reference
Here is a list of all the executors, generators and migrations available from this package.
Guides
Executors
An executor that does nothing
Run any custom commands with Nx.
Run an NPM script using Nx.
Generators
Connect a workspace to Nx Cloud
Migrations
21.0.x
20.0.x
19.2.x
18.1.x
18.0.x
17.3.x
17.0.x
remove-legacy-cache
Removes the legacy cache configuration from nx.json
Use Legacy Cache
Removes useLegacyCache from nx.json as it is no longer functional in Nx 21
Sample Code Changes
1{
2 "targetDefaults": {},
3 "useLegacyCache": true
4}
5remove-custom-tasks-runner
Removes the legacy cache configuration from nx.json
Remove Custom Tasks Runners
Removes tasksRunnerOptions entries from nx.json that contain custom tasks runners. In Nx 21, custom tasks runners are no longer functional. See /deprecated/custom-tasks-runner for more information.
Sample Code Changes
Removes custom task runner configuration from nx.json.
1{
2 "targetDefaults": {},
3 "tasksRunnerOptions": {
4 "default": {
5 "runner": "custom-task-runner"
6 }
7 }
8}
9use-legacy-cache
Set `useLegacyCache` to true for migrating workspaces
Use Legacy Cache
Set useLegacyCache to true for migrating workspaces
Sample Code Changes
Add useLegacyCache to nx.json unless enableDbCache was set to true.
1{
2 "targetDefaults": {}
3}
4move-use-daemon-process
Migration for v20.0.0-beta.7
Move useDaemonProcess
Move the useDaemonProcess to the root of nx.json
Sample Code Changes
1{
2 "tasksRunnerOptions": {
3 "default": {
4 "options": {
5 "useDaemonProcess": false
6 }
7 }
8 }
9}
1019-2-4-set-project-name
Set project name in nx.json explicitly
19-2-2-update-nx-wrapper
Updates the nx wrapper.
19-2-0-move-graph-cache-directory
Updates the default workspace data directory to .nx/workspace-data
move-default-base-to-nx-json-root
Moves affected.defaultBase to defaultBase in `nx.json`
18.0.0-disable-adding-plugins-for-existing-workspaces
Updates nx.json to disabled adding plugins when generating projects in an existing Nx workspace
17.3.0-update-nx-wrapper
Updates the nx wrapper.
rm-default-collection-npm-scope
Migration for v17.0.0-rc.1
17.0.0-use-minimal-config-for-tasks-runner-options
Use minimal config for tasksRunnerOptions
17.0.0-move-cache-directory
Updates the default cache directory to .nx/cache
Sample Code Changes
Add .nx/cache to the .gitignore file.
1node_modules
2Add .nx/cache to the .prettierignore file.
1/dist
2