Files
Jason Jean 6598a0bb29 chore(core): rename supportsOptionalUpdates to supportsOptionalMigrations (#35924)
## Current Behavior

The migration config flag that opts a package into `nx migrate
--include`
(optional migrations) is named `supportsOptionalUpdates`. It is read
from a
package's `nx-migrations` / `ng-update` config and threaded through the
migrate
command. The name says "updates", but the feature it gates is optional
**migrations**, so the name is misleading.

## Expected Behavior

The flag is renamed to `supportsOptionalMigrations` everywhere it is
defined and
consumed:

- The `NxMigrationsConfiguration` / `NxPackageJson` type field and the
`readNxMigrateConfig` parsing in `packages/nx/src/utils/package-json.ts`
- The `--include` gate and related plumbing in
  `packages/nx/src/command-line/migrate/migrate.ts`
- The `"supportsOptionalMigrations": true` flag in every first-party
plugin's
  `package.json`
- The associated unit tests

This is a purely internal rename — the flag is both defined and consumed
inside
the nx repo, so no backwards-compat shim is required. Behavior is
unchanged.

## Related Issue(s)

N/A — internal naming cleanup.

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-06-10 11:11:15 -04:00

106 lines
2.3 KiB
JSON

{
"name": "@nx/node",
"version": "0.0.1",
"private": false,
"type": "commonjs",
"files": [
"dist",
"!dist/tsconfig.tsbuildinfo",
"migrations.json",
"generators.json"
],
"description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
"repository": {
"type": "git",
"url": "https://github.com/nrwl/nx.git",
"directory": "packages/node"
},
"keywords": [
"Monorepo",
"Node",
"Nest",
"Jest",
"Cypress",
"CLI",
"Backend"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"utils": [
"dist/utils.d.ts"
],
"internal": [
"dist/internal.d.ts"
]
}
},
"author": "Victor Savkin",
"license": "MIT",
"bugs": {
"url": "https://github.com/nrwl/nx/issues"
},
"homepage": "https://nx.dev",
"generators": "./generators.json",
"ng-update": {
"requirements": {},
"migrations": "./migrations.json",
"supportsOptionalMigrations": true
},
"exports": {
".": {
"@nx/nx-source": "./index.ts",
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./package.json": "./package.json",
"./migrations.json": "./migrations.json",
"./generators.json": "./generators.json",
"./utils": {
"@nx/nx-source": "./utils.ts",
"types": "./dist/utils.d.ts",
"default": "./dist/utils.js"
},
"./internal": {
"@nx/nx-source": "./internal.ts",
"types": "./dist/internal.d.ts",
"default": "./dist/internal.js"
}
},
"dependencies": {
"tslib": "catalog:typescript",
"@nx/devkit": "workspace:*",
"@nx/jest": "workspace:*",
"@nx/js": "workspace:*",
"@nx/eslint": "workspace:*",
"@nx/docker": "workspace:*",
"semver": "catalog:",
"tcp-port-used": "^1.0.2",
"kill-port": "^1.6.1"
},
"devDependencies": {
"nx": "workspace:*",
"@nx/webpack": "workspace:*"
},
"peerDependencies": {
"express": ">=4.0.0 <6.0.0",
"koa": ">=2.0.0 <4.0.0",
"fastify": ">=4.0.0 <6.0.0"
},
"peerDependenciesMeta": {
"express": {
"optional": true
},
"koa": {
"optional": true
},
"fastify": {
"optional": true
}
},
"publishConfig": {
"access": "public"
}
}