Skip to content

Commit 312c9da

Browse files
committed
Change default to named export
1 parent 82f2aea commit 312c9da

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This is the function that powers the core of building, minifying and gzipping of
55
## Usage
66

77
```js
8-
const getBuiltPackageStats = require('package-build-stats')
8+
const { getBuiltPackageStats } = require('package-build-stats')
99
```
1010

1111
#### Building packages from npm

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"scripts": {
2020
"start": "ts-node --files index.js",
2121
"dev": "DEBUG=bp* ts-node-dev --files index.js",
22+
"build": "tsc",
2223
"test": "jest",
2324
"test:ci": "yarn test --colors",
2425
"prettier": "prettier --write '**/*.{html,js,ts,json,css,scss,jsx,flow,md,yml,yaml}'",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { default } from './getPackageStats'
1+
import {default as getPackageStats } from './getPackageStats'
22
export * from './errors/CustomError'
33
export { default as getParseTime } from './getParseTime'
44
export * from './getPackageExportSizes'

0 commit comments

Comments
 (0)