@suseejs/types 0.1.3 → 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 +131 -84
- 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 +131 -84
- 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,27 +1,40 @@
|
|
|
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 OutFiles = {
|
|
4
|
+
commonjs: string | undefined;
|
|
5
|
+
commonjsTypes: string | undefined;
|
|
6
|
+
esm: string | undefined;
|
|
7
|
+
esmTypes: string | undefined;
|
|
8
|
+
main: string | undefined;
|
|
9
|
+
module: string | undefined;
|
|
10
|
+
types: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export type Exports = Record<string, {
|
|
13
|
+
import?: {
|
|
14
|
+
default: string;
|
|
15
|
+
types: string;
|
|
16
|
+
};
|
|
17
|
+
require?: {
|
|
18
|
+
default: string;
|
|
19
|
+
types: string;
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
export interface DepsFile {
|
|
4
23
|
file: string;
|
|
5
24
|
content: string;
|
|
25
|
+
length: number;
|
|
26
|
+
size: {
|
|
27
|
+
logical: number;
|
|
28
|
+
allocated: number | null;
|
|
29
|
+
utf8: number;
|
|
30
|
+
buffBytes: number;
|
|
31
|
+
};
|
|
32
|
+
includeDefExport: boolean;
|
|
6
33
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
isEd?: boolean;
|
|
12
|
-
}
|
|
13
|
-
type NamesSets = NamesSet[];
|
|
14
|
-
type DuplicatesNameMap = Map<string, Set<{
|
|
15
|
-
file: string;
|
|
16
|
-
}>>;
|
|
17
|
-
type BundleHandler = ({ file, content }: DepsFile) => DepsFile;
|
|
18
|
-
interface NamesMap {
|
|
19
|
-
base: string;
|
|
20
|
-
file: string;
|
|
21
|
-
short: string;
|
|
22
|
-
oldName: string;
|
|
23
|
-
}
|
|
24
|
-
type PostProcessExtension = {
|
|
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 = {
|
|
25
38
|
type: "post-process";
|
|
26
39
|
async: true;
|
|
27
40
|
func: (code: string, file?: string) => Promise<string>;
|
|
@@ -30,7 +43,7 @@ type PostProcessExtension = {
|
|
|
30
43
|
async: false;
|
|
31
44
|
func: (code: string, file?: string) => string;
|
|
32
45
|
};
|
|
33
|
-
type
|
|
46
|
+
type PreProcessPlugin = {
|
|
34
47
|
type: "pre-process";
|
|
35
48
|
async: true;
|
|
36
49
|
func: (code: string, file?: string) => Promise<string>;
|
|
@@ -39,75 +52,39 @@ type PreProcessExtension = {
|
|
|
39
52
|
async: false;
|
|
40
53
|
func: (code: string, file?: string) => string;
|
|
41
54
|
};
|
|
42
|
-
type
|
|
55
|
+
type DependencyPlugin = {
|
|
43
56
|
type: "dependency";
|
|
44
57
|
async: true;
|
|
45
|
-
func: (
|
|
58
|
+
func: (depsFiles: DepsFiles) => Promise<DepsFiles>;
|
|
46
59
|
} | {
|
|
47
60
|
type: "dependency";
|
|
48
61
|
async: false;
|
|
49
|
-
func: (
|
|
62
|
+
func: (depsFiles: DepsFiles) => DepsFiles;
|
|
50
63
|
};
|
|
51
|
-
type
|
|
52
|
-
type: "ast";
|
|
53
|
-
async: true;
|
|
54
|
-
func: (sourceFile: ts.SourceFile) => Promise<ts.SourceFile>;
|
|
55
|
-
} | {
|
|
64
|
+
type ASTPlugin = {
|
|
56
65
|
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;
|
|
66
|
+
func: ASTPluginCallback;
|
|
69
67
|
};
|
|
70
|
-
type
|
|
71
|
-
type
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
};
|
|
76
|
-
require?: {
|
|
77
|
-
default: string;
|
|
78
|
-
types: string;
|
|
79
|
-
};
|
|
80
|
-
}>;
|
|
81
|
-
type NodeJsOutput = {
|
|
82
|
-
target: "nodejs";
|
|
83
|
-
/**
|
|
84
|
-
* path for package
|
|
85
|
-
*
|
|
86
|
-
* required
|
|
87
|
-
*/
|
|
68
|
+
type SuseePluginFunc = (...args: any[]) => ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin;
|
|
69
|
+
export type SuseePlugin = ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin | SuseePluginFunc;
|
|
70
|
+
export type SuseePlugins = SuseePlugin[];
|
|
71
|
+
export interface Point {
|
|
72
|
+
entry: string;
|
|
88
73
|
exportPath: "." | `./${string}`;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
* default - true
|
|
99
|
-
*/
|
|
100
|
-
allowUpdatePackageJson?: boolean;
|
|
101
|
-
};
|
|
102
|
-
type WebOutput = {
|
|
103
|
-
target: "web";
|
|
104
|
-
outFile: string;
|
|
105
|
-
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;
|
|
106
83
|
};
|
|
107
84
|
/**
|
|
108
85
|
* Entry point for SuSee configuration
|
|
109
86
|
*/
|
|
110
|
-
|
|
87
|
+
export interface EntryPoint {
|
|
111
88
|
/**
|
|
112
89
|
* Entry of file path of package
|
|
113
90
|
*
|
|
@@ -119,7 +96,18 @@ type EntryPoint = {
|
|
|
119
96
|
*
|
|
120
97
|
* required
|
|
121
98
|
*/
|
|
122
|
-
|
|
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";
|
|
123
111
|
/**
|
|
124
112
|
* Custom tsconfig.json path for package typescript compiler options
|
|
125
113
|
*
|
|
@@ -137,24 +125,83 @@ type EntryPoint = {
|
|
|
137
125
|
* default - true
|
|
138
126
|
*/
|
|
139
127
|
renameDuplicates?: boolean;
|
|
140
|
-
}
|
|
128
|
+
}
|
|
141
129
|
/**
|
|
142
130
|
* Configuration for Susee Bundler
|
|
143
131
|
*/
|
|
144
|
-
interface SuSeeConfig {
|
|
132
|
+
export interface SuSeeConfig {
|
|
145
133
|
/**
|
|
146
134
|
* Array of entry points object
|
|
147
135
|
*
|
|
148
136
|
* required
|
|
149
137
|
*/
|
|
150
138
|
entryPoints: EntryPoint[];
|
|
139
|
+
/**
|
|
140
|
+
* Out directory
|
|
141
|
+
*
|
|
142
|
+
* default - dist
|
|
143
|
+
*/
|
|
144
|
+
outDir?: string;
|
|
151
145
|
/**
|
|
152
146
|
* Array of susee extension
|
|
153
147
|
*
|
|
154
148
|
* default - []
|
|
155
149
|
*/
|
|
156
|
-
|
|
150
|
+
plugins?: SuseePlugins;
|
|
151
|
+
/**
|
|
152
|
+
* Allow bundler to update your package.json.
|
|
153
|
+
*
|
|
154
|
+
* default - true
|
|
155
|
+
*/
|
|
156
|
+
allowUpdatePackageJson?: boolean;
|
|
157
|
+
}
|
|
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[];
|
|
174
|
+
allowUpdatePackageJson: boolean;
|
|
175
|
+
}
|
|
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[];
|
|
204
|
+
allowUpdatePackageJson: boolean;
|
|
157
205
|
}
|
|
158
|
-
export
|
|
159
|
-
export { pkgName };
|
|
206
|
+
export {};
|
|
160
207
|
//# 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,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;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AAE,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/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,27 +1,40 @@
|
|
|
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 OutFiles = {
|
|
4
|
+
commonjs: string | undefined;
|
|
5
|
+
commonjsTypes: string | undefined;
|
|
6
|
+
esm: string | undefined;
|
|
7
|
+
esmTypes: string | undefined;
|
|
8
|
+
main: string | undefined;
|
|
9
|
+
module: string | undefined;
|
|
10
|
+
types: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export type Exports = Record<string, {
|
|
13
|
+
import?: {
|
|
14
|
+
default: string;
|
|
15
|
+
types: string;
|
|
16
|
+
};
|
|
17
|
+
require?: {
|
|
18
|
+
default: string;
|
|
19
|
+
types: string;
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
export interface DepsFile {
|
|
4
23
|
file: string;
|
|
5
24
|
content: string;
|
|
25
|
+
length: number;
|
|
26
|
+
size: {
|
|
27
|
+
logical: number;
|
|
28
|
+
allocated: number | null;
|
|
29
|
+
utf8: number;
|
|
30
|
+
buffBytes: number;
|
|
31
|
+
};
|
|
32
|
+
includeDefExport: boolean;
|
|
6
33
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
isEd?: boolean;
|
|
12
|
-
}
|
|
13
|
-
type NamesSets = NamesSet[];
|
|
14
|
-
type DuplicatesNameMap = Map<string, Set<{
|
|
15
|
-
file: string;
|
|
16
|
-
}>>;
|
|
17
|
-
type BundleHandler = ({ file, content }: DepsFile) => DepsFile;
|
|
18
|
-
interface NamesMap {
|
|
19
|
-
base: string;
|
|
20
|
-
file: string;
|
|
21
|
-
short: string;
|
|
22
|
-
oldName: string;
|
|
23
|
-
}
|
|
24
|
-
type PostProcessExtension = {
|
|
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 = {
|
|
25
38
|
type: "post-process";
|
|
26
39
|
async: true;
|
|
27
40
|
func: (code: string, file?: string) => Promise<string>;
|
|
@@ -30,7 +43,7 @@ type PostProcessExtension = {
|
|
|
30
43
|
async: false;
|
|
31
44
|
func: (code: string, file?: string) => string;
|
|
32
45
|
};
|
|
33
|
-
type
|
|
46
|
+
type PreProcessPlugin = {
|
|
34
47
|
type: "pre-process";
|
|
35
48
|
async: true;
|
|
36
49
|
func: (code: string, file?: string) => Promise<string>;
|
|
@@ -39,75 +52,39 @@ type PreProcessExtension = {
|
|
|
39
52
|
async: false;
|
|
40
53
|
func: (code: string, file?: string) => string;
|
|
41
54
|
};
|
|
42
|
-
type
|
|
55
|
+
type DependencyPlugin = {
|
|
43
56
|
type: "dependency";
|
|
44
57
|
async: true;
|
|
45
|
-
func: (
|
|
58
|
+
func: (depsFiles: DepsFiles) => Promise<DepsFiles>;
|
|
46
59
|
} | {
|
|
47
60
|
type: "dependency";
|
|
48
61
|
async: false;
|
|
49
|
-
func: (
|
|
62
|
+
func: (depsFiles: DepsFiles) => DepsFiles;
|
|
50
63
|
};
|
|
51
|
-
type
|
|
52
|
-
type: "ast";
|
|
53
|
-
async: true;
|
|
54
|
-
func: (sourceFile: ts.SourceFile) => Promise<ts.SourceFile>;
|
|
55
|
-
} | {
|
|
64
|
+
type ASTPlugin = {
|
|
56
65
|
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;
|
|
66
|
+
func: ASTPluginCallback;
|
|
69
67
|
};
|
|
70
|
-
type
|
|
71
|
-
type
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
};
|
|
76
|
-
require?: {
|
|
77
|
-
default: string;
|
|
78
|
-
types: string;
|
|
79
|
-
};
|
|
80
|
-
}>;
|
|
81
|
-
type NodeJsOutput = {
|
|
82
|
-
target: "nodejs";
|
|
83
|
-
/**
|
|
84
|
-
* path for package
|
|
85
|
-
*
|
|
86
|
-
* required
|
|
87
|
-
*/
|
|
68
|
+
type SuseePluginFunc = (...args: any[]) => ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin;
|
|
69
|
+
export type SuseePlugin = ASTPlugin | DependencyPlugin | PostProcessPlugin | PreProcessPlugin | SuseePluginFunc;
|
|
70
|
+
export type SuseePlugins = SuseePlugin[];
|
|
71
|
+
export interface Point {
|
|
72
|
+
entry: string;
|
|
88
73
|
exportPath: "." | `./${string}`;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
* default - true
|
|
99
|
-
*/
|
|
100
|
-
allowUpdatePackageJson?: boolean;
|
|
101
|
-
};
|
|
102
|
-
type WebOutput = {
|
|
103
|
-
target: "web";
|
|
104
|
-
outFile: string;
|
|
105
|
-
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;
|
|
106
83
|
};
|
|
107
84
|
/**
|
|
108
85
|
* Entry point for SuSee configuration
|
|
109
86
|
*/
|
|
110
|
-
|
|
87
|
+
export interface EntryPoint {
|
|
111
88
|
/**
|
|
112
89
|
* Entry of file path of package
|
|
113
90
|
*
|
|
@@ -119,7 +96,18 @@ type EntryPoint = {
|
|
|
119
96
|
*
|
|
120
97
|
* required
|
|
121
98
|
*/
|
|
122
|
-
|
|
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";
|
|
123
111
|
/**
|
|
124
112
|
* Custom tsconfig.json path for package typescript compiler options
|
|
125
113
|
*
|
|
@@ -137,24 +125,83 @@ type EntryPoint = {
|
|
|
137
125
|
* default - true
|
|
138
126
|
*/
|
|
139
127
|
renameDuplicates?: boolean;
|
|
140
|
-
}
|
|
128
|
+
}
|
|
141
129
|
/**
|
|
142
130
|
* Configuration for Susee Bundler
|
|
143
131
|
*/
|
|
144
|
-
interface SuSeeConfig {
|
|
132
|
+
export interface SuSeeConfig {
|
|
145
133
|
/**
|
|
146
134
|
* Array of entry points object
|
|
147
135
|
*
|
|
148
136
|
* required
|
|
149
137
|
*/
|
|
150
138
|
entryPoints: EntryPoint[];
|
|
139
|
+
/**
|
|
140
|
+
* Out directory
|
|
141
|
+
*
|
|
142
|
+
* default - dist
|
|
143
|
+
*/
|
|
144
|
+
outDir?: string;
|
|
151
145
|
/**
|
|
152
146
|
* Array of susee extension
|
|
153
147
|
*
|
|
154
148
|
* default - []
|
|
155
149
|
*/
|
|
156
|
-
|
|
150
|
+
plugins?: SuseePlugins;
|
|
151
|
+
/**
|
|
152
|
+
* Allow bundler to update your package.json.
|
|
153
|
+
*
|
|
154
|
+
* default - true
|
|
155
|
+
*/
|
|
156
|
+
allowUpdatePackageJson?: boolean;
|
|
157
|
+
}
|
|
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[];
|
|
174
|
+
allowUpdatePackageJson: boolean;
|
|
175
|
+
}
|
|
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[];
|
|
204
|
+
allowUpdatePackageJson: boolean;
|
|
157
205
|
}
|
|
158
|
-
export
|
|
159
|
-
export { pkgName };
|
|
206
|
+
export {};
|
|
160
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,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,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,aAAa,EAAE,MA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,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.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"}
|