You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(@angular-devkit/schematics): handle non-existent paths in workspace-root containment
The previous WorkspaceRootHost resolved the workspace root with
realpathSync(getSystemPath(root)) in the constructor, which throws ENOENT
when the root directory does not exist yet — e.g. during `ng new`, which
creates the workspace — crashing the workflow.
Extract a resolveRealPath helper that walks up to the first existing
ancestor, resolves its real path, and re-appends the remaining
non-existent segments. Use it for both the workspace root and the
asserted target path, so containment works for not-yet-created files and
a not-yet-created root while still rejecting symlink escapes.
0 commit comments