angular/adev/tsconfig.app.json
Paul Gschwendtner 7fc14d7f26 build: fix adev first party linking and re-enable tests (#60825)
This commit attempts to finally fix the long-standing first-party
package linking issue with the rather tricky `rules_nodejs` toolchain.

I've verified that no version of e.g. `@angular/core` ends up in the
Bazel sandbox. This is achieved by also filtering transitive Angular
deps for first-party linked packages. e.g. `@angular/docs`.

In addition, `@angular/docs` accidentally ended up bundling parts of
Angular core because it relied on an entry-point that was not part of
the "well known externals". As part of the ongoing `ng_package`
update/rewrite, we should look into disabling bundling of ANY external
dependency/module. This is possible because we use relative imports
inside APF packages as of recently!

This commit should allow us to develop and continue new compiler
features, without having to temporarily (or longer) disable all
`angular.dev` unit tests!

Fixes #54858.

PR Close #60825
2025-04-10 14:19:52 +00:00

14 lines
531 B
JSON

/* To learn more about this file see: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/app",
"types": ["node", "dom-navigation"],
// Path mappings can result in two versions of e.g. `@angular/core`.
// core may be linked in `adev/node_modules`, but also ESBuild does
// respect the tsconfig path mappings.
"paths": {}
},
"files": ["src/main.ts", "src/main.server.ts"],
"include": ["src/**/*.d.ts"]
}