@nx/js:migrations | Nx

Migration References

Here is a list of all migrations available for this package.

  • 21.5.x

  • migrate-development-custom-condition

    Migrate the legacy 'development' custom condition to a workspace-unique custom condition name.

    Version: 21.5.0-beta.2

    Migrate development custom condition to unique workspace-specific name

    Replace the TypeScript development custom condition with a unique workspace-specific name to avoid conflicts when consuming packages in other workspaces.

    Examples

    The migration will update the custom condition name in both tsconfig.base.json and all workspace package.json files that use the development custom condition:

    tsconfig.base.json
    1{ 2 "compilerOptions": { 3 "customConditions": ["development"] 4 } 5} 6

    The migration also updates package.json files that use the development condition in their exports field and point to TypeScript files:

    libs/my-lib/package.json
    1{ 2 "name": "@myorg/my-lib", 3 "exports": { 4 ".": { 5 "development": "./src/index.ts", 6 "default": "./dist/index.js" 7 } 8 } 9} 10

    If the custom condition is not set to ["development"] or the package.json's exports field doesn't point to TypeScript files, the migration will not modify the configuration:

    libs/my-lib/package.json
    1{ 2 "name": "@myorg/my-lib", 3 "exports": { 4 ".": { 5 "development": "./dist/index.js", 6 "default": "./dist/index.js" 7 } 8 } 9} 10

    21.5.0-package-updates

    Version: 21.5.0-beta.2

    Requires

    NameVersion
    typescript>=5.8.0 <5.9.0

    Packages

    NameVersionAlways Add to package.json
    typescript~5.9.2Update only
  • 21.2.x

  • 21.2.0-package-updates

    Version: 21.2.0-beta.0

    Requires

    NameVersion
    typescript>=5.7.0 <5.8.0

    Packages

    NameVersionAlways Add to package.json
    typescript~5.8.2Update only
  • 20.7.x

  • 20.7.1-beta.0-package-updates

    Version: 20.7.1-beta.0

    Packages

    NameVersionAlways Add to package.json
    @swc/cli~0.6.0Update only
  • 20.5.x

  • 20.5.0-package-updates

    Version: 20.5.0-beta.3

    Packages

    NameVersionAlways Add to package.json
    verdaccio^6.0.5Update only
  • 20.4.x

  • 20.4.0-package-updates

    Version: 20.4.0-beta.1

    Requires

    NameVersion
    typescript>=5.6.0 <5.7.0

    Packages

    NameVersionAlways Add to package.json
    typescript~5.7.2Update only
  • 20.2.x

  • 20.2.0-package-updates

    Version: 20.2.0-beta.5

    Requires

    NameVersion
    typescript>=5.5.0 <5.6.0

    Packages

    NameVersionAlways Add to package.json
    typescript~5.6.2Update only
  • 19.5.x

  • 19.5.1-package-updates

    Version: 19.5.0-beta.1

    Requires

    NameVersion
    typescript>=5.4.0 <5.5.0

    Packages

    NameVersionAlways Add to package.json
    typescript~5.5.2Update only
  • 19.2.x

  • 19.2.0-package-updates

    Version: 19.2.0-beta.0

    Packages

    NameVersionAlways Add to package.json
    @swc/core~1.5.7Update only
    @swc/helpers~0.5.11Update only
    @swc-node/register~1.9.1Update only
  • 19.0.x

  • 19.0.0-package-updates

    Version: 19.0.0-beta.0

    Packages

    NameVersionAlways Add to package.json
    @swc/cli~0.3.12Update only