@suseejs/types 0.1.3 → 0.1.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/dist/commonjs/index.d.ts +119 -49
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -2
- package/dist/commonjs/index.js.map +1 -1
- package/dist/index.d.ts +119 -49
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -1,45 +1,105 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
declare const pkgName = "SU-SEE";
|
|
3
|
-
|
|
1
|
+
import type ts from "typescript";
|
|
2
|
+
export declare const pkgName = "SU-SEE";
|
|
3
|
+
export type Target = "commonjs" | "esm" | "both";
|
|
4
|
+
export interface DepsFile {
|
|
4
5
|
file: string;
|
|
5
6
|
content: string;
|
|
6
7
|
}
|
|
7
|
-
interface NamesSet {
|
|
8
|
+
export interface NamesSet {
|
|
8
9
|
base: string;
|
|
9
10
|
file: string;
|
|
10
11
|
newName: string;
|
|
11
12
|
isEd?: boolean;
|
|
12
13
|
}
|
|
13
|
-
type NamesSets = NamesSet[];
|
|
14
|
-
type DuplicatesNameMap = Map<string, Set<{
|
|
14
|
+
export type NamesSets = NamesSet[];
|
|
15
|
+
export type DuplicatesNameMap = Map<string, Set<{
|
|
15
16
|
file: string;
|
|
16
17
|
}>>;
|
|
17
|
-
type BundleHandler = ({ file, content }: DepsFile) => DepsFile;
|
|
18
|
-
|
|
18
|
+
export type BundleHandler = ({ file, content }: DepsFile) => DepsFile;
|
|
19
|
+
export type NodeVisit = (node: ts.Node) => ts.Node;
|
|
20
|
+
export type BundleVisitorFunc = (context: ts.TransformationContext, { file, content }: DepsFile, sourceFile: ts.SourceFile, ...args: any[]) => NodeVisit;
|
|
21
|
+
export interface NamesMap {
|
|
19
22
|
base: string;
|
|
20
23
|
file: string;
|
|
21
24
|
short: string;
|
|
22
25
|
oldName: string;
|
|
23
26
|
}
|
|
24
|
-
type
|
|
27
|
+
export type OutFiles = {
|
|
28
|
+
commonjs: string | undefined;
|
|
29
|
+
commonjsTypes: string | undefined;
|
|
30
|
+
esm: string | undefined;
|
|
31
|
+
esmTypes: string | undefined;
|
|
32
|
+
main: string | undefined;
|
|
33
|
+
module: string | undefined;
|
|
34
|
+
types: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
export type Exports = Record<string, {
|
|
37
|
+
import?: {
|
|
38
|
+
default: string;
|
|
39
|
+
types: string;
|
|
40
|
+
};
|
|
41
|
+
require?: {
|
|
42
|
+
default: string;
|
|
43
|
+
types: string;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
export type LocalHookReturn = string | ts.Node | BundleHandler;
|
|
47
|
+
export type LocalHookReturnFun<P extends any[] = any[], M = LocalHookReturn> = (...args: P) => M;
|
|
48
|
+
export type LocalHookKey = "commonJsHook" | "removeCommonJsExports" | "removeEsmExports";
|
|
49
|
+
export type LocalHook<P extends any[] = any[], M = LocalHookReturn> = {
|
|
50
|
+
name: LocalHookKey;
|
|
51
|
+
fun: LocalHookReturnFun<P, M>;
|
|
52
|
+
};
|
|
53
|
+
export interface DepsObj {
|
|
54
|
+
depFiles: DepsFile[];
|
|
55
|
+
modOpts: {
|
|
56
|
+
commonjs: () => {
|
|
57
|
+
isMain: boolean;
|
|
58
|
+
compilerOptions: ts.CompilerOptions;
|
|
59
|
+
out_dir: string;
|
|
60
|
+
};
|
|
61
|
+
esm: () => {
|
|
62
|
+
isMain: boolean;
|
|
63
|
+
compilerOptions: ts.CompilerOptions;
|
|
64
|
+
out_dir: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
generalOptions: ts.CompilerOptions;
|
|
68
|
+
}
|
|
69
|
+
export type RequireImportObject = {
|
|
70
|
+
isNamespace: boolean;
|
|
71
|
+
isTypeOnly: boolean;
|
|
72
|
+
isTypeNamespace: boolean;
|
|
73
|
+
source: string;
|
|
74
|
+
importedString: string | undefined;
|
|
75
|
+
importedObject: string[] | undefined;
|
|
76
|
+
};
|
|
77
|
+
export type TypeObj = Record<string, string[]>;
|
|
78
|
+
export type PrePostPluginAsyncCallback = (code: string, file?: string) => Promise<string>;
|
|
79
|
+
export type PrePostPluginCallback = (code: string, file?: string) => string;
|
|
80
|
+
export type ASTPluginCallback = (node: ts.Node, factory: ts.NodeFactory, file: string) => ts.Node;
|
|
81
|
+
export type ASTPluginAsyncCallback = (node: ts.Node, factory: ts.NodeFactory, file: string) => Promise<ts.Node>;
|
|
82
|
+
export type DependencyPluginAsyncCallback = (files: DepsFile[]) => Promise<DepsFile[]>;
|
|
83
|
+
export type DependencyPluginCallback = (files: DepsFile[]) => DepsFile[];
|
|
84
|
+
export type PostProcessPlugin = {
|
|
25
85
|
type: "post-process";
|
|
26
86
|
async: true;
|
|
27
|
-
func:
|
|
87
|
+
func: PrePostPluginAsyncCallback;
|
|
28
88
|
} | {
|
|
29
89
|
type: "post-process";
|
|
30
90
|
async: false;
|
|
31
|
-
func:
|
|
91
|
+
func: PrePostPluginCallback;
|
|
32
92
|
};
|
|
33
|
-
type
|
|
93
|
+
export type PreProcessPlugin = {
|
|
34
94
|
type: "pre-process";
|
|
35
95
|
async: true;
|
|
36
|
-
func:
|
|
96
|
+
func: PrePostPluginAsyncCallback;
|
|
37
97
|
} | {
|
|
38
98
|
type: "pre-process";
|
|
39
99
|
async: false;
|
|
40
|
-
func:
|
|
100
|
+
func: PrePostPluginCallback;
|
|
41
101
|
};
|
|
42
|
-
type
|
|
102
|
+
export type DependencyPlugin = {
|
|
43
103
|
type: "dependency";
|
|
44
104
|
async: true;
|
|
45
105
|
func: (files: DepsFile[]) => Promise<DepsFile[]>;
|
|
@@ -48,36 +108,17 @@ type DependencyExtension = {
|
|
|
48
108
|
async: false;
|
|
49
109
|
func: (files: DepsFile[]) => DepsFile[];
|
|
50
110
|
};
|
|
51
|
-
type
|
|
52
|
-
type: "ast";
|
|
53
|
-
async: true;
|
|
54
|
-
func: (sourceFile: ts.SourceFile) => Promise<ts.SourceFile>;
|
|
55
|
-
} | {
|
|
111
|
+
export type ASTPlugin = {
|
|
56
112
|
type: "ast";
|
|
57
|
-
|
|
58
|
-
func: (sourceFile: ts.SourceFile) => ts.SourceFile;
|
|
59
|
-
};
|
|
60
|
-
type SuseeExtension = PostProcessExtension | PreProcessExtension | DependencyExtension | ASTExtension;
|
|
61
|
-
type OutFiles = {
|
|
62
|
-
commonjs: string | undefined;
|
|
63
|
-
commonjsTypes: string | undefined;
|
|
64
|
-
esm: string | undefined;
|
|
65
|
-
esmTypes: string | undefined;
|
|
66
|
-
main: string | undefined;
|
|
67
|
-
module: string | undefined;
|
|
68
|
-
types: string | undefined;
|
|
113
|
+
func: ASTPluginCallback;
|
|
69
114
|
};
|
|
70
|
-
type
|
|
71
|
-
type
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
default: string;
|
|
78
|
-
types: string;
|
|
79
|
-
};
|
|
80
|
-
}>;
|
|
115
|
+
export type ASTPluginParserReturnFn = (fileName: string, sourceCode: string, compilerOptions: ts.CompilerOptions) => string;
|
|
116
|
+
export type PrePostProcessPluginParserReturnFn = (code: string, file?: string) => string;
|
|
117
|
+
export type DependencyPluginParserReturnFn = (files: DepsFile[]) => DepsFile[];
|
|
118
|
+
export type PluginParserReturnFn = ASTPluginParserReturnFn | PrePostProcessPluginParserReturnFn | DependencyPluginParserReturnFn;
|
|
119
|
+
export type SuseePluginFunc = (...args: any[]) => ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin;
|
|
120
|
+
export type SuseePlugin = ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin | SuseePluginFunc;
|
|
121
|
+
export type SuseePlugins = SuseePlugin[];
|
|
81
122
|
type NodeJsOutput = {
|
|
82
123
|
target: "nodejs";
|
|
83
124
|
/**
|
|
@@ -107,7 +148,7 @@ type WebOutput = {
|
|
|
107
148
|
/**
|
|
108
149
|
* Entry point for SuSee configuration
|
|
109
150
|
*/
|
|
110
|
-
|
|
151
|
+
export interface EntryPoint {
|
|
111
152
|
/**
|
|
112
153
|
* Entry of file path of package
|
|
113
154
|
*
|
|
@@ -137,11 +178,11 @@ type EntryPoint = {
|
|
|
137
178
|
* default - true
|
|
138
179
|
*/
|
|
139
180
|
renameDuplicates?: boolean;
|
|
140
|
-
}
|
|
181
|
+
}
|
|
141
182
|
/**
|
|
142
183
|
* Configuration for Susee Bundler
|
|
143
184
|
*/
|
|
144
|
-
interface SuSeeConfig {
|
|
185
|
+
export interface SuSeeConfig {
|
|
145
186
|
/**
|
|
146
187
|
* Array of entry points object
|
|
147
188
|
*
|
|
@@ -153,8 +194,37 @@ interface SuSeeConfig {
|
|
|
153
194
|
*
|
|
154
195
|
* default - []
|
|
155
196
|
*/
|
|
156
|
-
|
|
197
|
+
plugins?: SuseePlugins;
|
|
198
|
+
}
|
|
199
|
+
export type TsCompilerOptionsReturn = {
|
|
200
|
+
defaultCompilerOptions: ts.CompilerOptions;
|
|
201
|
+
commonJsCompilerOptions: () => ts.CompilerOptions;
|
|
202
|
+
esmCompilerOptions: () => ts.CompilerOptions;
|
|
203
|
+
webCompilerOptions: () => ts.CompilerOptions;
|
|
204
|
+
};
|
|
205
|
+
export interface InitCollationsResult {
|
|
206
|
+
dependencyFilesObject: DepsFile[];
|
|
207
|
+
tsOptions: TsCompilerOptionsReturn;
|
|
208
|
+
plugins: SuseePlugin[];
|
|
209
|
+
includeNodeModules: boolean;
|
|
210
|
+
allowRenameDuplicates: boolean;
|
|
211
|
+
allowUpdatePackageJson: boolean;
|
|
212
|
+
outputTarget: "nodejs" | "web";
|
|
213
|
+
entryFileName: string;
|
|
214
|
+
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
215
|
+
exportPath: "." | `./${string}` | undefined;
|
|
216
|
+
}
|
|
217
|
+
export interface BundleResult {
|
|
218
|
+
tsOptions: TsCompilerOptionsReturn;
|
|
219
|
+
plugins: SuseePlugin[];
|
|
220
|
+
includeNodeModules: boolean;
|
|
221
|
+
allowRenameDuplicates: boolean;
|
|
222
|
+
allowUpdatePackageJson: boolean;
|
|
223
|
+
outputTarget: "nodejs" | "web";
|
|
224
|
+
entryFileName: string;
|
|
225
|
+
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
226
|
+
exportPath: "." | `./${string}` | undefined;
|
|
227
|
+
bundleContent: string;
|
|
157
228
|
}
|
|
158
|
-
export
|
|
159
|
-
export { pkgName };
|
|
229
|
+
export {};
|
|
160
230
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,eAAO,MAAM,OAAO,WAAW,CAAC;AAEhC,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,CAAC;AACjD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AACD,MAAM,MAAM,SAAS,GAAG,QAAQ,EAAE,CAAC;AAEnC,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC;AAEnE,MAAM,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EA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AAE,GAAG,GAAG,KAAK,MAAM,EAAE,GAAG,SAAS,CAAC;CAC7C;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,uBAAuB,CAAC;IACnC,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;IAChC,YAAY,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;IACtD,UAAU,EAAE,GAAG,GAAG,KAAK,MAAM,EAAE,GAAG,SAAS,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAG,QAAQ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,45 +1,105 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
declare const pkgName = "SU-SEE";
|
|
3
|
-
|
|
1
|
+
import type ts from "typescript";
|
|
2
|
+
export declare const pkgName = "SU-SEE";
|
|
3
|
+
export type Target = "commonjs" | "esm" | "both";
|
|
4
|
+
export interface DepsFile {
|
|
4
5
|
file: string;
|
|
5
6
|
content: string;
|
|
6
7
|
}
|
|
7
|
-
interface NamesSet {
|
|
8
|
+
export interface NamesSet {
|
|
8
9
|
base: string;
|
|
9
10
|
file: string;
|
|
10
11
|
newName: string;
|
|
11
12
|
isEd?: boolean;
|
|
12
13
|
}
|
|
13
|
-
type NamesSets = NamesSet[];
|
|
14
|
-
type DuplicatesNameMap = Map<string, Set<{
|
|
14
|
+
export type NamesSets = NamesSet[];
|
|
15
|
+
export type DuplicatesNameMap = Map<string, Set<{
|
|
15
16
|
file: string;
|
|
16
17
|
}>>;
|
|
17
|
-
type BundleHandler = ({ file, content }: DepsFile) => DepsFile;
|
|
18
|
-
|
|
18
|
+
export type BundleHandler = ({ file, content }: DepsFile) => DepsFile;
|
|
19
|
+
export type NodeVisit = (node: ts.Node) => ts.Node;
|
|
20
|
+
export type BundleVisitorFunc = (context: ts.TransformationContext, { file, content }: DepsFile, sourceFile: ts.SourceFile, ...args: any[]) => NodeVisit;
|
|
21
|
+
export interface NamesMap {
|
|
19
22
|
base: string;
|
|
20
23
|
file: string;
|
|
21
24
|
short: string;
|
|
22
25
|
oldName: string;
|
|
23
26
|
}
|
|
24
|
-
type
|
|
27
|
+
export type OutFiles = {
|
|
28
|
+
commonjs: string | undefined;
|
|
29
|
+
commonjsTypes: string | undefined;
|
|
30
|
+
esm: string | undefined;
|
|
31
|
+
esmTypes: string | undefined;
|
|
32
|
+
main: string | undefined;
|
|
33
|
+
module: string | undefined;
|
|
34
|
+
types: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
export type Exports = Record<string, {
|
|
37
|
+
import?: {
|
|
38
|
+
default: string;
|
|
39
|
+
types: string;
|
|
40
|
+
};
|
|
41
|
+
require?: {
|
|
42
|
+
default: string;
|
|
43
|
+
types: string;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
export type LocalHookReturn = string | ts.Node | BundleHandler;
|
|
47
|
+
export type LocalHookReturnFun<P extends any[] = any[], M = LocalHookReturn> = (...args: P) => M;
|
|
48
|
+
export type LocalHookKey = "commonJsHook" | "removeCommonJsExports" | "removeEsmExports";
|
|
49
|
+
export type LocalHook<P extends any[] = any[], M = LocalHookReturn> = {
|
|
50
|
+
name: LocalHookKey;
|
|
51
|
+
fun: LocalHookReturnFun<P, M>;
|
|
52
|
+
};
|
|
53
|
+
export interface DepsObj {
|
|
54
|
+
depFiles: DepsFile[];
|
|
55
|
+
modOpts: {
|
|
56
|
+
commonjs: () => {
|
|
57
|
+
isMain: boolean;
|
|
58
|
+
compilerOptions: ts.CompilerOptions;
|
|
59
|
+
out_dir: string;
|
|
60
|
+
};
|
|
61
|
+
esm: () => {
|
|
62
|
+
isMain: boolean;
|
|
63
|
+
compilerOptions: ts.CompilerOptions;
|
|
64
|
+
out_dir: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
generalOptions: ts.CompilerOptions;
|
|
68
|
+
}
|
|
69
|
+
export type RequireImportObject = {
|
|
70
|
+
isNamespace: boolean;
|
|
71
|
+
isTypeOnly: boolean;
|
|
72
|
+
isTypeNamespace: boolean;
|
|
73
|
+
source: string;
|
|
74
|
+
importedString: string | undefined;
|
|
75
|
+
importedObject: string[] | undefined;
|
|
76
|
+
};
|
|
77
|
+
export type TypeObj = Record<string, string[]>;
|
|
78
|
+
export type PrePostPluginAsyncCallback = (code: string, file?: string) => Promise<string>;
|
|
79
|
+
export type PrePostPluginCallback = (code: string, file?: string) => string;
|
|
80
|
+
export type ASTPluginCallback = (node: ts.Node, factory: ts.NodeFactory, file: string) => ts.Node;
|
|
81
|
+
export type ASTPluginAsyncCallback = (node: ts.Node, factory: ts.NodeFactory, file: string) => Promise<ts.Node>;
|
|
82
|
+
export type DependencyPluginAsyncCallback = (files: DepsFile[]) => Promise<DepsFile[]>;
|
|
83
|
+
export type DependencyPluginCallback = (files: DepsFile[]) => DepsFile[];
|
|
84
|
+
export type PostProcessPlugin = {
|
|
25
85
|
type: "post-process";
|
|
26
86
|
async: true;
|
|
27
|
-
func:
|
|
87
|
+
func: PrePostPluginAsyncCallback;
|
|
28
88
|
} | {
|
|
29
89
|
type: "post-process";
|
|
30
90
|
async: false;
|
|
31
|
-
func:
|
|
91
|
+
func: PrePostPluginCallback;
|
|
32
92
|
};
|
|
33
|
-
type
|
|
93
|
+
export type PreProcessPlugin = {
|
|
34
94
|
type: "pre-process";
|
|
35
95
|
async: true;
|
|
36
|
-
func:
|
|
96
|
+
func: PrePostPluginAsyncCallback;
|
|
37
97
|
} | {
|
|
38
98
|
type: "pre-process";
|
|
39
99
|
async: false;
|
|
40
|
-
func:
|
|
100
|
+
func: PrePostPluginCallback;
|
|
41
101
|
};
|
|
42
|
-
type
|
|
102
|
+
export type DependencyPlugin = {
|
|
43
103
|
type: "dependency";
|
|
44
104
|
async: true;
|
|
45
105
|
func: (files: DepsFile[]) => Promise<DepsFile[]>;
|
|
@@ -48,36 +108,17 @@ type DependencyExtension = {
|
|
|
48
108
|
async: false;
|
|
49
109
|
func: (files: DepsFile[]) => DepsFile[];
|
|
50
110
|
};
|
|
51
|
-
type
|
|
52
|
-
type: "ast";
|
|
53
|
-
async: true;
|
|
54
|
-
func: (sourceFile: ts.SourceFile) => Promise<ts.SourceFile>;
|
|
55
|
-
} | {
|
|
111
|
+
export type ASTPlugin = {
|
|
56
112
|
type: "ast";
|
|
57
|
-
|
|
58
|
-
func: (sourceFile: ts.SourceFile) => ts.SourceFile;
|
|
59
|
-
};
|
|
60
|
-
type SuseeExtension = PostProcessExtension | PreProcessExtension | DependencyExtension | ASTExtension;
|
|
61
|
-
type OutFiles = {
|
|
62
|
-
commonjs: string | undefined;
|
|
63
|
-
commonjsTypes: string | undefined;
|
|
64
|
-
esm: string | undefined;
|
|
65
|
-
esmTypes: string | undefined;
|
|
66
|
-
main: string | undefined;
|
|
67
|
-
module: string | undefined;
|
|
68
|
-
types: string | undefined;
|
|
113
|
+
func: ASTPluginCallback;
|
|
69
114
|
};
|
|
70
|
-
type
|
|
71
|
-
type
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
default: string;
|
|
78
|
-
types: string;
|
|
79
|
-
};
|
|
80
|
-
}>;
|
|
115
|
+
export type ASTPluginParserReturnFn = (fileName: string, sourceCode: string, compilerOptions: ts.CompilerOptions) => string;
|
|
116
|
+
export type PrePostProcessPluginParserReturnFn = (code: string, file?: string) => string;
|
|
117
|
+
export type DependencyPluginParserReturnFn = (files: DepsFile[]) => DepsFile[];
|
|
118
|
+
export type PluginParserReturnFn = ASTPluginParserReturnFn | PrePostProcessPluginParserReturnFn | DependencyPluginParserReturnFn;
|
|
119
|
+
export type SuseePluginFunc = (...args: any[]) => ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin;
|
|
120
|
+
export type SuseePlugin = ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin | SuseePluginFunc;
|
|
121
|
+
export type SuseePlugins = SuseePlugin[];
|
|
81
122
|
type NodeJsOutput = {
|
|
82
123
|
target: "nodejs";
|
|
83
124
|
/**
|
|
@@ -107,7 +148,7 @@ type WebOutput = {
|
|
|
107
148
|
/**
|
|
108
149
|
* Entry point for SuSee configuration
|
|
109
150
|
*/
|
|
110
|
-
|
|
151
|
+
export interface EntryPoint {
|
|
111
152
|
/**
|
|
112
153
|
* Entry of file path of package
|
|
113
154
|
*
|
|
@@ -137,11 +178,11 @@ type EntryPoint = {
|
|
|
137
178
|
* default - true
|
|
138
179
|
*/
|
|
139
180
|
renameDuplicates?: boolean;
|
|
140
|
-
}
|
|
181
|
+
}
|
|
141
182
|
/**
|
|
142
183
|
* Configuration for Susee Bundler
|
|
143
184
|
*/
|
|
144
|
-
interface SuSeeConfig {
|
|
185
|
+
export interface SuSeeConfig {
|
|
145
186
|
/**
|
|
146
187
|
* Array of entry points object
|
|
147
188
|
*
|
|
@@ -153,8 +194,37 @@ interface SuSeeConfig {
|
|
|
153
194
|
*
|
|
154
195
|
* default - []
|
|
155
196
|
*/
|
|
156
|
-
|
|
197
|
+
plugins?: SuseePlugins;
|
|
198
|
+
}
|
|
199
|
+
export type TsCompilerOptionsReturn = {
|
|
200
|
+
defaultCompilerOptions: ts.CompilerOptions;
|
|
201
|
+
commonJsCompilerOptions: () => ts.CompilerOptions;
|
|
202
|
+
esmCompilerOptions: () => ts.CompilerOptions;
|
|
203
|
+
webCompilerOptions: () => ts.CompilerOptions;
|
|
204
|
+
};
|
|
205
|
+
export interface InitCollationsResult {
|
|
206
|
+
dependencyFilesObject: DepsFile[];
|
|
207
|
+
tsOptions: TsCompilerOptionsReturn;
|
|
208
|
+
plugins: SuseePlugin[];
|
|
209
|
+
includeNodeModules: boolean;
|
|
210
|
+
allowRenameDuplicates: boolean;
|
|
211
|
+
allowUpdatePackageJson: boolean;
|
|
212
|
+
outputTarget: "nodejs" | "web";
|
|
213
|
+
entryFileName: string;
|
|
214
|
+
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
215
|
+
exportPath: "." | `./${string}` | undefined;
|
|
216
|
+
}
|
|
217
|
+
export interface BundleResult {
|
|
218
|
+
tsOptions: TsCompilerOptionsReturn;
|
|
219
|
+
plugins: SuseePlugin[];
|
|
220
|
+
includeNodeModules: boolean;
|
|
221
|
+
allowRenameDuplicates: boolean;
|
|
222
|
+
allowUpdatePackageJson: boolean;
|
|
223
|
+
outputTarget: "nodejs" | "web";
|
|
224
|
+
entryFileName: string;
|
|
225
|
+
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
226
|
+
exportPath: "." | `./${string}` | undefined;
|
|
227
|
+
bundleContent: string;
|
|
157
228
|
}
|
|
158
|
-
export
|
|
159
|
-
export { pkgName };
|
|
229
|
+
export {};
|
|
160
230
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,eAAO,MAAM,OAAO,WAAW,CAAC;AAEhC,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,CAAC;AACjD,MAAM,WAAW,QAAQ;IACvB,IAAI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MAAM,EAAE,CAAC,eAAe,CAAC;CAC9C,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,qBAAqB,EAAE,QAAQ,EAAE,CAAC;IAClC,SAAS,EAAE,uBAAuB,CAAC;IACnC,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;IAChC,YAAY,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;IACtD,UAAU,EAAE,GAAG,GAAG,KAAK,MAAM,EAAE,GAAG,SAAS,CAAC;CAC7C;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,uBAAuB,CAAC;IACnC,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;IAChC,YAAY,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;IACtD,UAAU,EAAE,GAAG,GAAG,KAAK,MAAM,EAAE,GAAG,SAAS,CAAC;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"}
|