merge-tsconfigs 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -16
- package/dist/index.cjs +145 -158
- package/dist/index.d.cts +277 -0
- package/dist/index.d.ts +240 -115
- package/dist/index.js +134 -140
- package/dist/program.d.ts +31 -0
- package/dist/program.js +474 -0
- package/package.json +118 -110
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import * as typescript from 'typescript';
|
|
2
|
+
import { CompilerOptions } from 'typescript';
|
|
3
|
+
|
|
4
|
+
interface CompilerOptionOverrides {
|
|
5
|
+
[key: string]: CompilerOptions[keyof CompilerOptions] | 'delete' | undefined;
|
|
6
|
+
}
|
|
7
|
+
type PartialCompilerOptions = Partial<CompilerOptions> & CompilerOptionOverrides;
|
|
8
|
+
interface ConfigOptions {
|
|
9
|
+
compilerOptions?: PartialCompilerOptions;
|
|
10
|
+
debug?: boolean;
|
|
11
|
+
out?: string;
|
|
12
|
+
tsconfigs?: string[];
|
|
13
|
+
exclude?: string[];
|
|
14
|
+
include?: string[];
|
|
15
|
+
path?: string;
|
|
16
|
+
isTesting?: boolean;
|
|
17
|
+
}
|
|
18
|
+
type LoggerParams = {
|
|
19
|
+
isDebugging?: boolean;
|
|
20
|
+
gap?: string;
|
|
21
|
+
emoji?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
};
|
|
24
|
+
interface TsConfig {
|
|
25
|
+
extends?: string;
|
|
26
|
+
compilerOptions?: PartialCompilerOptions;
|
|
27
|
+
include?: string[];
|
|
28
|
+
exclude?: string[];
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare const logger: ({ isDebugging, emoji, gap, name }: LoggerParams) => (type: string) => (section: string) => (message: string) => (err: unknown) => void;
|
|
33
|
+
declare function stripJsonComments(source: string): string;
|
|
34
|
+
declare function stripTrailingCommas(source: string): string;
|
|
35
|
+
declare function parseJson<T>(source: string): T;
|
|
36
|
+
declare function resolveJSON(path: string, debug?: boolean): TsConfig;
|
|
37
|
+
declare const mergeConfigObjects: (tsconfig1: TsConfig, tsconfig2: TsConfig) => {
|
|
38
|
+
include?: string[];
|
|
39
|
+
exclude?: string[];
|
|
40
|
+
compilerOptions: {
|
|
41
|
+
[x: string]: typescript.CompilerOptionsValue | typescript.TsConfigSourceFile;
|
|
42
|
+
allowImportingTsExtensions?: boolean;
|
|
43
|
+
allowJs?: boolean;
|
|
44
|
+
allowArbitraryExtensions?: boolean;
|
|
45
|
+
allowSyntheticDefaultImports?: boolean;
|
|
46
|
+
allowUmdGlobalAccess?: boolean;
|
|
47
|
+
allowUnreachableCode?: boolean;
|
|
48
|
+
allowUnusedLabels?: boolean;
|
|
49
|
+
alwaysStrict?: boolean;
|
|
50
|
+
baseUrl?: string;
|
|
51
|
+
charset?: string;
|
|
52
|
+
checkJs?: boolean;
|
|
53
|
+
customConditions?: string[];
|
|
54
|
+
declaration?: boolean;
|
|
55
|
+
declarationMap?: boolean;
|
|
56
|
+
emitDeclarationOnly?: boolean;
|
|
57
|
+
declarationDir?: string;
|
|
58
|
+
disableSizeLimit?: boolean;
|
|
59
|
+
disableSourceOfProjectReferenceRedirect?: boolean;
|
|
60
|
+
disableSolutionSearching?: boolean;
|
|
61
|
+
disableReferencedProjectLoad?: boolean;
|
|
62
|
+
downlevelIteration?: boolean;
|
|
63
|
+
emitBOM?: boolean;
|
|
64
|
+
emitDecoratorMetadata?: boolean;
|
|
65
|
+
exactOptionalPropertyTypes?: boolean;
|
|
66
|
+
experimentalDecorators?: boolean;
|
|
67
|
+
forceConsistentCasingInFileNames?: boolean;
|
|
68
|
+
ignoreDeprecations?: string;
|
|
69
|
+
importHelpers?: boolean;
|
|
70
|
+
importsNotUsedAsValues?: typescript.ImportsNotUsedAsValues;
|
|
71
|
+
inlineSourceMap?: boolean;
|
|
72
|
+
inlineSources?: boolean;
|
|
73
|
+
isolatedModules?: boolean;
|
|
74
|
+
isolatedDeclarations?: boolean;
|
|
75
|
+
jsx?: typescript.JsxEmit;
|
|
76
|
+
keyofStringsOnly?: boolean;
|
|
77
|
+
lib?: string[];
|
|
78
|
+
libReplacement?: boolean;
|
|
79
|
+
locale?: string;
|
|
80
|
+
mapRoot?: string;
|
|
81
|
+
maxNodeModuleJsDepth?: number;
|
|
82
|
+
module?: typescript.ModuleKind;
|
|
83
|
+
moduleResolution?: typescript.ModuleResolutionKind;
|
|
84
|
+
moduleSuffixes?: string[];
|
|
85
|
+
moduleDetection?: typescript.ModuleDetectionKind;
|
|
86
|
+
newLine?: typescript.NewLineKind;
|
|
87
|
+
noEmit?: boolean;
|
|
88
|
+
noCheck?: boolean;
|
|
89
|
+
noEmitHelpers?: boolean;
|
|
90
|
+
noEmitOnError?: boolean;
|
|
91
|
+
noErrorTruncation?: boolean;
|
|
92
|
+
noFallthroughCasesInSwitch?: boolean;
|
|
93
|
+
noImplicitAny?: boolean;
|
|
94
|
+
noImplicitReturns?: boolean;
|
|
95
|
+
noImplicitThis?: boolean;
|
|
96
|
+
noStrictGenericChecks?: boolean;
|
|
97
|
+
noUnusedLocals?: boolean;
|
|
98
|
+
noUnusedParameters?: boolean;
|
|
99
|
+
noImplicitUseStrict?: boolean;
|
|
100
|
+
noPropertyAccessFromIndexSignature?: boolean;
|
|
101
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
102
|
+
noLib?: boolean;
|
|
103
|
+
noResolve?: boolean;
|
|
104
|
+
noUncheckedIndexedAccess?: boolean;
|
|
105
|
+
out?: string;
|
|
106
|
+
outDir?: string;
|
|
107
|
+
outFile?: string;
|
|
108
|
+
paths?: typescript.MapLike<string[]>;
|
|
109
|
+
preserveConstEnums?: boolean;
|
|
110
|
+
noImplicitOverride?: boolean;
|
|
111
|
+
preserveSymlinks?: boolean;
|
|
112
|
+
preserveValueImports?: boolean;
|
|
113
|
+
project?: string;
|
|
114
|
+
reactNamespace?: string;
|
|
115
|
+
jsxFactory?: string;
|
|
116
|
+
jsxFragmentFactory?: string;
|
|
117
|
+
jsxImportSource?: string;
|
|
118
|
+
composite?: boolean;
|
|
119
|
+
incremental?: boolean;
|
|
120
|
+
tsBuildInfoFile?: string;
|
|
121
|
+
removeComments?: boolean;
|
|
122
|
+
resolvePackageJsonExports?: boolean;
|
|
123
|
+
resolvePackageJsonImports?: boolean;
|
|
124
|
+
rewriteRelativeImportExtensions?: boolean;
|
|
125
|
+
rootDir?: string;
|
|
126
|
+
rootDirs?: string[];
|
|
127
|
+
skipLibCheck?: boolean;
|
|
128
|
+
skipDefaultLibCheck?: boolean;
|
|
129
|
+
sourceMap?: boolean;
|
|
130
|
+
sourceRoot?: string;
|
|
131
|
+
strict?: boolean;
|
|
132
|
+
strictFunctionTypes?: boolean;
|
|
133
|
+
strictBindCallApply?: boolean;
|
|
134
|
+
strictNullChecks?: boolean;
|
|
135
|
+
strictPropertyInitialization?: boolean;
|
|
136
|
+
strictBuiltinIteratorReturn?: boolean;
|
|
137
|
+
stripInternal?: boolean;
|
|
138
|
+
suppressExcessPropertyErrors?: boolean;
|
|
139
|
+
suppressImplicitAnyIndexErrors?: boolean;
|
|
140
|
+
target?: typescript.ScriptTarget;
|
|
141
|
+
traceResolution?: boolean;
|
|
142
|
+
useUnknownInCatchVariables?: boolean;
|
|
143
|
+
noUncheckedSideEffectImports?: boolean;
|
|
144
|
+
resolveJsonModule?: boolean;
|
|
145
|
+
types?: string[];
|
|
146
|
+
typeRoots?: string[];
|
|
147
|
+
verbatimModuleSyntax?: boolean;
|
|
148
|
+
erasableSyntaxOnly?: boolean;
|
|
149
|
+
esModuleInterop?: boolean;
|
|
150
|
+
useDefineForClassFields?: boolean;
|
|
151
|
+
};
|
|
152
|
+
extends?: string;
|
|
153
|
+
};
|
|
154
|
+
declare const mergeConfigContent: (tsconfigs: string[], cwd: string, debug?: boolean) => TsConfig | {
|
|
155
|
+
include?: string[];
|
|
156
|
+
exclude?: string[];
|
|
157
|
+
compilerOptions: {
|
|
158
|
+
[x: string]: typescript.CompilerOptionsValue | typescript.TsConfigSourceFile;
|
|
159
|
+
allowImportingTsExtensions?: boolean;
|
|
160
|
+
allowJs?: boolean;
|
|
161
|
+
allowArbitraryExtensions?: boolean;
|
|
162
|
+
allowSyntheticDefaultImports?: boolean;
|
|
163
|
+
allowUmdGlobalAccess?: boolean;
|
|
164
|
+
allowUnreachableCode?: boolean;
|
|
165
|
+
allowUnusedLabels?: boolean;
|
|
166
|
+
alwaysStrict?: boolean;
|
|
167
|
+
baseUrl?: string;
|
|
168
|
+
charset?: string;
|
|
169
|
+
checkJs?: boolean;
|
|
170
|
+
customConditions?: string[];
|
|
171
|
+
declaration?: boolean;
|
|
172
|
+
declarationMap?: boolean;
|
|
173
|
+
emitDeclarationOnly?: boolean;
|
|
174
|
+
declarationDir?: string;
|
|
175
|
+
disableSizeLimit?: boolean;
|
|
176
|
+
disableSourceOfProjectReferenceRedirect?: boolean;
|
|
177
|
+
disableSolutionSearching?: boolean;
|
|
178
|
+
disableReferencedProjectLoad?: boolean;
|
|
179
|
+
downlevelIteration?: boolean;
|
|
180
|
+
emitBOM?: boolean;
|
|
181
|
+
emitDecoratorMetadata?: boolean;
|
|
182
|
+
exactOptionalPropertyTypes?: boolean;
|
|
183
|
+
experimentalDecorators?: boolean;
|
|
184
|
+
forceConsistentCasingInFileNames?: boolean;
|
|
185
|
+
ignoreDeprecations?: string;
|
|
186
|
+
importHelpers?: boolean;
|
|
187
|
+
importsNotUsedAsValues?: typescript.ImportsNotUsedAsValues;
|
|
188
|
+
inlineSourceMap?: boolean;
|
|
189
|
+
inlineSources?: boolean;
|
|
190
|
+
isolatedModules?: boolean;
|
|
191
|
+
isolatedDeclarations?: boolean;
|
|
192
|
+
jsx?: typescript.JsxEmit;
|
|
193
|
+
keyofStringsOnly?: boolean;
|
|
194
|
+
lib?: string[];
|
|
195
|
+
libReplacement?: boolean;
|
|
196
|
+
locale?: string;
|
|
197
|
+
mapRoot?: string;
|
|
198
|
+
maxNodeModuleJsDepth?: number;
|
|
199
|
+
module?: typescript.ModuleKind;
|
|
200
|
+
moduleResolution?: typescript.ModuleResolutionKind;
|
|
201
|
+
moduleSuffixes?: string[];
|
|
202
|
+
moduleDetection?: typescript.ModuleDetectionKind;
|
|
203
|
+
newLine?: typescript.NewLineKind;
|
|
204
|
+
noEmit?: boolean;
|
|
205
|
+
noCheck?: boolean;
|
|
206
|
+
noEmitHelpers?: boolean;
|
|
207
|
+
noEmitOnError?: boolean;
|
|
208
|
+
noErrorTruncation?: boolean;
|
|
209
|
+
noFallthroughCasesInSwitch?: boolean;
|
|
210
|
+
noImplicitAny?: boolean;
|
|
211
|
+
noImplicitReturns?: boolean;
|
|
212
|
+
noImplicitThis?: boolean;
|
|
213
|
+
noStrictGenericChecks?: boolean;
|
|
214
|
+
noUnusedLocals?: boolean;
|
|
215
|
+
noUnusedParameters?: boolean;
|
|
216
|
+
noImplicitUseStrict?: boolean;
|
|
217
|
+
noPropertyAccessFromIndexSignature?: boolean;
|
|
218
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
219
|
+
noLib?: boolean;
|
|
220
|
+
noResolve?: boolean;
|
|
221
|
+
noUncheckedIndexedAccess?: boolean;
|
|
222
|
+
out?: string;
|
|
223
|
+
outDir?: string;
|
|
224
|
+
outFile?: string;
|
|
225
|
+
paths?: typescript.MapLike<string[]>;
|
|
226
|
+
preserveConstEnums?: boolean;
|
|
227
|
+
noImplicitOverride?: boolean;
|
|
228
|
+
preserveSymlinks?: boolean;
|
|
229
|
+
preserveValueImports?: boolean;
|
|
230
|
+
project?: string;
|
|
231
|
+
reactNamespace?: string;
|
|
232
|
+
jsxFactory?: string;
|
|
233
|
+
jsxFragmentFactory?: string;
|
|
234
|
+
jsxImportSource?: string;
|
|
235
|
+
composite?: boolean;
|
|
236
|
+
incremental?: boolean;
|
|
237
|
+
tsBuildInfoFile?: string;
|
|
238
|
+
removeComments?: boolean;
|
|
239
|
+
resolvePackageJsonExports?: boolean;
|
|
240
|
+
resolvePackageJsonImports?: boolean;
|
|
241
|
+
rewriteRelativeImportExtensions?: boolean;
|
|
242
|
+
rootDir?: string;
|
|
243
|
+
rootDirs?: string[];
|
|
244
|
+
skipLibCheck?: boolean;
|
|
245
|
+
skipDefaultLibCheck?: boolean;
|
|
246
|
+
sourceMap?: boolean;
|
|
247
|
+
sourceRoot?: string;
|
|
248
|
+
strict?: boolean;
|
|
249
|
+
strictFunctionTypes?: boolean;
|
|
250
|
+
strictBindCallApply?: boolean;
|
|
251
|
+
strictNullChecks?: boolean;
|
|
252
|
+
strictPropertyInitialization?: boolean;
|
|
253
|
+
strictBuiltinIteratorReturn?: boolean;
|
|
254
|
+
stripInternal?: boolean;
|
|
255
|
+
suppressExcessPropertyErrors?: boolean;
|
|
256
|
+
suppressImplicitAnyIndexErrors?: boolean;
|
|
257
|
+
target?: typescript.ScriptTarget;
|
|
258
|
+
traceResolution?: boolean;
|
|
259
|
+
useUnknownInCatchVariables?: boolean;
|
|
260
|
+
noUncheckedSideEffectImports?: boolean;
|
|
261
|
+
resolveJsonModule?: boolean;
|
|
262
|
+
types?: string[];
|
|
263
|
+
typeRoots?: string[];
|
|
264
|
+
verbatimModuleSyntax?: boolean;
|
|
265
|
+
erasableSyntaxOnly?: boolean;
|
|
266
|
+
esModuleInterop?: boolean;
|
|
267
|
+
useDefineForClassFields?: boolean;
|
|
268
|
+
};
|
|
269
|
+
extends?: string;
|
|
270
|
+
};
|
|
271
|
+
declare const writeTsconfig: (tsconfig: TsConfig, cwd: string, out: string, isTesting: boolean) => TsConfig;
|
|
272
|
+
declare const updateCompilerOptions: (compilerOptions?: PartialCompilerOptions, currentCompilerOptions?: PartialCompilerOptions, updatedPath?: CompilerOptions["paths"]) => PartialCompilerOptions;
|
|
273
|
+
declare const parsePath: (path?: string, debug?: boolean) => CompilerOptions["paths"];
|
|
274
|
+
declare const mergeTsConfigs: ({ tsconfigs, exclude, include, compilerOptions, debug, out, path, isTesting, }: ConfigOptions) => TsConfig | undefined;
|
|
275
|
+
declare const script: ({ tsconfigs, exclude, include, compilerOptions, debug, out, path, isTesting, }: ConfigOptions) => TsConfig | undefined;
|
|
276
|
+
|
|
277
|
+
export { mergeTsConfigs as default, logger, mergeConfigContent, mergeConfigObjects, mergeTsConfigs, parseJson, parsePath, resolveJSON, script, stripJsonComments, stripTrailingCommas, updateCompilerOptions, writeTsconfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import * as type_fest_source_partial_deep from 'type-fest/source/partial-deep';
|
|
2
1
|
import * as typescript from 'typescript';
|
|
3
2
|
import { CompilerOptions } from 'typescript';
|
|
4
|
-
import { PartialDeep } from 'type-fest';
|
|
5
3
|
|
|
6
4
|
interface CompilerOptionOverrides {
|
|
7
|
-
[key: string]:
|
|
5
|
+
[key: string]: CompilerOptions[keyof CompilerOptions] | 'delete' | undefined;
|
|
8
6
|
}
|
|
9
|
-
type PartialCompilerOptions =
|
|
7
|
+
type PartialCompilerOptions = Partial<CompilerOptions> & CompilerOptionOverrides;
|
|
10
8
|
interface ConfigOptions {
|
|
11
9
|
compilerOptions?: PartialCompilerOptions;
|
|
12
10
|
debug?: boolean;
|
|
@@ -25,128 +23,255 @@ type LoggerParams = {
|
|
|
25
23
|
};
|
|
26
24
|
interface TsConfig {
|
|
27
25
|
extends?: string;
|
|
28
|
-
compilerOptions?:
|
|
26
|
+
compilerOptions?: PartialCompilerOptions;
|
|
29
27
|
include?: string[];
|
|
30
28
|
exclude?: string[];
|
|
29
|
+
[key: string]: unknown;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
declare const logger: ({ isDebugging, emoji, gap, name }: LoggerParams) => (type: string) => (section: string) => (message: string) => (err: unknown) => void;
|
|
33
|
+
declare function stripJsonComments(source: string): string;
|
|
34
|
+
declare function stripTrailingCommas(source: string): string;
|
|
35
|
+
declare function parseJson<T>(source: string): T;
|
|
34
36
|
declare function resolveJSON(path: string, debug?: boolean): TsConfig;
|
|
35
37
|
declare const mergeConfigObjects: (tsconfig1: TsConfig, tsconfig2: TsConfig) => {
|
|
36
|
-
include?: string[]
|
|
37
|
-
exclude?: string[]
|
|
38
|
+
include?: string[];
|
|
39
|
+
exclude?: string[];
|
|
40
|
+
compilerOptions: {
|
|
41
|
+
[x: string]: typescript.CompilerOptionsValue | typescript.TsConfigSourceFile;
|
|
42
|
+
allowImportingTsExtensions?: boolean;
|
|
43
|
+
allowJs?: boolean;
|
|
44
|
+
allowArbitraryExtensions?: boolean;
|
|
45
|
+
allowSyntheticDefaultImports?: boolean;
|
|
46
|
+
allowUmdGlobalAccess?: boolean;
|
|
47
|
+
allowUnreachableCode?: boolean;
|
|
48
|
+
allowUnusedLabels?: boolean;
|
|
49
|
+
alwaysStrict?: boolean;
|
|
50
|
+
baseUrl?: string;
|
|
51
|
+
charset?: string;
|
|
52
|
+
checkJs?: boolean;
|
|
53
|
+
customConditions?: string[];
|
|
54
|
+
declaration?: boolean;
|
|
55
|
+
declarationMap?: boolean;
|
|
56
|
+
emitDeclarationOnly?: boolean;
|
|
57
|
+
declarationDir?: string;
|
|
58
|
+
disableSizeLimit?: boolean;
|
|
59
|
+
disableSourceOfProjectReferenceRedirect?: boolean;
|
|
60
|
+
disableSolutionSearching?: boolean;
|
|
61
|
+
disableReferencedProjectLoad?: boolean;
|
|
62
|
+
downlevelIteration?: boolean;
|
|
63
|
+
emitBOM?: boolean;
|
|
64
|
+
emitDecoratorMetadata?: boolean;
|
|
65
|
+
exactOptionalPropertyTypes?: boolean;
|
|
66
|
+
experimentalDecorators?: boolean;
|
|
67
|
+
forceConsistentCasingInFileNames?: boolean;
|
|
68
|
+
ignoreDeprecations?: string;
|
|
69
|
+
importHelpers?: boolean;
|
|
70
|
+
importsNotUsedAsValues?: typescript.ImportsNotUsedAsValues;
|
|
71
|
+
inlineSourceMap?: boolean;
|
|
72
|
+
inlineSources?: boolean;
|
|
73
|
+
isolatedModules?: boolean;
|
|
74
|
+
isolatedDeclarations?: boolean;
|
|
75
|
+
jsx?: typescript.JsxEmit;
|
|
76
|
+
keyofStringsOnly?: boolean;
|
|
77
|
+
lib?: string[];
|
|
78
|
+
libReplacement?: boolean;
|
|
79
|
+
locale?: string;
|
|
80
|
+
mapRoot?: string;
|
|
81
|
+
maxNodeModuleJsDepth?: number;
|
|
82
|
+
module?: typescript.ModuleKind;
|
|
83
|
+
moduleResolution?: typescript.ModuleResolutionKind;
|
|
84
|
+
moduleSuffixes?: string[];
|
|
85
|
+
moduleDetection?: typescript.ModuleDetectionKind;
|
|
86
|
+
newLine?: typescript.NewLineKind;
|
|
87
|
+
noEmit?: boolean;
|
|
88
|
+
noCheck?: boolean;
|
|
89
|
+
noEmitHelpers?: boolean;
|
|
90
|
+
noEmitOnError?: boolean;
|
|
91
|
+
noErrorTruncation?: boolean;
|
|
92
|
+
noFallthroughCasesInSwitch?: boolean;
|
|
93
|
+
noImplicitAny?: boolean;
|
|
94
|
+
noImplicitReturns?: boolean;
|
|
95
|
+
noImplicitThis?: boolean;
|
|
96
|
+
noStrictGenericChecks?: boolean;
|
|
97
|
+
noUnusedLocals?: boolean;
|
|
98
|
+
noUnusedParameters?: boolean;
|
|
99
|
+
noImplicitUseStrict?: boolean;
|
|
100
|
+
noPropertyAccessFromIndexSignature?: boolean;
|
|
101
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
102
|
+
noLib?: boolean;
|
|
103
|
+
noResolve?: boolean;
|
|
104
|
+
noUncheckedIndexedAccess?: boolean;
|
|
105
|
+
out?: string;
|
|
106
|
+
outDir?: string;
|
|
107
|
+
outFile?: string;
|
|
108
|
+
paths?: typescript.MapLike<string[]>;
|
|
109
|
+
preserveConstEnums?: boolean;
|
|
110
|
+
noImplicitOverride?: boolean;
|
|
111
|
+
preserveSymlinks?: boolean;
|
|
112
|
+
preserveValueImports?: boolean;
|
|
113
|
+
project?: string;
|
|
114
|
+
reactNamespace?: string;
|
|
115
|
+
jsxFactory?: string;
|
|
116
|
+
jsxFragmentFactory?: string;
|
|
117
|
+
jsxImportSource?: string;
|
|
118
|
+
composite?: boolean;
|
|
119
|
+
incremental?: boolean;
|
|
120
|
+
tsBuildInfoFile?: string;
|
|
121
|
+
removeComments?: boolean;
|
|
122
|
+
resolvePackageJsonExports?: boolean;
|
|
123
|
+
resolvePackageJsonImports?: boolean;
|
|
124
|
+
rewriteRelativeImportExtensions?: boolean;
|
|
125
|
+
rootDir?: string;
|
|
126
|
+
rootDirs?: string[];
|
|
127
|
+
skipLibCheck?: boolean;
|
|
128
|
+
skipDefaultLibCheck?: boolean;
|
|
129
|
+
sourceMap?: boolean;
|
|
130
|
+
sourceRoot?: string;
|
|
131
|
+
strict?: boolean;
|
|
132
|
+
strictFunctionTypes?: boolean;
|
|
133
|
+
strictBindCallApply?: boolean;
|
|
134
|
+
strictNullChecks?: boolean;
|
|
135
|
+
strictPropertyInitialization?: boolean;
|
|
136
|
+
strictBuiltinIteratorReturn?: boolean;
|
|
137
|
+
stripInternal?: boolean;
|
|
138
|
+
suppressExcessPropertyErrors?: boolean;
|
|
139
|
+
suppressImplicitAnyIndexErrors?: boolean;
|
|
140
|
+
target?: typescript.ScriptTarget;
|
|
141
|
+
traceResolution?: boolean;
|
|
142
|
+
useUnknownInCatchVariables?: boolean;
|
|
143
|
+
noUncheckedSideEffectImports?: boolean;
|
|
144
|
+
resolveJsonModule?: boolean;
|
|
145
|
+
types?: string[];
|
|
146
|
+
typeRoots?: string[];
|
|
147
|
+
verbatimModuleSyntax?: boolean;
|
|
148
|
+
erasableSyntaxOnly?: boolean;
|
|
149
|
+
esModuleInterop?: boolean;
|
|
150
|
+
useDefineForClassFields?: boolean;
|
|
151
|
+
};
|
|
152
|
+
extends?: string;
|
|
153
|
+
};
|
|
154
|
+
declare const mergeConfigContent: (tsconfigs: string[], cwd: string, debug?: boolean) => TsConfig | {
|
|
155
|
+
include?: string[];
|
|
156
|
+
exclude?: string[];
|
|
38
157
|
compilerOptions: {
|
|
39
|
-
[x: string]:
|
|
40
|
-
allowImportingTsExtensions?: boolean
|
|
41
|
-
allowJs?: boolean
|
|
42
|
-
allowArbitraryExtensions?: boolean
|
|
43
|
-
allowSyntheticDefaultImports?: boolean
|
|
44
|
-
allowUmdGlobalAccess?: boolean
|
|
45
|
-
allowUnreachableCode?: boolean
|
|
46
|
-
allowUnusedLabels?: boolean
|
|
47
|
-
alwaysStrict?: boolean
|
|
48
|
-
baseUrl?: string
|
|
49
|
-
charset?: string
|
|
50
|
-
checkJs?: boolean
|
|
51
|
-
customConditions?: string[]
|
|
52
|
-
declaration?: boolean
|
|
53
|
-
declarationMap?: boolean
|
|
54
|
-
emitDeclarationOnly?: boolean
|
|
55
|
-
declarationDir?: string
|
|
56
|
-
disableSizeLimit?: boolean
|
|
57
|
-
disableSourceOfProjectReferenceRedirect?: boolean
|
|
58
|
-
disableSolutionSearching?: boolean
|
|
59
|
-
disableReferencedProjectLoad?: boolean
|
|
60
|
-
downlevelIteration?: boolean
|
|
61
|
-
emitBOM?: boolean
|
|
62
|
-
emitDecoratorMetadata?: boolean
|
|
63
|
-
exactOptionalPropertyTypes?: boolean
|
|
64
|
-
experimentalDecorators?: boolean
|
|
65
|
-
forceConsistentCasingInFileNames?: boolean
|
|
66
|
-
ignoreDeprecations?: string
|
|
67
|
-
importHelpers?: boolean
|
|
68
|
-
importsNotUsedAsValues?: typescript.ImportsNotUsedAsValues
|
|
69
|
-
inlineSourceMap?: boolean
|
|
70
|
-
inlineSources?: boolean
|
|
71
|
-
isolatedModules?: boolean
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
158
|
+
[x: string]: typescript.CompilerOptionsValue | typescript.TsConfigSourceFile;
|
|
159
|
+
allowImportingTsExtensions?: boolean;
|
|
160
|
+
allowJs?: boolean;
|
|
161
|
+
allowArbitraryExtensions?: boolean;
|
|
162
|
+
allowSyntheticDefaultImports?: boolean;
|
|
163
|
+
allowUmdGlobalAccess?: boolean;
|
|
164
|
+
allowUnreachableCode?: boolean;
|
|
165
|
+
allowUnusedLabels?: boolean;
|
|
166
|
+
alwaysStrict?: boolean;
|
|
167
|
+
baseUrl?: string;
|
|
168
|
+
charset?: string;
|
|
169
|
+
checkJs?: boolean;
|
|
170
|
+
customConditions?: string[];
|
|
171
|
+
declaration?: boolean;
|
|
172
|
+
declarationMap?: boolean;
|
|
173
|
+
emitDeclarationOnly?: boolean;
|
|
174
|
+
declarationDir?: string;
|
|
175
|
+
disableSizeLimit?: boolean;
|
|
176
|
+
disableSourceOfProjectReferenceRedirect?: boolean;
|
|
177
|
+
disableSolutionSearching?: boolean;
|
|
178
|
+
disableReferencedProjectLoad?: boolean;
|
|
179
|
+
downlevelIteration?: boolean;
|
|
180
|
+
emitBOM?: boolean;
|
|
181
|
+
emitDecoratorMetadata?: boolean;
|
|
182
|
+
exactOptionalPropertyTypes?: boolean;
|
|
183
|
+
experimentalDecorators?: boolean;
|
|
184
|
+
forceConsistentCasingInFileNames?: boolean;
|
|
185
|
+
ignoreDeprecations?: string;
|
|
186
|
+
importHelpers?: boolean;
|
|
187
|
+
importsNotUsedAsValues?: typescript.ImportsNotUsedAsValues;
|
|
188
|
+
inlineSourceMap?: boolean;
|
|
189
|
+
inlineSources?: boolean;
|
|
190
|
+
isolatedModules?: boolean;
|
|
191
|
+
isolatedDeclarations?: boolean;
|
|
192
|
+
jsx?: typescript.JsxEmit;
|
|
193
|
+
keyofStringsOnly?: boolean;
|
|
194
|
+
lib?: string[];
|
|
195
|
+
libReplacement?: boolean;
|
|
196
|
+
locale?: string;
|
|
197
|
+
mapRoot?: string;
|
|
198
|
+
maxNodeModuleJsDepth?: number;
|
|
199
|
+
module?: typescript.ModuleKind;
|
|
200
|
+
moduleResolution?: typescript.ModuleResolutionKind;
|
|
201
|
+
moduleSuffixes?: string[];
|
|
202
|
+
moduleDetection?: typescript.ModuleDetectionKind;
|
|
203
|
+
newLine?: typescript.NewLineKind;
|
|
204
|
+
noEmit?: boolean;
|
|
205
|
+
noCheck?: boolean;
|
|
206
|
+
noEmitHelpers?: boolean;
|
|
207
|
+
noEmitOnError?: boolean;
|
|
208
|
+
noErrorTruncation?: boolean;
|
|
209
|
+
noFallthroughCasesInSwitch?: boolean;
|
|
210
|
+
noImplicitAny?: boolean;
|
|
211
|
+
noImplicitReturns?: boolean;
|
|
212
|
+
noImplicitThis?: boolean;
|
|
213
|
+
noStrictGenericChecks?: boolean;
|
|
214
|
+
noUnusedLocals?: boolean;
|
|
215
|
+
noUnusedParameters?: boolean;
|
|
216
|
+
noImplicitUseStrict?: boolean;
|
|
217
|
+
noPropertyAccessFromIndexSignature?: boolean;
|
|
218
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
219
|
+
noLib?: boolean;
|
|
220
|
+
noResolve?: boolean;
|
|
221
|
+
noUncheckedIndexedAccess?: boolean;
|
|
222
|
+
out?: string;
|
|
223
|
+
outDir?: string;
|
|
224
|
+
outFile?: string;
|
|
225
|
+
paths?: typescript.MapLike<string[]>;
|
|
226
|
+
preserveConstEnums?: boolean;
|
|
227
|
+
noImplicitOverride?: boolean;
|
|
228
|
+
preserveSymlinks?: boolean;
|
|
229
|
+
preserveValueImports?: boolean;
|
|
230
|
+
project?: string;
|
|
231
|
+
reactNamespace?: string;
|
|
232
|
+
jsxFactory?: string;
|
|
233
|
+
jsxFragmentFactory?: string;
|
|
234
|
+
jsxImportSource?: string;
|
|
235
|
+
composite?: boolean;
|
|
236
|
+
incremental?: boolean;
|
|
237
|
+
tsBuildInfoFile?: string;
|
|
238
|
+
removeComments?: boolean;
|
|
239
|
+
resolvePackageJsonExports?: boolean;
|
|
240
|
+
resolvePackageJsonImports?: boolean;
|
|
241
|
+
rewriteRelativeImportExtensions?: boolean;
|
|
242
|
+
rootDir?: string;
|
|
243
|
+
rootDirs?: string[];
|
|
244
|
+
skipLibCheck?: boolean;
|
|
245
|
+
skipDefaultLibCheck?: boolean;
|
|
246
|
+
sourceMap?: boolean;
|
|
247
|
+
sourceRoot?: string;
|
|
248
|
+
strict?: boolean;
|
|
249
|
+
strictFunctionTypes?: boolean;
|
|
250
|
+
strictBindCallApply?: boolean;
|
|
251
|
+
strictNullChecks?: boolean;
|
|
252
|
+
strictPropertyInitialization?: boolean;
|
|
253
|
+
strictBuiltinIteratorReturn?: boolean;
|
|
254
|
+
stripInternal?: boolean;
|
|
255
|
+
suppressExcessPropertyErrors?: boolean;
|
|
256
|
+
suppressImplicitAnyIndexErrors?: boolean;
|
|
257
|
+
target?: typescript.ScriptTarget;
|
|
258
|
+
traceResolution?: boolean;
|
|
259
|
+
useUnknownInCatchVariables?: boolean;
|
|
260
|
+
noUncheckedSideEffectImports?: boolean;
|
|
261
|
+
resolveJsonModule?: boolean;
|
|
262
|
+
types?: string[];
|
|
263
|
+
typeRoots?: string[];
|
|
264
|
+
verbatimModuleSyntax?: boolean;
|
|
265
|
+
erasableSyntaxOnly?: boolean;
|
|
266
|
+
esModuleInterop?: boolean;
|
|
267
|
+
useDefineForClassFields?: boolean;
|
|
142
268
|
};
|
|
143
|
-
extends?: string
|
|
269
|
+
extends?: string;
|
|
144
270
|
};
|
|
145
|
-
declare const mergeConfigContent: (tsconfigs: string[], cwd: string, debug?: boolean) => TsConfig;
|
|
146
271
|
declare const writeTsconfig: (tsconfig: TsConfig, cwd: string, out: string, isTesting: boolean) => TsConfig;
|
|
147
|
-
declare const updateCompilerOptions: (compilerOptions
|
|
148
|
-
declare const parsePath: (path?: string, debug?: boolean) => CompilerOptions[
|
|
272
|
+
declare const updateCompilerOptions: (compilerOptions?: PartialCompilerOptions, currentCompilerOptions?: PartialCompilerOptions, updatedPath?: CompilerOptions["paths"]) => PartialCompilerOptions;
|
|
273
|
+
declare const parsePath: (path?: string, debug?: boolean) => CompilerOptions["paths"];
|
|
149
274
|
declare const mergeTsConfigs: ({ tsconfigs, exclude, include, compilerOptions, debug, out, path, isTesting, }: ConfigOptions) => TsConfig | undefined;
|
|
150
275
|
declare const script: ({ tsconfigs, exclude, include, compilerOptions, debug, out, path, isTesting, }: ConfigOptions) => TsConfig | undefined;
|
|
151
276
|
|
|
152
|
-
export { mergeTsConfigs as default, logger, mergeConfigContent, mergeConfigObjects, mergeTsConfigs, parsePath, resolveJSON, script, updateCompilerOptions, writeTsconfig };
|
|
277
|
+
export { mergeTsConfigs as default, logger, mergeConfigContent, mergeConfigObjects, mergeTsConfigs, parseJson, parsePath, resolveJSON, script, stripJsonComments, stripTrailingCommas, updateCompilerOptions, writeTsconfig };
|