Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2025-02-17 18:21:02 +00:00
parent 47d5364431
commit 9dfa165835
185 changed files with 8301 additions and 3605 deletions

View file

@ -38,7 +38,8 @@ For TypeScript related tooling to correctly parse `tsconfig.json` file without d
## API
### getTsconfig(searchPath?, configName?, cache?)
Searches for a `tsconfig.json` file and parses it. Returns `null` if a config file cannot be found, or an object containing the path and parsed TSConfig object if found.
Searches for a tsconfig file (defaults to `tsconfig.json`) in the `searchPath` and parses it. (If you already know the tsconfig path, use [`parseTsconfig`](#parsetsconfigtsconfigpath-cache) instead). Returns `null` if a config file cannot be found, or an object containing the path and parsed TSConfig object if found.
Returns:
@ -102,7 +103,8 @@ console.log(getTsconfig('.', 'jsconfig.json'))
---
### parseTsconfig(tsconfigPath, cache?)
The `tsconfig.json` parser used internally by `getTsconfig`. Returns the parsed tsconfig as `TsConfigJsonResolved`.
Parse the tsconfig file provided. Used internally by `getTsconfig`. Returns the parsed tsconfig as `TsConfigJsonResolved`.
#### tsconfigPath
Type: `string`
@ -125,6 +127,8 @@ import { parseTsconfig } from 'get-tsconfig'
console.log(parseTsconfig('./path/to/tsconfig.custom.json'))
```
---
### createFileMatcher(tsconfig: TsconfigResult, caseSensitivePaths?: boolean)
Given a `tsconfig.json` file, it returns a file-matcher function that determines whether it should apply to a file path.