When computing the dependencies between packages which are not in node_modules, we may need to rely upon path-mappings to find the path to the imported entry-point. This commit allows ngcc to use the path-mappings from a tsconfig file to find dependencies. By default any tsconfig.json file in the directory above the `basePath` is loaded but it is possible to use a path to a specific file by providing the `tsConfigPath` property to mainNgcc, or to turn off loading any tsconfig file by setting `tsConfigPath` to `null`. At the command line this is controlled via the `--tsconfig` option. Fixes #36119 PR Close #36180
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| load("//tools:defaults.bzl", "ts_library")
 | |
| 
 | |
| package(default_visibility = ["//visibility:public"])
 | |
| 
 | |
| ts_library(
 | |
|     name = "ngcc",
 | |
|     srcs = glob([
 | |
|         "*.ts",
 | |
|         "**/*.ts",
 | |
|     ]),
 | |
|     tsconfig = "//packages/compiler-cli:tsconfig",
 | |
|     deps = [
 | |
|         "//packages:types",
 | |
|         "//packages/compiler",
 | |
|         "//packages/compiler-cli",
 | |
|         "//packages/compiler-cli/src/ngtsc/annotations",
 | |
|         "//packages/compiler-cli/src/ngtsc/cycles",
 | |
|         "//packages/compiler-cli/src/ngtsc/diagnostics",
 | |
|         "//packages/compiler-cli/src/ngtsc/file_system",
 | |
|         "//packages/compiler-cli/src/ngtsc/imports",
 | |
|         "//packages/compiler-cli/src/ngtsc/incremental:api",
 | |
|         "//packages/compiler-cli/src/ngtsc/metadata",
 | |
|         "//packages/compiler-cli/src/ngtsc/partial_evaluator",
 | |
|         "//packages/compiler-cli/src/ngtsc/perf",
 | |
|         "//packages/compiler-cli/src/ngtsc/reflection",
 | |
|         "//packages/compiler-cli/src/ngtsc/scope",
 | |
|         "//packages/compiler-cli/src/ngtsc/transform",
 | |
|         "//packages/compiler-cli/src/ngtsc/translator",
 | |
|         "//packages/compiler-cli/src/ngtsc/util",
 | |
|         "@npm//@types/convert-source-map",
 | |
|         "@npm//@types/node",
 | |
|         "@npm//@types/semver",
 | |
|         "@npm//@types/yargs",
 | |
|         "@npm//canonical-path",
 | |
|         "@npm//dependency-graph",
 | |
|         "@npm//magic-string",
 | |
|         "@npm//semver",
 | |
|         "@npm//source-map",
 | |
|         "@npm//sourcemap-codec",
 | |
|         "@npm//typescript",
 | |
|     ],
 | |
| )
 |