There was an error while loading. Please reload this page.
2 parents 2a48ae4 + eb839b7 commit d799f65Copy full SHA for d799f65
package.json
@@ -3,10 +3,14 @@
3
"version": "1.6.2",
4
"description": "Parse bytes to human readable sizes (4747) → ('4.75 KB') and vice versa.",
5
"main": "dist/index.js",
6
+ "exports": {
7
+ "require": "./dist/index.js",
8
+ "import": "./dist/index.mjs"
9
+ },
10
"types": "typings/index.d.ts",
11
"scripts": {
12
"test": "jest",
- "build": "babel lib -d dist",
13
+ "build": "babel lib -d dist && (cat dist/index.js; printf '\nexport default xbytes;') > dist/index.mjs",
14
"preversion": "npm run build",
15
"version": "npm test",
16
"postversion": "git push gitlab master && git push github master"
0 commit comments