Update checked-in dependencies
This commit is contained in:
parent
47d5364431
commit
9dfa165835
185 changed files with 8301 additions and 3605 deletions
8
node_modules/get-tsconfig/README.md
generated
vendored
8
node_modules/get-tsconfig/README.md
generated
vendored
|
|
@ -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.
|
||||
|
|
|
|||
14
node_modules/get-tsconfig/dist/index.cjs
generated
vendored
14
node_modules/get-tsconfig/dist/index.cjs
generated
vendored
File diff suppressed because one or more lines are too long
107
node_modules/get-tsconfig/dist/index.d.cts
generated
vendored
107
node_modules/get-tsconfig/dist/index.d.cts
generated
vendored
|
|
@ -32,8 +32,8 @@ type Includes<Value extends readonly any[], Item> =
|
|||
@category Utilities
|
||||
*/
|
||||
type IsEqual<A, B> =
|
||||
(<G>() => G extends A ? 1 : 2) extends
|
||||
(<G>() => G extends B ? 1 : 2)
|
||||
(<G>() => G extends A & G | G ? 1 : 2) extends
|
||||
(<G>() => G extends B & G | G ? 1 : 2)
|
||||
? true
|
||||
: false;
|
||||
|
||||
|
|
@ -173,6 +173,8 @@ declare namespace TsConfigJson {
|
|||
| 'ES2020'
|
||||
| 'ES2021'
|
||||
| 'ES2022'
|
||||
| 'ES2023'
|
||||
| 'ES2024'
|
||||
| 'ESNext'
|
||||
// Lowercase alternatives
|
||||
| 'es3'
|
||||
|
|
@ -186,6 +188,8 @@ declare namespace TsConfigJson {
|
|||
| 'es2020'
|
||||
| 'es2021'
|
||||
| 'es2022'
|
||||
| 'es2023'
|
||||
| 'es2024'
|
||||
| 'esnext';
|
||||
|
||||
// eslint-disable-next-line unicorn/prevent-abbreviations
|
||||
|
|
@ -206,6 +210,8 @@ declare namespace TsConfigJson {
|
|||
| 'ES2016'
|
||||
| 'ES2016.Array.Include'
|
||||
| 'ES2017'
|
||||
| 'ES2017.ArrayBuffer'
|
||||
| 'ES2017.Date'
|
||||
| 'ES2017.Intl'
|
||||
| 'ES2017.Object'
|
||||
| 'ES2017.SharedMemory'
|
||||
|
|
@ -230,6 +236,7 @@ declare namespace TsConfigJson {
|
|||
| 'ES2020.SharedMemory'
|
||||
| 'ES2020.Intl'
|
||||
| 'ES2021'
|
||||
| 'ES2021.Intl'
|
||||
| 'ES2021.Promise'
|
||||
| 'ES2021.String'
|
||||
| 'ES2021.WeakRef'
|
||||
|
|
@ -238,14 +245,29 @@ declare namespace TsConfigJson {
|
|||
| 'ES2022.Error'
|
||||
| 'ES2022.Intl'
|
||||
| 'ES2022.Object'
|
||||
| 'ES2022.SharedMemory'
|
||||
| 'ES2022.String'
|
||||
| 'ES2022.RegExp'
|
||||
| 'ES2022.String'
|
||||
| 'ES2023'
|
||||
| 'ES2023.Array'
|
||||
| 'ES2023.Collection'
|
||||
| 'ES2023.Intl'
|
||||
| 'ES2024'
|
||||
| 'ES2024.ArrayBuffer'
|
||||
| 'ES2024.Collection'
|
||||
| 'ES2024.Object'
|
||||
| 'ES2024.Promise'
|
||||
| 'ES2024.Regexp'
|
||||
| 'ES2024.SharedMemory'
|
||||
| 'ES2024.String'
|
||||
| 'ESNext'
|
||||
| 'ESNext.Array'
|
||||
| 'ESNext.AsyncIterable'
|
||||
| 'ESNext.BigInt'
|
||||
| 'ESNext.Collection'
|
||||
| 'ESNext.Decorators'
|
||||
| 'ESNext.Disposable'
|
||||
| 'ESNext.Intl'
|
||||
| 'ESNext.Iterator'
|
||||
| 'ESNext.Promise'
|
||||
| 'ESNext.String'
|
||||
| 'ESNext.Symbol'
|
||||
|
|
@ -254,6 +276,7 @@ declare namespace TsConfigJson {
|
|||
| 'DOM.Iterable'
|
||||
| 'ScriptHost'
|
||||
| 'WebWorker'
|
||||
| 'WebWorker.AsyncIterable'
|
||||
| 'WebWorker.ImportScripts'
|
||||
| 'WebWorker.Iterable'
|
||||
// Lowercase alternatives
|
||||
|
|
@ -273,6 +296,8 @@ declare namespace TsConfigJson {
|
|||
| 'es2016'
|
||||
| 'es2016.array.include'
|
||||
| 'es2017'
|
||||
| 'es2017.arraybuffer'
|
||||
| 'es2017.date'
|
||||
| 'es2017.intl'
|
||||
| 'es2017.object'
|
||||
| 'es2017.sharedmemory'
|
||||
|
|
@ -297,6 +322,7 @@ declare namespace TsConfigJson {
|
|||
| 'es2020.sharedmemory'
|
||||
| 'es2020.intl'
|
||||
| 'es2021'
|
||||
| 'es2021.intl'
|
||||
| 'es2021.promise'
|
||||
| 'es2021.string'
|
||||
| 'es2021.weakref'
|
||||
|
|
@ -305,14 +331,29 @@ declare namespace TsConfigJson {
|
|||
| 'es2022.error'
|
||||
| 'es2022.intl'
|
||||
| 'es2022.object'
|
||||
| 'es2022.sharedmemory'
|
||||
| 'es2022.string'
|
||||
| 'es2022.regexp'
|
||||
| 'es2022.string'
|
||||
| 'es2023'
|
||||
| 'es2023.array'
|
||||
| 'es2023.collection'
|
||||
| 'es2023.intl'
|
||||
| 'es2024'
|
||||
| 'es2024.arraybuffer'
|
||||
| 'es2024.collection'
|
||||
| 'es2024.object'
|
||||
| 'es2024.promise'
|
||||
| 'es2024.regexp'
|
||||
| 'es2024.sharedmemory'
|
||||
| 'es2024.string'
|
||||
| 'esnext'
|
||||
| 'esnext.array'
|
||||
| 'esnext.asynciterable'
|
||||
| 'esnext.bigint'
|
||||
| 'esnext.collection'
|
||||
| 'esnext.decorators'
|
||||
| 'esnext.disposable'
|
||||
| 'esnext.intl'
|
||||
| 'esnext.iterator'
|
||||
| 'esnext.promise'
|
||||
| 'esnext.string'
|
||||
| 'esnext.symbol'
|
||||
|
|
@ -321,6 +362,7 @@ declare namespace TsConfigJson {
|
|||
| 'dom.iterable'
|
||||
| 'scripthost'
|
||||
| 'webworker'
|
||||
| 'webworker.asynciterable'
|
||||
| 'webworker.importscripts'
|
||||
| 'webworker.iterable';
|
||||
|
||||
|
|
@ -550,6 +592,13 @@ declare namespace TsConfigJson {
|
|||
*/
|
||||
newLine?: CompilerOptions.NewLine;
|
||||
|
||||
/**
|
||||
Disable full type checking (only critical parse and emit errors will be reported).
|
||||
|
||||
@default false
|
||||
*/
|
||||
noCheck?: boolean;
|
||||
|
||||
/**
|
||||
Do not emit output.
|
||||
|
||||
|
|
@ -692,6 +741,13 @@ declare namespace TsConfigJson {
|
|||
*/
|
||||
isolatedModules?: boolean;
|
||||
|
||||
/**
|
||||
Require sufficient annotation on exports so other tools can trivially generate declaration files.
|
||||
|
||||
@default false
|
||||
*/
|
||||
isolatedDeclarations?: boolean;
|
||||
|
||||
/**
|
||||
Generates corresponding '.map' file.
|
||||
|
||||
|
|
@ -805,6 +861,13 @@ declare namespace TsConfigJson {
|
|||
*/
|
||||
noUncheckedIndexedAccess?: boolean;
|
||||
|
||||
/**
|
||||
Report error if failed to find a source file for a side effect import.
|
||||
|
||||
@default false
|
||||
*/
|
||||
noUncheckedSideEffectImports?: boolean;
|
||||
|
||||
/**
|
||||
Report errors for fallthrough cases in switch statement.
|
||||
|
||||
|
|
@ -840,6 +903,11 @@ declare namespace TsConfigJson {
|
|||
*/
|
||||
generateCpuProfile?: string;
|
||||
|
||||
/**
|
||||
Generates an event trace and a list of types.
|
||||
*/
|
||||
generateTrace?: boolean;
|
||||
|
||||
/**
|
||||
Base directory to resolve non-relative module names.
|
||||
*/
|
||||
|
|
@ -989,6 +1057,13 @@ declare namespace TsConfigJson {
|
|||
*/
|
||||
checkJs?: boolean;
|
||||
|
||||
/**
|
||||
Built-in iterators are instantiated with a `TReturn` type of undefined instead of `any`.
|
||||
|
||||
@default false
|
||||
*/
|
||||
strictBuiltinIteratorReturn?: boolean;
|
||||
|
||||
/**
|
||||
Disable bivariant parameter checking for function types.
|
||||
|
||||
|
|
@ -1231,6 +1306,11 @@ declare namespace TsConfigJson {
|
|||
Specifies a list of type declarations to be excluded from auto type acquisition. For example, `['jquery', 'lodash']`.
|
||||
*/
|
||||
exclude?: string[];
|
||||
|
||||
/**
|
||||
Disable infering what types should be added based on filenames in a project.
|
||||
*/
|
||||
disableFilenameBasedTypeAcquisition?: boolean;
|
||||
};
|
||||
|
||||
export type References = {
|
||||
|
|
@ -1328,8 +1408,23 @@ type TsConfigResult = {
|
|||
};
|
||||
type Cache<value = any> = Map<string, value>;
|
||||
|
||||
/**
|
||||
* Finds a tsconfig file, defaulting to `tsconfig.json`, starting from a given path.
|
||||
*
|
||||
* @param searchPath Starting directory (default: `process.cwd()`).
|
||||
* @param configName Config file name (default: `tsconfig.json`).
|
||||
* @param cache Cache for previous results (default: new `Map()`).
|
||||
* @returns The tsconfig file path and parsed contents, or `null` if not found.
|
||||
*/
|
||||
declare const getTsconfig: (searchPath?: string, configName?: string, cache?: Cache) => TsConfigResult | null;
|
||||
|
||||
/**
|
||||
* Parses a tsconfig file at a given path
|
||||
*
|
||||
* @param tsconfigPath - Path to the tsconfig file.
|
||||
* @param cache - Cache for storing parsed tsconfig results (default: new `Map()`).
|
||||
* @returns The parsed and resolved tsconfig JSON.
|
||||
*/
|
||||
declare const parseTsconfig: (tsconfigPath: string, cache?: Cache<string>) => TsConfigJsonResolved;
|
||||
|
||||
/**
|
||||
|
|
|
|||
107
node_modules/get-tsconfig/dist/index.d.mts
generated
vendored
107
node_modules/get-tsconfig/dist/index.d.mts
generated
vendored
|
|
@ -32,8 +32,8 @@ type Includes<Value extends readonly any[], Item> =
|
|||
@category Utilities
|
||||
*/
|
||||
type IsEqual<A, B> =
|
||||
(<G>() => G extends A ? 1 : 2) extends
|
||||
(<G>() => G extends B ? 1 : 2)
|
||||
(<G>() => G extends A & G | G ? 1 : 2) extends
|
||||
(<G>() => G extends B & G | G ? 1 : 2)
|
||||
? true
|
||||
: false;
|
||||
|
||||
|
|
@ -173,6 +173,8 @@ declare namespace TsConfigJson {
|
|||
| 'ES2020'
|
||||
| 'ES2021'
|
||||
| 'ES2022'
|
||||
| 'ES2023'
|
||||
| 'ES2024'
|
||||
| 'ESNext'
|
||||
// Lowercase alternatives
|
||||
| 'es3'
|
||||
|
|
@ -186,6 +188,8 @@ declare namespace TsConfigJson {
|
|||
| 'es2020'
|
||||
| 'es2021'
|
||||
| 'es2022'
|
||||
| 'es2023'
|
||||
| 'es2024'
|
||||
| 'esnext';
|
||||
|
||||
// eslint-disable-next-line unicorn/prevent-abbreviations
|
||||
|
|
@ -206,6 +210,8 @@ declare namespace TsConfigJson {
|
|||
| 'ES2016'
|
||||
| 'ES2016.Array.Include'
|
||||
| 'ES2017'
|
||||
| 'ES2017.ArrayBuffer'
|
||||
| 'ES2017.Date'
|
||||
| 'ES2017.Intl'
|
||||
| 'ES2017.Object'
|
||||
| 'ES2017.SharedMemory'
|
||||
|
|
@ -230,6 +236,7 @@ declare namespace TsConfigJson {
|
|||
| 'ES2020.SharedMemory'
|
||||
| 'ES2020.Intl'
|
||||
| 'ES2021'
|
||||
| 'ES2021.Intl'
|
||||
| 'ES2021.Promise'
|
||||
| 'ES2021.String'
|
||||
| 'ES2021.WeakRef'
|
||||
|
|
@ -238,14 +245,29 @@ declare namespace TsConfigJson {
|
|||
| 'ES2022.Error'
|
||||
| 'ES2022.Intl'
|
||||
| 'ES2022.Object'
|
||||
| 'ES2022.SharedMemory'
|
||||
| 'ES2022.String'
|
||||
| 'ES2022.RegExp'
|
||||
| 'ES2022.String'
|
||||
| 'ES2023'
|
||||
| 'ES2023.Array'
|
||||
| 'ES2023.Collection'
|
||||
| 'ES2023.Intl'
|
||||
| 'ES2024'
|
||||
| 'ES2024.ArrayBuffer'
|
||||
| 'ES2024.Collection'
|
||||
| 'ES2024.Object'
|
||||
| 'ES2024.Promise'
|
||||
| 'ES2024.Regexp'
|
||||
| 'ES2024.SharedMemory'
|
||||
| 'ES2024.String'
|
||||
| 'ESNext'
|
||||
| 'ESNext.Array'
|
||||
| 'ESNext.AsyncIterable'
|
||||
| 'ESNext.BigInt'
|
||||
| 'ESNext.Collection'
|
||||
| 'ESNext.Decorators'
|
||||
| 'ESNext.Disposable'
|
||||
| 'ESNext.Intl'
|
||||
| 'ESNext.Iterator'
|
||||
| 'ESNext.Promise'
|
||||
| 'ESNext.String'
|
||||
| 'ESNext.Symbol'
|
||||
|
|
@ -254,6 +276,7 @@ declare namespace TsConfigJson {
|
|||
| 'DOM.Iterable'
|
||||
| 'ScriptHost'
|
||||
| 'WebWorker'
|
||||
| 'WebWorker.AsyncIterable'
|
||||
| 'WebWorker.ImportScripts'
|
||||
| 'WebWorker.Iterable'
|
||||
// Lowercase alternatives
|
||||
|
|
@ -273,6 +296,8 @@ declare namespace TsConfigJson {
|
|||
| 'es2016'
|
||||
| 'es2016.array.include'
|
||||
| 'es2017'
|
||||
| 'es2017.arraybuffer'
|
||||
| 'es2017.date'
|
||||
| 'es2017.intl'
|
||||
| 'es2017.object'
|
||||
| 'es2017.sharedmemory'
|
||||
|
|
@ -297,6 +322,7 @@ declare namespace TsConfigJson {
|
|||
| 'es2020.sharedmemory'
|
||||
| 'es2020.intl'
|
||||
| 'es2021'
|
||||
| 'es2021.intl'
|
||||
| 'es2021.promise'
|
||||
| 'es2021.string'
|
||||
| 'es2021.weakref'
|
||||
|
|
@ -305,14 +331,29 @@ declare namespace TsConfigJson {
|
|||
| 'es2022.error'
|
||||
| 'es2022.intl'
|
||||
| 'es2022.object'
|
||||
| 'es2022.sharedmemory'
|
||||
| 'es2022.string'
|
||||
| 'es2022.regexp'
|
||||
| 'es2022.string'
|
||||
| 'es2023'
|
||||
| 'es2023.array'
|
||||
| 'es2023.collection'
|
||||
| 'es2023.intl'
|
||||
| 'es2024'
|
||||
| 'es2024.arraybuffer'
|
||||
| 'es2024.collection'
|
||||
| 'es2024.object'
|
||||
| 'es2024.promise'
|
||||
| 'es2024.regexp'
|
||||
| 'es2024.sharedmemory'
|
||||
| 'es2024.string'
|
||||
| 'esnext'
|
||||
| 'esnext.array'
|
||||
| 'esnext.asynciterable'
|
||||
| 'esnext.bigint'
|
||||
| 'esnext.collection'
|
||||
| 'esnext.decorators'
|
||||
| 'esnext.disposable'
|
||||
| 'esnext.intl'
|
||||
| 'esnext.iterator'
|
||||
| 'esnext.promise'
|
||||
| 'esnext.string'
|
||||
| 'esnext.symbol'
|
||||
|
|
@ -321,6 +362,7 @@ declare namespace TsConfigJson {
|
|||
| 'dom.iterable'
|
||||
| 'scripthost'
|
||||
| 'webworker'
|
||||
| 'webworker.asynciterable'
|
||||
| 'webworker.importscripts'
|
||||
| 'webworker.iterable';
|
||||
|
||||
|
|
@ -550,6 +592,13 @@ declare namespace TsConfigJson {
|
|||
*/
|
||||
newLine?: CompilerOptions.NewLine;
|
||||
|
||||
/**
|
||||
Disable full type checking (only critical parse and emit errors will be reported).
|
||||
|
||||
@default false
|
||||
*/
|
||||
noCheck?: boolean;
|
||||
|
||||
/**
|
||||
Do not emit output.
|
||||
|
||||
|
|
@ -692,6 +741,13 @@ declare namespace TsConfigJson {
|
|||
*/
|
||||
isolatedModules?: boolean;
|
||||
|
||||
/**
|
||||
Require sufficient annotation on exports so other tools can trivially generate declaration files.
|
||||
|
||||
@default false
|
||||
*/
|
||||
isolatedDeclarations?: boolean;
|
||||
|
||||
/**
|
||||
Generates corresponding '.map' file.
|
||||
|
||||
|
|
@ -805,6 +861,13 @@ declare namespace TsConfigJson {
|
|||
*/
|
||||
noUncheckedIndexedAccess?: boolean;
|
||||
|
||||
/**
|
||||
Report error if failed to find a source file for a side effect import.
|
||||
|
||||
@default false
|
||||
*/
|
||||
noUncheckedSideEffectImports?: boolean;
|
||||
|
||||
/**
|
||||
Report errors for fallthrough cases in switch statement.
|
||||
|
||||
|
|
@ -840,6 +903,11 @@ declare namespace TsConfigJson {
|
|||
*/
|
||||
generateCpuProfile?: string;
|
||||
|
||||
/**
|
||||
Generates an event trace and a list of types.
|
||||
*/
|
||||
generateTrace?: boolean;
|
||||
|
||||
/**
|
||||
Base directory to resolve non-relative module names.
|
||||
*/
|
||||
|
|
@ -989,6 +1057,13 @@ declare namespace TsConfigJson {
|
|||
*/
|
||||
checkJs?: boolean;
|
||||
|
||||
/**
|
||||
Built-in iterators are instantiated with a `TReturn` type of undefined instead of `any`.
|
||||
|
||||
@default false
|
||||
*/
|
||||
strictBuiltinIteratorReturn?: boolean;
|
||||
|
||||
/**
|
||||
Disable bivariant parameter checking for function types.
|
||||
|
||||
|
|
@ -1231,6 +1306,11 @@ declare namespace TsConfigJson {
|
|||
Specifies a list of type declarations to be excluded from auto type acquisition. For example, `['jquery', 'lodash']`.
|
||||
*/
|
||||
exclude?: string[];
|
||||
|
||||
/**
|
||||
Disable infering what types should be added based on filenames in a project.
|
||||
*/
|
||||
disableFilenameBasedTypeAcquisition?: boolean;
|
||||
};
|
||||
|
||||
export type References = {
|
||||
|
|
@ -1328,8 +1408,23 @@ type TsConfigResult = {
|
|||
};
|
||||
type Cache<value = any> = Map<string, value>;
|
||||
|
||||
/**
|
||||
* Finds a tsconfig file, defaulting to `tsconfig.json`, starting from a given path.
|
||||
*
|
||||
* @param searchPath Starting directory (default: `process.cwd()`).
|
||||
* @param configName Config file name (default: `tsconfig.json`).
|
||||
* @param cache Cache for previous results (default: new `Map()`).
|
||||
* @returns The tsconfig file path and parsed contents, or `null` if not found.
|
||||
*/
|
||||
declare const getTsconfig: (searchPath?: string, configName?: string, cache?: Cache) => TsConfigResult | null;
|
||||
|
||||
/**
|
||||
* Parses a tsconfig file at a given path
|
||||
*
|
||||
* @param tsconfigPath - Path to the tsconfig file.
|
||||
* @param cache - Cache for storing parsed tsconfig results (default: new `Map()`).
|
||||
* @returns The parsed and resolved tsconfig JSON.
|
||||
*/
|
||||
declare const parseTsconfig: (tsconfigPath: string, cache?: Cache<string>) => TsConfigJsonResolved;
|
||||
|
||||
/**
|
||||
|
|
|
|||
14
node_modules/get-tsconfig/dist/index.mjs
generated
vendored
14
node_modules/get-tsconfig/dist/index.mjs
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/get-tsconfig/package.json
generated
vendored
2
node_modules/get-tsconfig/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "get-tsconfig",
|
||||
"version": "4.7.6",
|
||||
"version": "4.10.0",
|
||||
"description": "Find and parse the tsconfig.json file from a directory path",
|
||||
"keywords": [
|
||||
"get-tsconfig",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue