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.
@@ -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]: string | boolean | string[] | undefined;
5
+ [key: string]: CompilerOptions[keyof CompilerOptions] | 'delete' | undefined;
8
6
  }
9
- type PartialCompilerOptions = PartialDeep<CompilerOptions | CompilerOptionOverrides>;
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?: PartialDeep<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[] | undefined;
37
- exclude?: string[] | undefined;
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]: string | number | boolean | string[] | (string | number)[] | typescript.PluginImport[] | typescript.ProjectReference[] | type_fest_source_partial_deep.PartialObjectDeep<typescript.MapLike<string[]>, {}> | type_fest_source_partial_deep.PartialObjectDeep<typescript.TsConfigSourceFile, {}> | null | undefined;
40
- allowImportingTsExtensions?: boolean | undefined;
41
- allowJs?: boolean | undefined;
42
- allowArbitraryExtensions?: boolean | undefined;
43
- allowSyntheticDefaultImports?: boolean | undefined;
44
- allowUmdGlobalAccess?: boolean | undefined;
45
- allowUnreachableCode?: boolean | undefined;
46
- allowUnusedLabels?: boolean | undefined;
47
- alwaysStrict?: boolean | undefined;
48
- baseUrl?: string | undefined;
49
- charset?: string | undefined;
50
- checkJs?: boolean | undefined;
51
- customConditions?: string[] | undefined;
52
- declaration?: boolean | undefined;
53
- declarationMap?: boolean | undefined;
54
- emitDeclarationOnly?: boolean | undefined;
55
- declarationDir?: string | undefined;
56
- disableSizeLimit?: boolean | undefined;
57
- disableSourceOfProjectReferenceRedirect?: boolean | undefined;
58
- disableSolutionSearching?: boolean | undefined;
59
- disableReferencedProjectLoad?: boolean | undefined;
60
- downlevelIteration?: boolean | undefined;
61
- emitBOM?: boolean | undefined;
62
- emitDecoratorMetadata?: boolean | undefined;
63
- exactOptionalPropertyTypes?: boolean | undefined;
64
- experimentalDecorators?: boolean | undefined;
65
- forceConsistentCasingInFileNames?: boolean | undefined;
66
- ignoreDeprecations?: string | undefined;
67
- importHelpers?: boolean | undefined;
68
- importsNotUsedAsValues?: typescript.ImportsNotUsedAsValues | undefined;
69
- inlineSourceMap?: boolean | undefined;
70
- inlineSources?: boolean | undefined;
71
- isolatedModules?: boolean | undefined;
72
- jsx?: typescript.JsxEmit | undefined;
73
- keyofStringsOnly?: boolean | undefined;
74
- lib?: string[] | undefined;
75
- locale?: string | undefined;
76
- mapRoot?: string | undefined;
77
- maxNodeModuleJsDepth?: number | undefined;
78
- module?: typescript.ModuleKind | undefined;
79
- moduleResolution?: typescript.ModuleResolutionKind | undefined;
80
- moduleSuffixes?: string[] | undefined;
81
- moduleDetection?: typescript.ModuleDetectionKind | undefined;
82
- newLine?: typescript.NewLineKind | undefined;
83
- noEmit?: boolean | undefined;
84
- noEmitHelpers?: boolean | undefined;
85
- noEmitOnError?: boolean | undefined;
86
- noErrorTruncation?: boolean | undefined;
87
- noFallthroughCasesInSwitch?: boolean | undefined;
88
- noImplicitAny?: boolean | undefined;
89
- noImplicitReturns?: boolean | undefined;
90
- noImplicitThis?: boolean | undefined;
91
- noStrictGenericChecks?: boolean | undefined;
92
- noUnusedLocals?: boolean | undefined;
93
- noUnusedParameters?: boolean | undefined;
94
- noImplicitUseStrict?: boolean | undefined;
95
- noPropertyAccessFromIndexSignature?: boolean | undefined;
96
- assumeChangesOnlyAffectDirectDependencies?: boolean | undefined;
97
- noLib?: boolean | undefined;
98
- noResolve?: boolean | undefined;
99
- noUncheckedIndexedAccess?: boolean | undefined;
100
- out?: string | undefined;
101
- outDir?: string | undefined;
102
- outFile?: string | undefined;
103
- paths?: type_fest_source_partial_deep.PartialObjectDeep<typescript.MapLike<string[]>, {}> | undefined;
104
- preserveConstEnums?: boolean | undefined;
105
- noImplicitOverride?: boolean | undefined;
106
- preserveSymlinks?: boolean | undefined;
107
- preserveValueImports?: boolean | undefined;
108
- project?: string | undefined;
109
- reactNamespace?: string | undefined;
110
- jsxFactory?: string | undefined;
111
- jsxFragmentFactory?: string | undefined;
112
- jsxImportSource?: string | undefined;
113
- composite?: boolean | undefined;
114
- incremental?: boolean | undefined;
115
- tsBuildInfoFile?: string | undefined;
116
- removeComments?: boolean | undefined;
117
- resolvePackageJsonExports?: boolean | undefined;
118
- resolvePackageJsonImports?: boolean | undefined;
119
- rootDir?: string | undefined;
120
- rootDirs?: string[] | undefined;
121
- skipLibCheck?: boolean | undefined;
122
- skipDefaultLibCheck?: boolean | undefined;
123
- sourceMap?: boolean | undefined;
124
- sourceRoot?: string | undefined;
125
- strict?: boolean | undefined;
126
- strictFunctionTypes?: boolean | undefined;
127
- strictBindCallApply?: boolean | undefined;
128
- strictNullChecks?: boolean | undefined;
129
- strictPropertyInitialization?: boolean | undefined;
130
- stripInternal?: boolean | undefined;
131
- suppressExcessPropertyErrors?: boolean | undefined;
132
- suppressImplicitAnyIndexErrors?: boolean | undefined;
133
- target?: typescript.ScriptTarget | undefined;
134
- traceResolution?: boolean | undefined;
135
- useUnknownInCatchVariables?: boolean | undefined;
136
- resolveJsonModule?: boolean | undefined;
137
- types?: string[] | undefined;
138
- typeRoots?: string[] | undefined;
139
- verbatimModuleSyntax?: boolean | undefined;
140
- esModuleInterop?: boolean | undefined;
141
- useDefineForClassFields?: boolean | undefined;
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 | undefined;
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: PartialCompilerOptions | undefined, currentCompilerOptions: PartialCompilerOptions, updatedPath: CompilerOptions['paths']) => PartialCompilerOptions;
148
- declare const parsePath: (path?: string, debug?: boolean) => CompilerOptions['paths'];
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 };