Skip to content

Commit 46440cc

Browse files
author
theGrep01
committed
chore: update package.json to include module exports for ESM and CommonJS
1 parent d636a35 commit 46440cc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/metro-core/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,30 @@
2828
"bootstrap/"
2929
],
3030
"main": "./dist/index.js",
31+
"module": "./dist/index.mjs",
3132
"types": "./dist/index.d.ts",
3233
"exports": {
3334
".": {
3435
"types": "./dist/index.d.ts",
35-
"dev": "./dev/index.js",
3636
"import": "./dist/index.mjs",
37+
"require": "./dist/index.js",
3738
"default": "./dist/index.js"
3839
},
3940
"./commands": {
4041
"types": "./dist/commands/index.d.ts",
41-
"dev": "./dev/commands.js",
4242
"import": "./dist/commands/index.mjs",
43+
"require": "./dist/commands/index.js",
4344
"default": "./dist/commands/index.js"
4445
},
46+
"./types": {
47+
"types": "./dist/types.d.ts",
48+
"import": "./dist/types.mjs",
49+
"require": "./dist/types.js",
50+
"default": "./dist/types.js"
51+
},
4552
"./babel-plugin": "./babel-plugin/index.js",
4653
"./babel-plugin/*": "./babel-plugin/*.js",
4754
"./bootstrap": {
48-
"dev": "./src/modules/asyncStartup.tsx",
4955
"default": "./dist/modules/asyncStartup.tsx"
5056
}
5157
},

0 commit comments

Comments
 (0)