mirror of
https://github.com/hanzoai/unrs-resolver.git
synced 2026-09-24 17:03:52 +00:00
Adds `Resolver::find_tsconfig`.
```
/// Finds the `tsconfig` to which this `path` belongs.
///
/// Algorithm:
///
/// 1. Search for `tsconfig.json` in ancestor directories.
/// 2. If the path is not included in this `tsconfig.json` through the `files`, `include`, or `exclude` fields:
/// 2.1. Search through project references until a referenced `tsconfig` includes this file.
/// 2.2. If none of the references include this path, return the `tsconfig.json` found in step 1.
///
/// # Errors
///
/// * Returns an error if the tsconfig is invalid, including any extended or referenced tsconfigs.
```
- [x] tracing
- [x] test windows
- [x] add benchmark
- [x] add cache
11 lines
217 B
JSON
11 lines
217 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "ES2022",
|
|
"moduleResolution": "bundler",
|
|
"noUnusedLocals": true,
|
|
"skipLibCheck": true,
|
|
"experimentalDecorators": true,
|
|
},
|
|
"include": ["${configDir}/src/*"]
|
|
}
|