mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The `fs.relative()` method assumed that the file-system is a single tree, which is not the case in Windows, where you can have multiple drives, e.g. `C:`, `D:` etc. This commit changes `fs.relative()` so that it no longer forces the result to be a `PathSegment` and then flows that refactoring through the rest of the compiler-cli (and ngcc). The main difference is that now, in some cases, we needed to check whether the result is "rooted", i.e an `AbsoluteFsPath`, rather than a `PathSegment`, before using it. Fixes #36777 PR Close #37959 |
||
|---|---|---|
| .. | ||
| cleaning | ||
| file_writer.ts | ||
| in_place_file_writer.ts | ||
| new_entry_point_file_writer.ts | ||
| package_json_updater.ts | ||