|
3 | 3 | "version": "0.0.2",
|
4 | 4 | "description": "ZSTD (Zstandard) decoder for Web and Node.js, using WebAssembly",
|
5 | 5 | "repository": "github:donmccurdy/zstddec",
|
6 |
| - "main": "dist/zstddec.js", |
| 6 | + "type": "module", |
| 7 | + "exports": { |
| 8 | + "types": "dist/zstddec.d.ts", |
| 9 | + "require": "./dist/zstddec.cjs", |
| 10 | + "default": "./dist/zstddec.modern.js" |
| 11 | + }, |
| 12 | + "main": "dist/zstddec.cjs", |
7 | 13 | "module": "dist/zstddec.modern.js",
|
8 | 14 | "source": "zstddec.ts",
|
9 | 15 | "types": "dist/zstddec.d.ts",
|
10 | 16 | "scripts": {
|
11 | 17 | "dist": "microbundle --format modern,cjs",
|
12 | 18 | "watch": "microbundle watch --format modern,cjs",
|
13 | 19 | "test": "npm run test:node && npm run test:browser",
|
14 |
| - "test:node": "tape *.test.js | tap-spec", |
15 |
| - "test:browser": "browserify *.test.js | tape-run | tap-spec", |
| 20 | + "test:node": "tape *.test.cjs | tap-spec", |
| 21 | + "test:browser": "browserify *.test.cjs | tape-run | tap-spec", |
16 | 22 | "preversion": "npm run dist && npm run test",
|
17 | 23 | "postversion": "git push && git push --tags && npm publish"
|
18 | 24 | },
|
|
0 commit comments