|
4 | 4 | "description": "MessagePack for ECMA-262/JavaScript/TypeScript",
|
5 | 5 | "author": "The MessagePack community",
|
6 | 6 | "license": "ISC",
|
7 |
| - "main": "./dist.cjs/index.js", |
| 7 | + "main": "./dist.cjs/index.cjs", |
8 | 8 | "module": "./dist.esm/index.mjs",
|
9 | 9 | "cdn": "./dist.umd/msgpack.min.js",
|
10 | 10 | "unpkg": "./dist.umd/msgpack.min.js",
|
11 | 11 | "types": "./dist.esm/index.d.ts",
|
12 | 12 | "sideEffects": false,
|
13 | 13 | "scripts": {
|
14 | 14 | "build": "npm publish --dry-run",
|
15 |
| - "prepare": "npm run clean && webpack --bail && tsc --build tsconfig.dist.cjs.json tsconfig.dist.esm.json && ts-node tools/esmify.ts dist.esm/*.js dist.esm/*/*.js", |
| 15 | + "prepare": "npm run clean && webpack --bail && tsc --build tsconfig.dist.cjs.json tsconfig.dist.esm.json && tsimp tools/fix-ext.mts --mjs dist.esm/*.js dist.esm/*/*.js && tsimp tools/fix-ext.mts --cjs dist.cjs/*.js dist.cjs/*/*.js", |
16 | 16 | "prepublishOnly": "npm run test:dist",
|
17 | 17 | "clean": "rimraf build dist dist.*",
|
18 | 18 | "test": "mocha 'test/**/*.test.ts'",
|
19 | 19 | "test:dist": "npm run lint && npm run test && npm run test:deno",
|
20 | 20 | "test:cover": "npm run cover:clean && npx nyc --no-clean npm run 'test' && npm run cover:report",
|
21 |
| - "test:deno": "deno test test/deno_test.ts", |
| 21 | + "test:deno": "deno test --allow-read test/deno_*.ts", |
22 | 22 | "test:bun": "bun test test/bun.spec.ts",
|
23 | 23 | "test:fuzz": "npm exec --yes -- jsfuzz@git+https://gitlab.com/gitlab-org/security-products/analyzers/fuzzers/jsfuzz.git#39e6cf16613a0e30c7a7953f62e64292dbd5d3f3 --fuzzTime 60 --no-versifier test/decode.jsfuzz.js corpus",
|
24 | 24 | "cover:clean": "rimraf .nyc_output coverage/",
|
|
89 | 89 | "webpack-cli": "latest"
|
90 | 90 | },
|
91 | 91 | "files": [
|
92 |
| - "mod.ts", |
93 | 92 | "src/**/*.*",
|
94 |
| - "dist/**/*.*", |
| 93 | + "dist.cjs/**/*.*", |
| 94 | + "dist.esm/**/*.*", |
95 | 95 | "dist.umd/**/*.*",
|
96 |
| - "dist.esm/**/*.*" |
| 96 | + "mod.ts" |
97 | 97 | ]
|
98 | 98 | }
|
0 commit comments