@suseejs/types 0.1.4 → 0.1.5
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 +103 -126
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/index.d.ts +103 -126
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
import type ts from "typescript";
|
|
2
2
|
export declare const pkgName = "SU-SEE";
|
|
3
|
-
export type Target = "commonjs" | "esm" | "both";
|
|
4
|
-
export interface DepsFile {
|
|
5
|
-
file: string;
|
|
6
|
-
content: string;
|
|
7
|
-
}
|
|
8
|
-
export interface NamesSet {
|
|
9
|
-
base: string;
|
|
10
|
-
file: string;
|
|
11
|
-
newName: string;
|
|
12
|
-
isEd?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export type NamesSets = NamesSet[];
|
|
15
|
-
export type DuplicatesNameMap = Map<string, Set<{
|
|
16
|
-
file: string;
|
|
17
|
-
}>>;
|
|
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 {
|
|
22
|
-
base: string;
|
|
23
|
-
file: string;
|
|
24
|
-
short: string;
|
|
25
|
-
oldName: string;
|
|
26
|
-
}
|
|
27
3
|
export type OutFiles = {
|
|
28
4
|
commonjs: string | undefined;
|
|
29
5
|
commonjsTypes: string | undefined;
|
|
@@ -43,107 +19,67 @@ export type Exports = Record<string, {
|
|
|
43
19
|
types: string;
|
|
44
20
|
};
|
|
45
21
|
}>;
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
};
|
|
22
|
+
export interface DepsFile {
|
|
23
|
+
file: string;
|
|
24
|
+
content: string;
|
|
25
|
+
length: number;
|
|
26
|
+
size: {
|
|
27
|
+
logical: number;
|
|
28
|
+
allocated: number | null;
|
|
29
|
+
utf8: number;
|
|
30
|
+
buffBytes: number;
|
|
66
31
|
};
|
|
67
|
-
|
|
32
|
+
includeDefExport: boolean;
|
|
68
33
|
}
|
|
69
|
-
export type
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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 = {
|
|
34
|
+
export type DepsFiles = Array<DepsFile>;
|
|
35
|
+
export type DepsFilesTree = [Record<string, any>, ...DepsFiles];
|
|
36
|
+
type ASTPluginCallback = (node: ts.Node, factory: ts.NodeFactory, file: string) => ts.Node;
|
|
37
|
+
type PostProcessPlugin = {
|
|
85
38
|
type: "post-process";
|
|
86
39
|
async: true;
|
|
87
|
-
func:
|
|
40
|
+
func: (code: string, file?: string) => Promise<string>;
|
|
88
41
|
} | {
|
|
89
42
|
type: "post-process";
|
|
90
43
|
async: false;
|
|
91
|
-
func:
|
|
44
|
+
func: (code: string, file?: string) => string;
|
|
92
45
|
};
|
|
93
|
-
|
|
46
|
+
type PreProcessPlugin = {
|
|
94
47
|
type: "pre-process";
|
|
95
48
|
async: true;
|
|
96
|
-
func:
|
|
49
|
+
func: (code: string, file?: string) => Promise<string>;
|
|
97
50
|
} | {
|
|
98
51
|
type: "pre-process";
|
|
99
52
|
async: false;
|
|
100
|
-
func:
|
|
53
|
+
func: (code: string, file?: string) => string;
|
|
101
54
|
};
|
|
102
|
-
|
|
55
|
+
type DependencyPlugin = {
|
|
103
56
|
type: "dependency";
|
|
104
57
|
async: true;
|
|
105
|
-
func: (
|
|
58
|
+
func: (depsFiles: DepsFiles) => Promise<DepsFiles>;
|
|
106
59
|
} | {
|
|
107
60
|
type: "dependency";
|
|
108
61
|
async: false;
|
|
109
|
-
func: (
|
|
62
|
+
func: (depsFiles: DepsFiles) => DepsFiles;
|
|
110
63
|
};
|
|
111
|
-
|
|
64
|
+
type ASTPlugin = {
|
|
112
65
|
type: "ast";
|
|
113
66
|
func: ASTPluginCallback;
|
|
114
67
|
};
|
|
115
|
-
|
|
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;
|
|
68
|
+
type SuseePluginFunc = (...args: any[]) => ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin;
|
|
120
69
|
export type SuseePlugin = ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin | SuseePluginFunc;
|
|
121
70
|
export type SuseePlugins = SuseePlugin[];
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* path for package
|
|
126
|
-
*
|
|
127
|
-
* required
|
|
128
|
-
*/
|
|
71
|
+
export interface Point {
|
|
72
|
+
entry: string;
|
|
129
73
|
exportPath: "." | `./${string}`;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
* default - true
|
|
140
|
-
*/
|
|
141
|
-
allowUpdatePackageJson?: boolean;
|
|
142
|
-
};
|
|
143
|
-
type WebOutput = {
|
|
144
|
-
target: "web";
|
|
145
|
-
outFile: string;
|
|
146
|
-
htmlTemplate: string;
|
|
74
|
+
format: "commonjs" | "esm" | "both";
|
|
75
|
+
tsconfigFilePath: string | undefined;
|
|
76
|
+
renameDuplicates: boolean;
|
|
77
|
+
outDir: string;
|
|
78
|
+
}
|
|
79
|
+
export type ConfigReturns = {
|
|
80
|
+
points: Point[];
|
|
81
|
+
plugins: SuseePlugins;
|
|
82
|
+
allowUpdatePackageJson: boolean;
|
|
147
83
|
};
|
|
148
84
|
/**
|
|
149
85
|
* Entry point for SuSee configuration
|
|
@@ -160,7 +96,18 @@ export interface EntryPoint {
|
|
|
160
96
|
*
|
|
161
97
|
* required
|
|
162
98
|
*/
|
|
163
|
-
|
|
99
|
+
/**
|
|
100
|
+
* path for package
|
|
101
|
+
*
|
|
102
|
+
* required
|
|
103
|
+
*/
|
|
104
|
+
exportPath: "." | `./${string}`;
|
|
105
|
+
/**
|
|
106
|
+
* Output module type of package , commonjs,esm or both esm and commonjs
|
|
107
|
+
*
|
|
108
|
+
* default - esm
|
|
109
|
+
*/
|
|
110
|
+
format?: "commonjs" | "esm" | "both";
|
|
164
111
|
/**
|
|
165
112
|
* Custom tsconfig.json path for package typescript compiler options
|
|
166
113
|
*
|
|
@@ -189,42 +136,72 @@ export interface SuSeeConfig {
|
|
|
189
136
|
* required
|
|
190
137
|
*/
|
|
191
138
|
entryPoints: EntryPoint[];
|
|
139
|
+
/**
|
|
140
|
+
* Out directory
|
|
141
|
+
*
|
|
142
|
+
* default - dist
|
|
143
|
+
*/
|
|
144
|
+
outDir?: string;
|
|
192
145
|
/**
|
|
193
146
|
* Array of susee extension
|
|
194
147
|
*
|
|
195
148
|
* default - []
|
|
196
149
|
*/
|
|
197
150
|
plugins?: SuseePlugins;
|
|
151
|
+
/**
|
|
152
|
+
* Allow bundler to update your package.json.
|
|
153
|
+
*
|
|
154
|
+
* default - true
|
|
155
|
+
*/
|
|
156
|
+
allowUpdatePackageJson?: boolean;
|
|
198
157
|
}
|
|
199
|
-
export
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
158
|
+
export interface CollatedPoint {
|
|
159
|
+
fileName: string;
|
|
160
|
+
exportPath: "." | `./${string}`;
|
|
161
|
+
format: "commonjs" | "esm" | "both";
|
|
162
|
+
rename: boolean;
|
|
163
|
+
outDir: string;
|
|
164
|
+
tsOptions: {
|
|
165
|
+
cjs: ts.CompilerOptions;
|
|
166
|
+
esm: ts.CompilerOptions;
|
|
167
|
+
default: ts.CompilerOptions;
|
|
168
|
+
};
|
|
169
|
+
depFiles: DepsFiles;
|
|
170
|
+
plugins: SuseePlugins;
|
|
171
|
+
}
|
|
172
|
+
export interface CollatedReturn {
|
|
173
|
+
points: CollatedPoint[];
|
|
211
174
|
allowUpdatePackageJson: boolean;
|
|
212
|
-
outputTarget: "nodejs" | "web";
|
|
213
|
-
entryFileName: string;
|
|
214
|
-
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
215
|
-
exportPath: "." | `./${string}` | undefined;
|
|
216
175
|
}
|
|
217
|
-
export
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
176
|
+
export type BundleHandler = (depsTree: DepsFile) => DepsFile;
|
|
177
|
+
export type NodeVisit = (node: ts.Node, isGlobalScope?: boolean) => ts.Node;
|
|
178
|
+
export type BundleVisitor = (context: ts.TransformationContext, depsTree: DepsFile, sourceFile: ts.SourceFile, ...args: any[]) => NodeVisit;
|
|
179
|
+
export type BundleCreator = (bundleVisitor: BundleVisitor, compilerOptions: ts.CompilerOptions, ...args: any[]) => BundleHandler;
|
|
180
|
+
export type RequireImportObject = {
|
|
181
|
+
isNamespace: boolean;
|
|
182
|
+
isTypeOnly: boolean;
|
|
183
|
+
isTypeNamespace: boolean;
|
|
184
|
+
source: string;
|
|
185
|
+
importedString: string | undefined;
|
|
186
|
+
importedObject: string[] | undefined;
|
|
187
|
+
};
|
|
188
|
+
export type TypeObj = Record<string, string[]>;
|
|
189
|
+
export interface NamesSet {
|
|
190
|
+
base: string;
|
|
191
|
+
file: string;
|
|
192
|
+
newName: string;
|
|
193
|
+
isEd?: boolean;
|
|
194
|
+
}
|
|
195
|
+
export type NamesSets = NamesSet[];
|
|
196
|
+
export type DuplicatesNameMap = Map<string, Set<{
|
|
197
|
+
file: string;
|
|
198
|
+
}>>;
|
|
199
|
+
export interface BundleResultPoint extends CollatedPoint {
|
|
200
|
+
bundledContent: string;
|
|
201
|
+
}
|
|
202
|
+
export interface BundledResult {
|
|
203
|
+
points: BundleResultPoint[];
|
|
222
204
|
allowUpdatePackageJson: boolean;
|
|
223
|
-
outputTarget: "nodejs" | "web";
|
|
224
|
-
entryFileName: string;
|
|
225
|
-
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
226
|
-
exportPath: "." | `./${string}` | undefined;
|
|
227
|
-
bundleContent: string;
|
|
228
205
|
}
|
|
229
206
|
export {};
|
|
230
207
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,OAAO,GAAG,MAAM,CAC1B,MAAM,EACN;IACE,MAAM,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C,CACF,CAAC;AAEF,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,gBAAgB,E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,CAAC;AAEf,MAAM,MAAM,aAAa,GAAG,CAC1B,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,EAAE,CAAC,eAAe,EACnC,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,aAAa,CAAC;AAEnB,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,cAAc,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAE/C,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,WAAW,iBAAkB,SAAQ,aAAa;IACtD,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,sBAAsB,EAAE,OAAO,CAAC;CACjC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
import type ts from "typescript";
|
|
2
2
|
export declare const pkgName = "SU-SEE";
|
|
3
|
-
export type Target = "commonjs" | "esm" | "both";
|
|
4
|
-
export interface DepsFile {
|
|
5
|
-
file: string;
|
|
6
|
-
content: string;
|
|
7
|
-
}
|
|
8
|
-
export interface NamesSet {
|
|
9
|
-
base: string;
|
|
10
|
-
file: string;
|
|
11
|
-
newName: string;
|
|
12
|
-
isEd?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export type NamesSets = NamesSet[];
|
|
15
|
-
export type DuplicatesNameMap = Map<string, Set<{
|
|
16
|
-
file: string;
|
|
17
|
-
}>>;
|
|
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 {
|
|
22
|
-
base: string;
|
|
23
|
-
file: string;
|
|
24
|
-
short: string;
|
|
25
|
-
oldName: string;
|
|
26
|
-
}
|
|
27
3
|
export type OutFiles = {
|
|
28
4
|
commonjs: string | undefined;
|
|
29
5
|
commonjsTypes: string | undefined;
|
|
@@ -43,107 +19,67 @@ export type Exports = Record<string, {
|
|
|
43
19
|
types: string;
|
|
44
20
|
};
|
|
45
21
|
}>;
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
};
|
|
22
|
+
export interface DepsFile {
|
|
23
|
+
file: string;
|
|
24
|
+
content: string;
|
|
25
|
+
length: number;
|
|
26
|
+
size: {
|
|
27
|
+
logical: number;
|
|
28
|
+
allocated: number | null;
|
|
29
|
+
utf8: number;
|
|
30
|
+
buffBytes: number;
|
|
66
31
|
};
|
|
67
|
-
|
|
32
|
+
includeDefExport: boolean;
|
|
68
33
|
}
|
|
69
|
-
export type
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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 = {
|
|
34
|
+
export type DepsFiles = Array<DepsFile>;
|
|
35
|
+
export type DepsFilesTree = [Record<string, any>, ...DepsFiles];
|
|
36
|
+
type ASTPluginCallback = (node: ts.Node, factory: ts.NodeFactory, file: string) => ts.Node;
|
|
37
|
+
type PostProcessPlugin = {
|
|
85
38
|
type: "post-process";
|
|
86
39
|
async: true;
|
|
87
|
-
func:
|
|
40
|
+
func: (code: string, file?: string) => Promise<string>;
|
|
88
41
|
} | {
|
|
89
42
|
type: "post-process";
|
|
90
43
|
async: false;
|
|
91
|
-
func:
|
|
44
|
+
func: (code: string, file?: string) => string;
|
|
92
45
|
};
|
|
93
|
-
|
|
46
|
+
type PreProcessPlugin = {
|
|
94
47
|
type: "pre-process";
|
|
95
48
|
async: true;
|
|
96
|
-
func:
|
|
49
|
+
func: (code: string, file?: string) => Promise<string>;
|
|
97
50
|
} | {
|
|
98
51
|
type: "pre-process";
|
|
99
52
|
async: false;
|
|
100
|
-
func:
|
|
53
|
+
func: (code: string, file?: string) => string;
|
|
101
54
|
};
|
|
102
|
-
|
|
55
|
+
type DependencyPlugin = {
|
|
103
56
|
type: "dependency";
|
|
104
57
|
async: true;
|
|
105
|
-
func: (
|
|
58
|
+
func: (depsFiles: DepsFiles) => Promise<DepsFiles>;
|
|
106
59
|
} | {
|
|
107
60
|
type: "dependency";
|
|
108
61
|
async: false;
|
|
109
|
-
func: (
|
|
62
|
+
func: (depsFiles: DepsFiles) => DepsFiles;
|
|
110
63
|
};
|
|
111
|
-
|
|
64
|
+
type ASTPlugin = {
|
|
112
65
|
type: "ast";
|
|
113
66
|
func: ASTPluginCallback;
|
|
114
67
|
};
|
|
115
|
-
|
|
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;
|
|
68
|
+
type SuseePluginFunc = (...args: any[]) => ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin;
|
|
120
69
|
export type SuseePlugin = ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin | SuseePluginFunc;
|
|
121
70
|
export type SuseePlugins = SuseePlugin[];
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* path for package
|
|
126
|
-
*
|
|
127
|
-
* required
|
|
128
|
-
*/
|
|
71
|
+
export interface Point {
|
|
72
|
+
entry: string;
|
|
129
73
|
exportPath: "." | `./${string}`;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
* default - true
|
|
140
|
-
*/
|
|
141
|
-
allowUpdatePackageJson?: boolean;
|
|
142
|
-
};
|
|
143
|
-
type WebOutput = {
|
|
144
|
-
target: "web";
|
|
145
|
-
outFile: string;
|
|
146
|
-
htmlTemplate: string;
|
|
74
|
+
format: "commonjs" | "esm" | "both";
|
|
75
|
+
tsconfigFilePath: string | undefined;
|
|
76
|
+
renameDuplicates: boolean;
|
|
77
|
+
outDir: string;
|
|
78
|
+
}
|
|
79
|
+
export type ConfigReturns = {
|
|
80
|
+
points: Point[];
|
|
81
|
+
plugins: SuseePlugins;
|
|
82
|
+
allowUpdatePackageJson: boolean;
|
|
147
83
|
};
|
|
148
84
|
/**
|
|
149
85
|
* Entry point for SuSee configuration
|
|
@@ -160,7 +96,18 @@ export interface EntryPoint {
|
|
|
160
96
|
*
|
|
161
97
|
* required
|
|
162
98
|
*/
|
|
163
|
-
|
|
99
|
+
/**
|
|
100
|
+
* path for package
|
|
101
|
+
*
|
|
102
|
+
* required
|
|
103
|
+
*/
|
|
104
|
+
exportPath: "." | `./${string}`;
|
|
105
|
+
/**
|
|
106
|
+
* Output module type of package , commonjs,esm or both esm and commonjs
|
|
107
|
+
*
|
|
108
|
+
* default - esm
|
|
109
|
+
*/
|
|
110
|
+
format?: "commonjs" | "esm" | "both";
|
|
164
111
|
/**
|
|
165
112
|
* Custom tsconfig.json path for package typescript compiler options
|
|
166
113
|
*
|
|
@@ -189,42 +136,72 @@ export interface SuSeeConfig {
|
|
|
189
136
|
* required
|
|
190
137
|
*/
|
|
191
138
|
entryPoints: EntryPoint[];
|
|
139
|
+
/**
|
|
140
|
+
* Out directory
|
|
141
|
+
*
|
|
142
|
+
* default - dist
|
|
143
|
+
*/
|
|
144
|
+
outDir?: string;
|
|
192
145
|
/**
|
|
193
146
|
* Array of susee extension
|
|
194
147
|
*
|
|
195
148
|
* default - []
|
|
196
149
|
*/
|
|
197
150
|
plugins?: SuseePlugins;
|
|
151
|
+
/**
|
|
152
|
+
* Allow bundler to update your package.json.
|
|
153
|
+
*
|
|
154
|
+
* default - true
|
|
155
|
+
*/
|
|
156
|
+
allowUpdatePackageJson?: boolean;
|
|
198
157
|
}
|
|
199
|
-
export
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
158
|
+
export interface CollatedPoint {
|
|
159
|
+
fileName: string;
|
|
160
|
+
exportPath: "." | `./${string}`;
|
|
161
|
+
format: "commonjs" | "esm" | "both";
|
|
162
|
+
rename: boolean;
|
|
163
|
+
outDir: string;
|
|
164
|
+
tsOptions: {
|
|
165
|
+
cjs: ts.CompilerOptions;
|
|
166
|
+
esm: ts.CompilerOptions;
|
|
167
|
+
default: ts.CompilerOptions;
|
|
168
|
+
};
|
|
169
|
+
depFiles: DepsFiles;
|
|
170
|
+
plugins: SuseePlugins;
|
|
171
|
+
}
|
|
172
|
+
export interface CollatedReturn {
|
|
173
|
+
points: CollatedPoint[];
|
|
211
174
|
allowUpdatePackageJson: boolean;
|
|
212
|
-
outputTarget: "nodejs" | "web";
|
|
213
|
-
entryFileName: string;
|
|
214
|
-
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
215
|
-
exportPath: "." | `./${string}` | undefined;
|
|
216
175
|
}
|
|
217
|
-
export
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
176
|
+
export type BundleHandler = (depsTree: DepsFile) => DepsFile;
|
|
177
|
+
export type NodeVisit = (node: ts.Node, isGlobalScope?: boolean) => ts.Node;
|
|
178
|
+
export type BundleVisitor = (context: ts.TransformationContext, depsTree: DepsFile, sourceFile: ts.SourceFile, ...args: any[]) => NodeVisit;
|
|
179
|
+
export type BundleCreator = (bundleVisitor: BundleVisitor, compilerOptions: ts.CompilerOptions, ...args: any[]) => BundleHandler;
|
|
180
|
+
export type RequireImportObject = {
|
|
181
|
+
isNamespace: boolean;
|
|
182
|
+
isTypeOnly: boolean;
|
|
183
|
+
isTypeNamespace: boolean;
|
|
184
|
+
source: string;
|
|
185
|
+
importedString: string | undefined;
|
|
186
|
+
importedObject: string[] | undefined;
|
|
187
|
+
};
|
|
188
|
+
export type TypeObj = Record<string, string[]>;
|
|
189
|
+
export interface NamesSet {
|
|
190
|
+
base: string;
|
|
191
|
+
file: string;
|
|
192
|
+
newName: string;
|
|
193
|
+
isEd?: boolean;
|
|
194
|
+
}
|
|
195
|
+
export type NamesSets = NamesSet[];
|
|
196
|
+
export type DuplicatesNameMap = Map<string, Set<{
|
|
197
|
+
file: string;
|
|
198
|
+
}>>;
|
|
199
|
+
export interface BundleResultPoint extends CollatedPoint {
|
|
200
|
+
bundledContent: string;
|
|
201
|
+
}
|
|
202
|
+
export interface BundledResult {
|
|
203
|
+
points: BundleResultPoint[];
|
|
222
204
|
allowUpdatePackageJson: boolean;
|
|
223
|
-
outputTarget: "nodejs" | "web";
|
|
224
|
-
entryFileName: string;
|
|
225
|
-
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
226
|
-
exportPath: "." | `./${string}` | undefined;
|
|
227
|
-
bundleContent: string;
|
|
228
205
|
}
|
|
229
206
|
export {};
|
|
230
207
|
//# 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,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,eAAO,MAAM,OAAO,WAAW,CAAC;AAEhC,MAAM,MAAM,
|
|
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,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,SAAS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