rollup-plugin-stats 1.5.6 → 2.0.0-beta.0
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/README.md +1 -1
- package/dist/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/extract.cjs +41 -94
- package/dist/extract.cjs.map +1 -1
- package/dist/extract.d.cts +53 -0
- package/dist/extract.d.mts +53 -0
- package/dist/extract.mjs +41 -92
- package/dist/extract.mjs.map +1 -1
- package/dist/index.cjs +30 -78
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -0
- package/dist/index.d.mts +26 -0
- package/dist/index.mjs +27 -76
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.cts +9 -0
- package/dist/types.d.mts +9 -0
- package/dist/utils/check-exclude-filepath.cjs +21 -0
- package/dist/utils/check-exclude-filepath.cjs.map +1 -0
- package/dist/utils/check-exclude-filepath.d.cts +6 -0
- package/dist/utils/check-exclude-filepath.d.mts +6 -0
- package/dist/utils/check-exclude-filepath.mjs +20 -0
- package/dist/utils/check-exclude-filepath.mjs.map +1 -0
- package/dist/utils/format-file-size.cjs +29 -0
- package/dist/utils/format-file-size.cjs.map +1 -0
- package/dist/utils/format-file-size.mjs +29 -0
- package/dist/utils/format-file-size.mjs.map +1 -0
- package/dist/utils/omit.cjs +13 -0
- package/dist/utils/omit.cjs.map +1 -0
- package/dist/utils/omit.mjs +12 -0
- package/dist/utils/omit.mjs.map +1 -0
- package/dist/utils/round.cjs +10 -0
- package/dist/utils/round.cjs.map +1 -0
- package/dist/utils/round.mjs +9 -0
- package/dist/utils/round.mjs.map +1 -0
- package/dist/write.cjs +20 -0
- package/dist/write.cjs.map +1 -0
- package/dist/write.d.cts +9 -0
- package/dist/write.d.mts +9 -0
- package/dist/write.mjs +17 -0
- package/dist/write.mjs.map +1 -0
- package/package.json +35 -21
- package/dist/extract.d.ts +0 -48
- package/dist/index.d.ts +0 -22
- package/dist/types.d.ts +0 -4
- package/dist/utils/check-exclude-filepath.d.ts +0 -7
- package/dist/utils/format-file-size.d.ts +0 -1
- package/dist/utils/omit.d.ts +0 -1
- package/dist/utils/round.d.ts +0 -1
- package/dist/write.d.ts +0 -6
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type ExcludeFilepathParam = string | RegExp | ((filepath: string) => boolean);
|
|
2
|
-
export type ExcludeFilepathPatterns = ExcludeFilepathParam | Array<ExcludeFilepathParam>;
|
|
3
|
-
/**
|
|
4
|
-
* Check if filepath should be excluded based on patterns
|
|
5
|
-
*/
|
|
6
|
-
export declare function checkExcludeFilepath(filepath: string, patterns?: ExcludeFilepathPatterns): boolean;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function formatFileSize(value?: number | null): string;
|
package/dist/utils/omit.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function omit<D extends object, K extends keyof D = keyof D>(data: D, keys: K[]): Omit<D, K>;
|
package/dist/utils/round.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function round(value: number, precision?: number): number;
|
package/dist/write.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type RollupStatsWriteResponse = {
|
|
2
|
-
filepath: string;
|
|
3
|
-
content: string;
|
|
4
|
-
};
|
|
5
|
-
export type RollupStatsWrite = (filepath: string, stats: Record<string, unknown>) => RollupStatsWriteResponse;
|
|
6
|
-
export declare function rollupStatsWrite<T extends Record<string, unknown> = Record<string, unknown>>(filepath: string, stats: T): Promise<RollupStatsWriteResponse>;
|