Home / Companies / Nx / Blog / Post Details
Content Deep Dive

Nx 14.4 — Inputs, optional npm scope, project graph cache directory and more!

Blog post from Nx

Post Details
Company
Nx
Date Published
Author
Juri Strumpflohner
Word Count
1,118
Language
English
Hacker News Points
-
Summary

The recent updates to Nx include several enhancements aimed at reducing configuration duplication and improving performance. A key change is the renaming of "targetDependencies" to "targetDefaults," which now allows users to define sensible defaults for project configurations centrally, streamlining processes like building and testing. The update introduces a more concise syntax for dependency management, enabling efficient task scheduling by building project dependencies automatically. Enhancements also include the addition of input patterns to improve cache hits by avoiding invalidation when irrelevant files change, and the introduction of named inputs for reusability across multiple targets. This release further optimizes workspace configuration calculations by offloading them to the Nx Daemon, improving command execution time in large workspaces. Additionally, a new environment variable, NX_PROJECT_GRAPH_CACHE_DIRECTORY, is introduced to manage project graph cache storage, and updates to Angular support include generating Storybook stories for standalone components and upgrading to @angular-eslint version 14. Users are encouraged to update their Nx workspaces to the latest version using specific commands and to stay informed about upcoming features through social media and newsletters.