mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
44 lines
1.3 KiB
JSON
44 lines
1.3 KiB
JSON
/* To learn more about this file see: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
{
|
|
"ts-node": {
|
|
"compilerOptions": {
|
|
"module": "commonjs"
|
|
}
|
|
},
|
|
"compileOnSave": false,
|
|
"compilerOptions": {
|
|
"outDir": "./dist/out-tsc",
|
|
"forceConsistentCasingInFileNames": true,
|
|
"strict": true,
|
|
"noImplicitOverride": true,
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"sourceMap": true,
|
|
"declaration": false,
|
|
"moduleResolution": "node",
|
|
"preserveSymlinks": true,
|
|
"importHelpers": true,
|
|
"target": "ES2022",
|
|
"module": "ES2022",
|
|
"lib": ["ES2022", "dom"],
|
|
"types": ["node", "dom-navigation"],
|
|
"esModuleInterop": true,
|
|
"resolveJsonModule": true,
|
|
"jsx": "react",
|
|
"jsxFactory": "h",
|
|
"jsxFragmentFactory": "Fragment",
|
|
// TODO(crisbeto): temporarily disabled while adding support for TS 5.4. Should be re-enabled.
|
|
"skipLibCheck": true,
|
|
"paths": {
|
|
"@angular/docs": ["./shared-docs"],
|
|
"@angular/*": ["../packages/*"]
|
|
}
|
|
},
|
|
"angularCompilerOptions": {
|
|
"enableI18nLegacyMessageIdFormat": false,
|
|
"strictInjectionParameters": true,
|
|
"strictInputAccessModifiers": true,
|
|
"strictTemplates": true
|
|
}
|
|
}
|