angular/aio/tools/transforms/angular-base-package/services
George Kalpakas 3fdcf991c7 build(docs-infra): be able to resolve root-relative image URLs in getImageDimensions() (#46138)
Previously, `getImageDimensions()` would try to resolve image URLs
relative to the base path using `path.resolve()`. This resulted in
root-relative URLs (i.e. URLs starting with `/`) being treated as
absolute filesystem paths and thus resolving incorrectly
([example failure][1]).

This commit fixes it by using `.join()` instead, which is more
appropriate in this case. (Originally discussed [here][2].)

[1]: https://circleci.com/gh/angular/angular/1173150
[2]: https://github.com/angular/angular/pull/46134#issuecomment-1137191996

PR Close #46138
2022-05-26 11:25:07 -07:00
..
auto-link-filters fix(docs-infra): prevent automatic linking of 'json' (#44294) 2021-12-01 15:22:00 -08:00
copyFolder.js build(aio): move copyContentAssets processor to the base package 2017-05-01 15:52:51 -07:00
getImageDimensions.js build(docs-infra): be able to resolve root-relative image URLs in getImageDimensions() (#46138) 2022-05-26 11:25:07 -07:00
getPreviousMajorVersions.js build(docs-infra): compute previous version list (#39689) 2020-11-18 09:13:20 -08:00
getPreviousMajorVersions.spec.js build: update several dependencies (#41434) 2021-04-12 16:46:29 -07:00