angular/packages
Paul Gschwendtner 22a0e54ac4 fix(compiler-cli): support relative imports to symbols outside rootDir (#60555)
By default, the compiler-cli uses the relative import strategy when
there is no `rootDir` or `rootDirs`. This is expected as everything is
assumed to be somehow reachable through relative imports.

With `rootDirs` that allow for a "virtual file system"-like environment,
the compiler is not necessarily able to always construct proper relative
imports. The compiler includes the `LogicalProjectStrategy` for this
reason. This strategy is able to respect `rootDirs` to construct
relative paths when possible.

This logic currently accidentally triggers when there is a `rootDir`
set. This option is not to be confused with the virtual directory
option called `rootDirs`. The compiler currently confuses this and
accidentally enters this mode when there is just a `rootDir`— breaking
in monorepos that imports can point outside the `rootDir` to e.g. other
compilation unit's `.d.ts` (which is valid; just not `.ts` sources can
live outside the root dir).

This is necessary for our Bazel toolchain migration.

PR Close #60555
2025-03-26 20:45:56 -07:00
..
animations docs: fix all brokens links on the API pages (#59162) 2025-03-04 20:07:24 +00:00
bazel feat(bazel): support bundling .d.ts with code splitting (#60321) (#60332) 2025-03-11 15:33:05 -07:00
benchpress fix(benchpress): Ensure future-proof correct initialization order (#60025) 2025-02-20 11:21:55 -05:00
common refactor(http): replace overriden method with a ts declare (#60278) 2025-03-12 12:27:48 -07:00
compiler refactor: remove peer dependency on core from compiler (#60437) 2025-03-18 18:15:08 +01:00
compiler-cli fix(compiler-cli): support relative imports to symbols outside rootDir (#60555) 2025-03-26 20:45:56 -07:00
core refactor(core): simplify signature of listenToDirectiveOutput (#60514) (#60547) 2025-03-26 20:43:13 -07:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements refactor(core): extract dirty and markForRefresh from the private ViewRef. (#59122) 2025-03-04 22:05:41 +00:00
examples refactor(core): Remove the optional flag from Injector and all casts. (#60154) 2025-03-05 13:44:00 -08:00
forms docs: Correct comments for FormControl (#58352) 2025-03-06 10:36:47 -08:00
language-service refactor(language-service): convert scripts within packages/language-service to relative imports (#60540) 2025-03-26 20:40:02 -07:00
localize refactor(localize): convert scripts within packages/localize to relative imports (#60540) 2025-03-26 20:40:02 -07:00
misc/angular-in-memory-web-api docs: fix spelling of "set up" (#58362) 2025-02-03 13:50:49 -08:00
platform-browser fix(platform-browser): ensure platformBrowserTesting includes platformBrowser providers (#60480) 2025-03-20 12:33:13 -07:00
platform-browser-dynamic fix(platform-browser): ensure platformBrowserTesting includes platformBrowser providers (#60480) 2025-03-20 12:33:13 -07:00
platform-server fix(platform-browser): ensure platformBrowserTesting includes platformBrowser providers (#60480) 2025-03-20 12:33:13 -07:00
private/testing docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
router refactor(router): Clean up the transition subject (#60357) 2025-03-14 11:16:15 +01:00
service-worker refactor(service-worker): convert scripts within packages/service-worker to relative imports (#60238) 2025-03-26 20:35:11 -07:00
ssr refactor(core): add REQUEST, RESPONSE_INIT and REQUEST_CONTEXT tokens (#58669) 2024-11-14 14:21:21 -08:00
upgrade refactor(upgrade): convert scripts within packages/upgrade to relative imports (#60238) 2025-03-26 20:35:12 -07:00
zone.js docs(zone.js): update NON-STANDARD-APIS.md (#58098) 2025-03-05 17:30:43 +00:00
BUILD.bazel docs(core): remove redundant reference-manifests handwritten entries (#59169) 2024-12-12 17:29:22 -08:00
circular-deps-test.conf.js build: remove circular deps goldens (#60021) 2025-02-19 21:01:32 +00:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update license year (#59883) 2025-03-04 19:36:48 +00:00
README.md docs: fix links to docs (#57391) 2024-08-19 09:20:15 -07:00
system.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tsconfig-build.json build: remove usages of useDefineForClassFields: false (#58297) 2024-10-28 12:26:05 -07:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig-tsec-base.json refactor(core): throw an error when hydration marker is missing from DOM (#51170) 2023-08-04 11:31:49 -04:00
tsconfig.json feat(language-service): add code reactoring action to migrate @Input to signal-input (#57214) 2024-08-29 07:50:41 -07:00
tsec-exemption.json
types.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT