πŸ’ Cherry-Picked Nx v19.1 Updates

Exploring My Selected Features from Nx Releases

Jonathan Gelin
JavaScript in Plain English
3 min readMay 25, 2024

--

[🌊 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

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

Related

In Plain English πŸš€

Thank you for being a part of the In Plain English community! Before you go:

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Published in JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Written by Jonathan Gelin

Write & Share about SDLC/Architecture in Ts/Js, Nx, Angular, DevOps, XP, Micro Frontends, NodeJs, Cypress/Playwright, Storybook, Tailwind β€’ Based in πŸ‡ͺπŸ‡Ί

No responses yet

What are your thoughts?