Nx
Enterprise
Nx
fix(core): prevent duplicate nx cloud logs from global and local nx invocations (#31641) ## Current Behavior When Nx is invoked from a global install, both the global and local versions register process exit handlers that flush captured logs. This causes Nx Cloud logs to be displayed twice - once from the global installation and once from the local installation. ## Expected Behavior Only the local Nx installation should handle log flushing, preventing duplicate log output. The process exit handler is moved from the global entry point (nx.ts) to the local entry point (init-local.ts) so that log flushing only occurs once. ## Related Issue(s) This change requires users to update their globally installed Nx to fully resolve the duplicate logging issue, as the fix is now in the local version that gets invoked.
nx-cloud record -- nx format:check
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
nx-cloud record -- nx format:check
Click to copy
Linux
4 CPU cores
read-write
access token used
29b14b1b
master