@suseejs/types 0.1.4 → 0.1.6
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 +114 -123
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/index.d.ts +114 -123
- 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,82 @@ 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;
|
|
33
|
+
type?: "cjs" | "esm";
|
|
68
34
|
}
|
|
69
|
-
export type
|
|
70
|
-
|
|
71
|
-
|
|
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[];
|
|
35
|
+
export type DepsFiles = Array<DepsFile>;
|
|
36
|
+
export type DepsFilesTree = [Record<string, any>, ...DepsFiles];
|
|
37
|
+
export type PluginTypes = "plugin" | "hooks";
|
|
84
38
|
export type PostProcessPlugin = {
|
|
85
39
|
type: "post-process";
|
|
86
40
|
async: true;
|
|
87
|
-
func:
|
|
41
|
+
func: (code: string, file?: string) => Promise<string>;
|
|
42
|
+
group?: PluginTypes;
|
|
43
|
+
name?: string;
|
|
88
44
|
} | {
|
|
89
45
|
type: "post-process";
|
|
90
46
|
async: false;
|
|
91
|
-
func:
|
|
47
|
+
func: (code: string, file?: string) => string;
|
|
48
|
+
group?: PluginTypes;
|
|
49
|
+
name?: string;
|
|
92
50
|
};
|
|
93
51
|
export type PreProcessPlugin = {
|
|
94
52
|
type: "pre-process";
|
|
95
53
|
async: true;
|
|
96
|
-
func:
|
|
54
|
+
func: (code: string, file?: string) => Promise<string>;
|
|
55
|
+
group?: PluginTypes;
|
|
56
|
+
name?: string;
|
|
97
57
|
} | {
|
|
98
58
|
type: "pre-process";
|
|
99
59
|
async: false;
|
|
100
|
-
func:
|
|
60
|
+
func: (code: string, file?: string) => string;
|
|
61
|
+
group?: PluginTypes;
|
|
62
|
+
name?: string;
|
|
101
63
|
};
|
|
102
64
|
export type DependencyPlugin = {
|
|
103
65
|
type: "dependency";
|
|
104
66
|
async: true;
|
|
105
|
-
func: (
|
|
67
|
+
func: (depsFiles: DepsFiles) => Promise<DepsFiles>;
|
|
68
|
+
group?: PluginTypes;
|
|
69
|
+
name?: string;
|
|
106
70
|
} | {
|
|
107
71
|
type: "dependency";
|
|
108
72
|
async: false;
|
|
109
|
-
func: (
|
|
73
|
+
func: (depsFiles: DepsFiles) => DepsFiles;
|
|
74
|
+
group?: PluginTypes;
|
|
75
|
+
name?: string;
|
|
110
76
|
};
|
|
111
77
|
export type ASTPlugin = {
|
|
112
78
|
type: "ast";
|
|
113
|
-
func:
|
|
79
|
+
func: (node: ts.Node, factory: ts.NodeFactory, file: string) => ts.Node;
|
|
80
|
+
group?: PluginTypes;
|
|
81
|
+
name?: string;
|
|
114
82
|
};
|
|
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
83
|
export type SuseePluginFunc = (...args: any[]) => ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin;
|
|
120
84
|
export type SuseePlugin = ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin | SuseePluginFunc;
|
|
121
85
|
export type SuseePlugins = SuseePlugin[];
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* path for package
|
|
126
|
-
*
|
|
127
|
-
* required
|
|
128
|
-
*/
|
|
86
|
+
export interface Point {
|
|
87
|
+
entry: string;
|
|
129
88
|
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;
|
|
89
|
+
format: "commonjs" | "esm" | "both";
|
|
90
|
+
tsconfigFilePath: string | undefined;
|
|
91
|
+
renameDuplicates: boolean;
|
|
92
|
+
outDir: string;
|
|
93
|
+
}
|
|
94
|
+
export type ConfigReturns = {
|
|
95
|
+
points: Point[];
|
|
96
|
+
plugins: SuseePlugins;
|
|
97
|
+
allowUpdatePackageJson: boolean;
|
|
147
98
|
};
|
|
148
99
|
/**
|
|
149
100
|
* Entry point for SuSee configuration
|
|
@@ -160,7 +111,18 @@ export interface EntryPoint {
|
|
|
160
111
|
*
|
|
161
112
|
* required
|
|
162
113
|
*/
|
|
163
|
-
|
|
114
|
+
/**
|
|
115
|
+
* path for package
|
|
116
|
+
*
|
|
117
|
+
* required
|
|
118
|
+
*/
|
|
119
|
+
exportPath: "." | `./${string}`;
|
|
120
|
+
/**
|
|
121
|
+
* Output module type of package , commonjs,esm or both esm and commonjs
|
|
122
|
+
*
|
|
123
|
+
* default - esm
|
|
124
|
+
*/
|
|
125
|
+
format?: "commonjs" | "esm" | "both";
|
|
164
126
|
/**
|
|
165
127
|
* Custom tsconfig.json path for package typescript compiler options
|
|
166
128
|
*
|
|
@@ -189,42 +151,71 @@ export interface SuSeeConfig {
|
|
|
189
151
|
* required
|
|
190
152
|
*/
|
|
191
153
|
entryPoints: EntryPoint[];
|
|
154
|
+
/**
|
|
155
|
+
* Out directory
|
|
156
|
+
*
|
|
157
|
+
* default - dist
|
|
158
|
+
*/
|
|
159
|
+
outDir?: string;
|
|
192
160
|
/**
|
|
193
161
|
* Array of susee extension
|
|
194
162
|
*
|
|
195
163
|
* default - []
|
|
196
164
|
*/
|
|
197
165
|
plugins?: SuseePlugins;
|
|
166
|
+
/**
|
|
167
|
+
* Allow bundler to update your package.json.
|
|
168
|
+
*
|
|
169
|
+
* default - true
|
|
170
|
+
*/
|
|
171
|
+
allowUpdatePackageJson?: boolean;
|
|
198
172
|
}
|
|
199
|
-
export
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
173
|
+
export interface CollatedPoint {
|
|
174
|
+
fileName: string;
|
|
175
|
+
exportPath: "." | `./${string}`;
|
|
176
|
+
format: "commonjs" | "esm" | "both";
|
|
177
|
+
rename: boolean;
|
|
178
|
+
outDir: string;
|
|
179
|
+
tsOptions: {
|
|
180
|
+
cjs: ts.CompilerOptions;
|
|
181
|
+
esm: ts.CompilerOptions;
|
|
182
|
+
default: ts.CompilerOptions;
|
|
183
|
+
};
|
|
184
|
+
depFiles: DepsFiles;
|
|
185
|
+
plugins: SuseePlugins;
|
|
186
|
+
}
|
|
187
|
+
export interface CollatedReturn {
|
|
188
|
+
points: CollatedPoint[];
|
|
211
189
|
allowUpdatePackageJson: boolean;
|
|
212
|
-
outputTarget: "nodejs" | "web";
|
|
213
|
-
entryFileName: string;
|
|
214
|
-
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
215
|
-
exportPath: "." | `./${string}` | undefined;
|
|
216
190
|
}
|
|
217
|
-
export
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
191
|
+
export type BundleHandler = (depsTree: DepsFile) => DepsFile;
|
|
192
|
+
export type NodeVisit = (node: ts.Node, isGlobalScope?: boolean) => ts.Node;
|
|
193
|
+
export type BundleVisitor = (context: ts.TransformationContext, depsTree: DepsFile, sourceFile: ts.SourceFile, ...args: any[]) => NodeVisit;
|
|
194
|
+
export type BundleCreator = (bundleVisitor: BundleVisitor, compilerOptions: ts.CompilerOptions, ...args: any[]) => BundleHandler;
|
|
195
|
+
export type RequireImportObject = {
|
|
196
|
+
isNamespace: boolean;
|
|
197
|
+
isTypeOnly: boolean;
|
|
198
|
+
isTypeNamespace: boolean;
|
|
199
|
+
source: string;
|
|
200
|
+
importedString: string | undefined;
|
|
201
|
+
importedObject: string[] | undefined;
|
|
202
|
+
};
|
|
203
|
+
export type TypeObj = Record<string, string[]>;
|
|
204
|
+
export interface NamesSet {
|
|
205
|
+
base: string;
|
|
206
|
+
file: string;
|
|
207
|
+
newName: string;
|
|
208
|
+
isEd?: boolean;
|
|
209
|
+
}
|
|
210
|
+
export type NamesSets = NamesSet[];
|
|
211
|
+
export type DuplicatesNameMap = Map<string, Set<{
|
|
212
|
+
file: string;
|
|
213
|
+
}>>;
|
|
214
|
+
export interface BundleResultPoint extends CollatedPoint {
|
|
215
|
+
bundledContent: string;
|
|
216
|
+
}
|
|
217
|
+
export interface BundledResult {
|
|
218
|
+
points: BundleResultPoint[];
|
|
222
219
|
allowUpdatePackageJson: boolean;
|
|
223
|
-
outputTarget: "nodejs" | "web";
|
|
224
|
-
entryFileName: string;
|
|
225
|
-
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
226
|
-
exportPath: "." | `./${string}` | undefined;
|
|
227
|
-
bundleContent: string;
|
|
228
220
|
}
|
|
229
|
-
export {};
|
|
230
221
|
//# 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,C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AAC;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,82 @@ 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;
|
|
33
|
+
type?: "cjs" | "esm";
|
|
68
34
|
}
|
|
69
|
-
export type
|
|
70
|
-
|
|
71
|
-
|
|
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[];
|
|
35
|
+
export type DepsFiles = Array<DepsFile>;
|
|
36
|
+
export type DepsFilesTree = [Record<string, any>, ...DepsFiles];
|
|
37
|
+
export type PluginTypes = "plugin" | "hooks";
|
|
84
38
|
export type PostProcessPlugin = {
|
|
85
39
|
type: "post-process";
|
|
86
40
|
async: true;
|
|
87
|
-
func:
|
|
41
|
+
func: (code: string, file?: string) => Promise<string>;
|
|
42
|
+
group?: PluginTypes;
|
|
43
|
+
name?: string;
|
|
88
44
|
} | {
|
|
89
45
|
type: "post-process";
|
|
90
46
|
async: false;
|
|
91
|
-
func:
|
|
47
|
+
func: (code: string, file?: string) => string;
|
|
48
|
+
group?: PluginTypes;
|
|
49
|
+
name?: string;
|
|
92
50
|
};
|
|
93
51
|
export type PreProcessPlugin = {
|
|
94
52
|
type: "pre-process";
|
|
95
53
|
async: true;
|
|
96
|
-
func:
|
|
54
|
+
func: (code: string, file?: string) => Promise<string>;
|
|
55
|
+
group?: PluginTypes;
|
|
56
|
+
name?: string;
|
|
97
57
|
} | {
|
|
98
58
|
type: "pre-process";
|
|
99
59
|
async: false;
|
|
100
|
-
func:
|
|
60
|
+
func: (code: string, file?: string) => string;
|
|
61
|
+
group?: PluginTypes;
|
|
62
|
+
name?: string;
|
|
101
63
|
};
|
|
102
64
|
export type DependencyPlugin = {
|
|
103
65
|
type: "dependency";
|
|
104
66
|
async: true;
|
|
105
|
-
func: (
|
|
67
|
+
func: (depsFiles: DepsFiles) => Promise<DepsFiles>;
|
|
68
|
+
group?: PluginTypes;
|
|
69
|
+
name?: string;
|
|
106
70
|
} | {
|
|
107
71
|
type: "dependency";
|
|
108
72
|
async: false;
|
|
109
|
-
func: (
|
|
73
|
+
func: (depsFiles: DepsFiles) => DepsFiles;
|
|
74
|
+
group?: PluginTypes;
|
|
75
|
+
name?: string;
|
|
110
76
|
};
|
|
111
77
|
export type ASTPlugin = {
|
|
112
78
|
type: "ast";
|
|
113
|
-
func:
|
|
79
|
+
func: (node: ts.Node, factory: ts.NodeFactory, file: string) => ts.Node;
|
|
80
|
+
group?: PluginTypes;
|
|
81
|
+
name?: string;
|
|
114
82
|
};
|
|
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
83
|
export type SuseePluginFunc = (...args: any[]) => ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin;
|
|
120
84
|
export type SuseePlugin = ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin | SuseePluginFunc;
|
|
121
85
|
export type SuseePlugins = SuseePlugin[];
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* path for package
|
|
126
|
-
*
|
|
127
|
-
* required
|
|
128
|
-
*/
|
|
86
|
+
export interface Point {
|
|
87
|
+
entry: string;
|
|
129
88
|
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;
|
|
89
|
+
format: "commonjs" | "esm" | "both";
|
|
90
|
+
tsconfigFilePath: string | undefined;
|
|
91
|
+
renameDuplicates: boolean;
|
|
92
|
+
outDir: string;
|
|
93
|
+
}
|
|
94
|
+
export type ConfigReturns = {
|
|
95
|
+
points: Point[];
|
|
96
|
+
plugins: SuseePlugins;
|
|
97
|
+
allowUpdatePackageJson: boolean;
|
|
147
98
|
};
|
|
148
99
|
/**
|
|
149
100
|
* Entry point for SuSee configuration
|
|
@@ -160,7 +111,18 @@ export interface EntryPoint {
|
|
|
160
111
|
*
|
|
161
112
|
* required
|
|
162
113
|
*/
|
|
163
|
-
|
|
114
|
+
/**
|
|
115
|
+
* path for package
|
|
116
|
+
*
|
|
117
|
+
* required
|
|
118
|
+
*/
|
|
119
|
+
exportPath: "." | `./${string}`;
|
|
120
|
+
/**
|
|
121
|
+
* Output module type of package , commonjs,esm or both esm and commonjs
|
|
122
|
+
*
|
|
123
|
+
* default - esm
|
|
124
|
+
*/
|
|
125
|
+
format?: "commonjs" | "esm" | "both";
|
|
164
126
|
/**
|
|
165
127
|
* Custom tsconfig.json path for package typescript compiler options
|
|
166
128
|
*
|
|
@@ -189,42 +151,71 @@ export interface SuSeeConfig {
|
|
|
189
151
|
* required
|
|
190
152
|
*/
|
|
191
153
|
entryPoints: EntryPoint[];
|
|
154
|
+
/**
|
|
155
|
+
* Out directory
|
|
156
|
+
*
|
|
157
|
+
* default - dist
|
|
158
|
+
*/
|
|
159
|
+
outDir?: string;
|
|
192
160
|
/**
|
|
193
161
|
* Array of susee extension
|
|
194
162
|
*
|
|
195
163
|
* default - []
|
|
196
164
|
*/
|
|
197
165
|
plugins?: SuseePlugins;
|
|
166
|
+
/**
|
|
167
|
+
* Allow bundler to update your package.json.
|
|
168
|
+
*
|
|
169
|
+
* default - true
|
|
170
|
+
*/
|
|
171
|
+
allowUpdatePackageJson?: boolean;
|
|
198
172
|
}
|
|
199
|
-
export
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
173
|
+
export interface CollatedPoint {
|
|
174
|
+
fileName: string;
|
|
175
|
+
exportPath: "." | `./${string}`;
|
|
176
|
+
format: "commonjs" | "esm" | "both";
|
|
177
|
+
rename: boolean;
|
|
178
|
+
outDir: string;
|
|
179
|
+
tsOptions: {
|
|
180
|
+
cjs: ts.CompilerOptions;
|
|
181
|
+
esm: ts.CompilerOptions;
|
|
182
|
+
default: ts.CompilerOptions;
|
|
183
|
+
};
|
|
184
|
+
depFiles: DepsFiles;
|
|
185
|
+
plugins: SuseePlugins;
|
|
186
|
+
}
|
|
187
|
+
export interface CollatedReturn {
|
|
188
|
+
points: CollatedPoint[];
|
|
211
189
|
allowUpdatePackageJson: boolean;
|
|
212
|
-
outputTarget: "nodejs" | "web";
|
|
213
|
-
entryFileName: string;
|
|
214
|
-
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
215
|
-
exportPath: "." | `./${string}` | undefined;
|
|
216
190
|
}
|
|
217
|
-
export
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
191
|
+
export type BundleHandler = (depsTree: DepsFile) => DepsFile;
|
|
192
|
+
export type NodeVisit = (node: ts.Node, isGlobalScope?: boolean) => ts.Node;
|
|
193
|
+
export type BundleVisitor = (context: ts.TransformationContext, depsTree: DepsFile, sourceFile: ts.SourceFile, ...args: any[]) => NodeVisit;
|
|
194
|
+
export type BundleCreator = (bundleVisitor: BundleVisitor, compilerOptions: ts.CompilerOptions, ...args: any[]) => BundleHandler;
|
|
195
|
+
export type RequireImportObject = {
|
|
196
|
+
isNamespace: boolean;
|
|
197
|
+
isTypeOnly: boolean;
|
|
198
|
+
isTypeNamespace: boolean;
|
|
199
|
+
source: string;
|
|
200
|
+
importedString: string | undefined;
|
|
201
|
+
importedObject: string[] | undefined;
|
|
202
|
+
};
|
|
203
|
+
export type TypeObj = Record<string, string[]>;
|
|
204
|
+
export interface NamesSet {
|
|
205
|
+
base: string;
|
|
206
|
+
file: string;
|
|
207
|
+
newName: string;
|
|
208
|
+
isEd?: boolean;
|
|
209
|
+
}
|
|
210
|
+
export type NamesSets = NamesSet[];
|
|
211
|
+
export type DuplicatesNameMap = Map<string, Set<{
|
|
212
|
+
file: string;
|
|
213
|
+
}>>;
|
|
214
|
+
export interface BundleResultPoint extends CollatedPoint {
|
|
215
|
+
bundledContent: string;
|
|
216
|
+
}
|
|
217
|
+
export interface BundledResult {
|
|
218
|
+
points: BundleResultPoint[];
|
|
222
219
|
allowUpdatePackageJson: boolean;
|
|
223
|
-
outputTarget: "nodejs" | "web";
|
|
224
|
-
entryFileName: string;
|
|
225
|
-
outputFormat: "commonjs" | "esm" | "both" | undefined;
|
|
226
|
-
exportPath: "." | `./${string}` | undefined;
|
|
227
|
-
bundleContent: string;
|
|
228
220
|
}
|
|
229
|
-
export {};
|
|
230
221
|
//# 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,CAAC;IAClC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;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