Skip to content

Commit c5ae24a

Browse files
committed
dist includes only ESM
1 parent d9c6363 commit c5ae24a

File tree

3 files changed

+3
-37
lines changed

3 files changed

+3
-37
lines changed

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44
"description": "MessagePack for ECMA-262/JavaScript/TypeScript",
55
"author": "The MessagePack community",
66
"license": "ISC",
7+
"type": "module",
78
"main": "./dist/index.js",
8-
"module": "./dist.esm/index.mjs",
9+
"module": "./dist/index.js",
910
"cdn": "./dist.umd/msgpack.min.js",
1011
"unpkg": "./dist.umd/msgpack.min.js",
1112
"types": "./dist/index.d.ts",
1213
"sideEffects": false,
1314
"scripts": {
1415
"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",
16+
"prepare": "npm run clean && webpack --bail && tsc --build tsconfig.dist.json",
1617
"prepublishOnly": "npm run test:dist",
1718
"clean": "rimraf build dist dist.*",
1819
"test": "mocha 'test/**/*.test.ts'",

tools/esmify.ts

-24
This file was deleted.

tsconfig.dist.esm.json

-11
This file was deleted.

0 commit comments

Comments
 (0)