Nx
Enterprise
Nx
fix(core): handle "." and absolute paths as workspace name in CNW ## Current Behavior CNW rejects "." and absolute paths (e.g. `/tmp/acme`) as workspace names, causing over 1,300 INVALID_WORKSPACE_NAME and DIRECTORY_EXISTS errors per month. This is the #1 input validation error for both AI agents and humans. ## Expected Behavior - "." and "./" in a non-empty directory suggests using `nx init` instead - "." and "./" in an empty directory resolves to the directory's basename and creates the workspace in-place - Absolute paths like `/tmp/acme` extract the basename as the workspace name and create the workspace at the specified location The `workingDir` override is threaded through `CreateWorkspaceOptions` to downstream functions (`createWorkspace`, `createEmptyWorkspace`, `createPreset`, `cloneTemplate`) without mutating `process.cwd()`. ## Related Issue(s) Fixes NXC-4172
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
17401930
35083