merge-tsconfigs 0.0.2
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/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/index.cjs +2921 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +2910 -0
- package/package.json +109 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as typescript from 'typescript';
|
|
2
|
+
import { CompilerOptions } from 'typescript';
|
|
3
|
+
|
|
4
|
+
interface ConfigOptions {
|
|
5
|
+
tsconfigs?: string[];
|
|
6
|
+
debug?: boolean;
|
|
7
|
+
}
|
|
8
|
+
type LoggerParams = {
|
|
9
|
+
isDebugging?: boolean;
|
|
10
|
+
gap?: string;
|
|
11
|
+
emoji?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
};
|
|
14
|
+
interface TsConfig {
|
|
15
|
+
extends?: string;
|
|
16
|
+
compilerOptions?: CompilerOptions;
|
|
17
|
+
include?: string[];
|
|
18
|
+
exclude?: string[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const logger: ({ isDebugging, emoji, gap, name }: LoggerParams) => (type: string) => (section: string) => (message: string) => (err: unknown) => void;
|
|
22
|
+
declare function resolveJSON(path: string, debug?: boolean): TsConfig;
|
|
23
|
+
declare const mergeConfigContent: (tsconfigs: string[], debug?: boolean) => TsConfig;
|
|
24
|
+
declare const mergeTsConfigs: ({ tsconfigs, debug, }: ConfigOptions) => {
|
|
25
|
+
extends?: string | undefined;
|
|
26
|
+
compilerOptions?: typescript.CompilerOptions | undefined;
|
|
27
|
+
include?: string[] | undefined;
|
|
28
|
+
exclude?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
declare const script: ({ tsconfigs, debug, }: ConfigOptions) => {
|
|
31
|
+
extends?: string | undefined;
|
|
32
|
+
compilerOptions?: typescript.CompilerOptions | undefined;
|
|
33
|
+
include?: string[] | undefined;
|
|
34
|
+
exclude?: string[] | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
|
|
37
|
+
export { mergeTsConfigs as default, logger, mergeConfigContent, mergeTsConfigs, resolveJSON, script };
|