All writing

Cherry-Picked Nx v19.1 Updates

Exploring My Selected Features from Nx Releases

By Jonathan Gelin, . 1 min read.

GitHub Release 19.1.0 ยท nrwl/nx

[๐ŸŒŠ Nx Core]

Typescript declarations support for esbuild libraries

You can see two new properties in the @nx/esbuild:esbuild executor:

...
    "build": {
      "executor": "@nx/esbuild:esbuild",
      "options": {
        ...
        "declaration": true,
        "declarationRootDir": "libs/my-lib/src", // root by default
        ...
      }
    },
...

Generate declaration (*.d.ts) files for every TypeScript or JavaScript file inside your project. Should be used for libraries that are published to an npm repository.

New separator option for the result of the nx show command

https://nx.dev/nx-api/nx/documents/show

nx show projects --affected --type=app --sep ","

Target another executor in schema definitions

Angular 18 introduced a way to map one builder to another one. It is also now possible to use that approach with Nx in the executors.json:

{
  "executors": {
    // New
    "build": "@org/my-plugin:build",

    // Current
    "serve": { 
      "implementation": "...",
      "schema": "...",
      "description": "..."
    },
  },
  ...
}

Support bun Package Manager!

First, install bun by following the documentation. Then you can generate a new Nx workspace by using:

bunx create-nx-workspace

[๐Ÿ’ซ Upgrades]

Support Angular 18

blog.angular.dev blog.angular.dev

Working on this in your organization?

I help engineering teams adopt AI coding agents at scale: the harness, the plugins and skills that teach your standards, and the telemetry that shows what works.

Jonathan Gelin AI harness engineer for developer experience, Nx Champion