|
19 | 19 | "minimum" |
20 | 20 | ], |
21 | 21 | "sideEffects": false, |
22 | | - "main": "lib/index.js", |
| 22 | + "source": "src/index.js", |
| 23 | + "main": "dist/index.js", |
| 24 | + "module": "dist/index.module.js", |
| 25 | + "umd:main": "dist/index.umd.js", |
| 26 | + "unpkg": "dist/index.umd.js", |
| 27 | + "exports": { |
| 28 | + ".": { |
| 29 | + "browser": "./dist/index.module.js", |
| 30 | + "umd": "./dist/index.umd.js", |
| 31 | + "require": "./dist/index.js", |
| 32 | + "default": "./dist/index.modern.js" |
| 33 | + } |
| 34 | + }, |
23 | 35 | "files": [ |
24 | | - "lib" |
| 36 | + "dist" |
25 | 37 | ], |
26 | 38 | "scripts": { |
27 | | - "build": "babel --delete-dir-on-start --env-name production src -d lib", |
| 39 | + "build": "NODE_ENV=production microbundle", |
28 | 40 | "build-docs": "esdoc", |
29 | 41 | "build-gh-pages": "npm run build-docs", |
30 | 42 | "commit-msg": "commitlint --edit", |
|
48 | 60 | "@aureooms/js-pairing-heap": "^1.0.0" |
49 | 61 | }, |
50 | 62 | "devDependencies": { |
51 | | - "@babel/cli": "7.13.10", |
52 | 63 | "@babel/core": "7.13.10", |
53 | 64 | "@babel/polyfill": "7.12.1", |
54 | 65 | "@babel/preset-env": "7.13.10", |
|
67 | 78 | "esdoc-standard-plugin": "1.0.0", |
68 | 79 | "fixpack": "4.0.0", |
69 | 80 | "husky": "5.2.0", |
| 81 | + "microbundle": "0.13.0", |
70 | 82 | "np": "7.4.0", |
71 | 83 | "pinst": "2.1.6", |
72 | 84 | "power-assert": "1.6.1", |
|
0 commit comments