|
4 | 4 | "description": "MessagePack for ECMA-262/JavaScript/TypeScript",
|
5 | 5 | "author": "The MessagePack community",
|
6 | 6 | "license": "ISC",
|
7 |
| - "main": "./dist/index.js", |
| 7 | + "main": "./dist.cjs/index.js", |
8 | 8 | "module": "./dist.esm/index.mjs",
|
9 | 9 | "cdn": "./dist.umd/msgpack.min.js",
|
10 | 10 | "unpkg": "./dist.umd/msgpack.min.js",
|
11 |
| - "types": "./dist/index.d.ts", |
| 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.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.ts --mjs dist.esm/*.js dist.esm/*/*.js && tsimp tools/fix-ext.ts --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 | 21 | "test:deno": "deno test test/deno_test.ts",
|
| 22 | + "test:bun": "bun test test/bun.spec.ts", |
22 | 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",
|
23 | 24 | "cover:clean": "rimraf .nyc_output coverage/",
|
24 | 25 | "cover:report": "npx nyc report --reporter=text-summary --reporter=html --reporter=json",
|
|
81 | 82 | "rimraf": "latest",
|
82 | 83 | "ts-loader": "latest",
|
83 | 84 | "ts-node": "latest",
|
84 |
| - "tsimp": "^2.0.12", |
| 85 | + "tsimp": "latest", |
85 | 86 | "typescript": "latest",
|
86 | 87 | "webpack": "latest",
|
87 | 88 | "webpack-cli": "latest"
|
|
0 commit comments