@mui/internal-bundle-size-checker 1.1.1-canary.7 → 1.1.1-canary.9
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/build/types.d.ts +88 -0
- package/package.json +4 -4
- /package/src/{types.d.ts → types.ts} +0 -0
package/build/types.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export interface UploadConfig {
|
|
2
|
+
repo?: string;
|
|
3
|
+
branch?: string;
|
|
4
|
+
isPullRequest?: boolean;
|
|
5
|
+
apiUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface NormalizedUploadConfig {
|
|
8
|
+
repo: string;
|
|
9
|
+
branch: string;
|
|
10
|
+
isPullRequest: boolean;
|
|
11
|
+
prNumber?: string;
|
|
12
|
+
apiUrl: string;
|
|
13
|
+
}
|
|
14
|
+
export type StringEntry = string;
|
|
15
|
+
export interface ObjectEntry {
|
|
16
|
+
id: string;
|
|
17
|
+
code?: string;
|
|
18
|
+
import?: string;
|
|
19
|
+
importedNames?: string[];
|
|
20
|
+
externals?: string[];
|
|
21
|
+
track?: boolean;
|
|
22
|
+
expand?: boolean | {
|
|
23
|
+
exclude?: string[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export type EntryPoint = StringEntry | ObjectEntry;
|
|
27
|
+
export interface BundleSizeCheckerConfigObject {
|
|
28
|
+
entrypoints: EntryPoint[];
|
|
29
|
+
upload?: UploadConfig | boolean | null;
|
|
30
|
+
comment?: boolean;
|
|
31
|
+
replace?: Record<string, string>;
|
|
32
|
+
}
|
|
33
|
+
export type BundleSizeCheckerConfig = BundleSizeCheckerConfigObject | Promise<BundleSizeCheckerConfigObject> | (() => BundleSizeCheckerConfigObject | Promise<BundleSizeCheckerConfigObject>);
|
|
34
|
+
export interface NormalizedBundleSizeCheckerConfig {
|
|
35
|
+
entrypoints: ObjectEntry[];
|
|
36
|
+
upload: NormalizedUploadConfig | null;
|
|
37
|
+
comment: boolean;
|
|
38
|
+
replace: Record<string, string>;
|
|
39
|
+
}
|
|
40
|
+
export interface CommandLineArgs {
|
|
41
|
+
analyze?: boolean;
|
|
42
|
+
output?: string;
|
|
43
|
+
verbose?: boolean;
|
|
44
|
+
filter?: string[];
|
|
45
|
+
concurrency?: number;
|
|
46
|
+
debug?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface DiffCommandArgs {
|
|
49
|
+
base: string;
|
|
50
|
+
head?: string;
|
|
51
|
+
output?: 'json' | 'markdown';
|
|
52
|
+
reportUrl?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface PrCommandArgs {
|
|
55
|
+
prNumber: number;
|
|
56
|
+
output?: 'json' | 'markdown';
|
|
57
|
+
}
|
|
58
|
+
export interface SizeSnapshotEntry {
|
|
59
|
+
parsed: number;
|
|
60
|
+
gzip: number;
|
|
61
|
+
}
|
|
62
|
+
export interface SizeInfo {
|
|
63
|
+
previous: number;
|
|
64
|
+
current: number;
|
|
65
|
+
absoluteDiff: number;
|
|
66
|
+
relativeDiff: number | null;
|
|
67
|
+
}
|
|
68
|
+
export interface Size {
|
|
69
|
+
id: string;
|
|
70
|
+
parsed: SizeInfo;
|
|
71
|
+
gzip: SizeInfo;
|
|
72
|
+
}
|
|
73
|
+
export interface ComparisonResult {
|
|
74
|
+
entries: Size[];
|
|
75
|
+
totals: {
|
|
76
|
+
totalParsed: number;
|
|
77
|
+
totalGzip: number;
|
|
78
|
+
totalParsedPercent: number;
|
|
79
|
+
totalGzipPercent: number;
|
|
80
|
+
};
|
|
81
|
+
fileCounts: {
|
|
82
|
+
added: number;
|
|
83
|
+
removed: number;
|
|
84
|
+
changed: number;
|
|
85
|
+
total: number;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export type SizeSnapshot = Record<string, SizeSnapshotEntry>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-bundle-size-checker",
|
|
3
|
-
"version": "1.1.1-canary.
|
|
3
|
+
"version": "1.1.1-canary.9",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Bundle size checker for MUI packages.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"git-url-parse": "^16.1.0",
|
|
36
36
|
"micromatch": "^4.0.8",
|
|
37
37
|
"piscina": "^5.3.2",
|
|
38
|
-
"rollup-plugin-visualizer": "^7.1.
|
|
39
|
-
"vite": "^8.3.
|
|
38
|
+
"rollup-plugin-visualizer": "^7.1.3",
|
|
39
|
+
"vite": "^8.3.8",
|
|
40
40
|
"yargs": "^18.2.0",
|
|
41
41
|
"zod": "^4.6.7"
|
|
42
42
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@types/micromatch": "4.0.10",
|
|
46
46
|
"@types/yargs": "17.0.35"
|
|
47
47
|
},
|
|
48
|
-
"gitSha": "
|
|
48
|
+
"gitSha": "648d5a45da76163e2153dfc37431b1e4df7bb868",
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsc -p tsconfig.build.json",
|
|
51
51
|
"test": "pnpm -w test --project @mui/internal-bundle-size-checker",
|
|
File without changes
|