|
1 | 1 | {
|
2 | 2 | "name": "jsfive",
|
3 |
| - "version": "0.3.9", |
| 3 | + "version": "0.3.10", |
4 | 4 | "description": "A pure javascript HDF5 file reader, based on pyfive",
|
5 |
| - "main": "./dist/hdf5.js", |
6 |
| - "module": "./dist/index.js", |
| 5 | + "main": "./dist/cjs/index.js", |
| 6 | + "module": "./dist/esm/index.mjs", |
7 | 7 | "exports": {
|
8 | 8 | ".": {
|
9 |
| - "import": "./dist/index.js", |
10 |
| - "require": "./dist/hdf5.js" |
| 9 | + "import": "./dist/esm/index.mjs", |
| 10 | + "require": "./dist/cjs/index.js" |
11 | 11 | }
|
12 | 12 | },
|
13 |
| - "browser": "./dist/hdf5.js", |
| 13 | + "browser": "./dist/browser/hdf5.js", |
14 | 14 | "scripts": {
|
15 |
| - "build": "npm run build_browser && npm run build_esm", |
16 |
| - "build_browser": "esbuild index.js --bundle --sourcemap --target=es2020 --outfile=dist/hdf5.js --format=iife --global-name=hdf5", |
17 |
| - "build_esm": "esbuild index.js --bundle --format=esm --outfile=dist/index.js" |
| 15 | + "build": "npm run build_browser && npm run build_esm && npm run build_commonjs", |
| 16 | + "build_browser": "esbuild index.js --bundle --sourcemap --target=es2020 --outfile=dist/browser/hdf5.js --format=iife --global-name=hdf5", |
| 17 | + "build_commonjs": "esbuild index.js --bundle --sourcemap --target=es2020 --outfile=dist/cjs/index.js --format=cjs", |
| 18 | + "build_esm": "esbuild index.js --bundle --format=esm --outfile=dist/esm/index.mjs" |
18 | 19 | },
|
19 | 20 | "repository": {
|
20 | 21 | "type": "git",
|
|
0 commit comments