File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
- <img src =" https://img.shields.io/npm/v/package-build-stats.svg " /> <img src =" https://img.shields.io/npm/l/package-build-stats.svg " /> <img src =" https://img.shields.io/github/workflow/status/pastelsky/package-build-stats/CI/master " />
2
-
1
+ <img src =" https://img.shields.io/npm/v/package-build-stats.svg " /> <img src =" https://img.shields.io/npm/l/package-build-stats.svg " /> <img src =" https://img.shields.io/github/workflow/status/pastelsky/package-build-stats/CI/master " />
2
+
3
3
This is the function that powers the core of building, minifying and gzipping of packages in bundlephobia.
4
4
5
5
## Usage
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export type GetPackageStatsOptions = Pick<
37
37
| 'networkConcurrency'
38
38
| 'debug'
39
39
| 'customImports'
40
- >
40
+ >
41
41
42
42
export type Externals = {
43
43
externalPackages : Array < string >
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ export class PackageNotFoundError extends CustomError {
43
43
}
44
44
}
45
45
46
-
47
46
export class CLIBuildError extends CustomError {
48
47
constructor ( originalError : any , extra ?: any ) {
49
48
super ( 'CLIBuildError' , originalError , extra )
Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ export async function getAllPackageExports(
36
36
}
37
37
}
38
38
39
- export async function getPackageExportSizes ( packageString : string , options = { } ) {
39
+ export async function getPackageExportSizes (
40
+ packageString : string ,
41
+ options = { }
42
+ ) {
40
43
const { name : packageName , normalPath } = parsePackageString ( packageString )
41
44
const installPath = await InstallationUtils . preparePath ( packageName )
42
45
Original file line number Diff line number Diff line change 1
- import { default as getPackageStats } from './getPackageStats'
1
+ import { default as getPackageStats } from './getPackageStats'
2
2
export * from './errors/CustomError'
3
3
export { default as getParseTime } from './getParseTime'
4
4
export * from './getPackageExportSizes'
You can’t perform that action at this time.
0 commit comments