DEV Community

Cover image for 🍒 Cherry-Picked Nx v19.1 Updates
jogelin
jogelin

Posted on • Originally published at jgelin.Medium

1

🍒 Cherry-Picked Nx v19.1 Updates

Image description

[🌊 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
        ...
      }
    },
...
Enter fullscreen mode Exit fullscreen mode

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 ","
Enter fullscreen mode Exit fullscreen mode

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": "..."
    },
  },
  ...
}
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Image description

[💫 Upgrades]

Support Angular 18

Image description


Looking for some help? 🤝Connect with me on Twitter LinkedIn Github


Related

Image description

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more