angular/packages/compiler-cli/ngcc/src/writing
Pete Bacon Darwin 6b311552f0 fix(compiler-cli): ensure file_system handles mixed Windows drives (#37959)
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
2020-07-13 12:05:21 -07:00
..
cleaning refactor(ngcc): rename EntryPoint#package to EntryPoint#packagePath (#37040) 2020-06-11 18:58:36 -07:00
file_writer.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
in_place_file_writer.ts docs(ngcc): add additional next steps to an error (#37672) 2020-06-25 11:37:43 -07:00
new_entry_point_file_writer.ts fix(compiler-cli): ensure file_system handles mixed Windows drives (#37959) 2020-07-13 12:05:21 -07:00
package_json_updater.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00