Skip to content

Commit 4ce093f

Browse files
committed
Update package.json exports field
1 parent e1bdcf6 commit 4ce093f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
{
22
"name": "@badrap/result",
3-
"version": "0.2.11",
3+
"version": "0.2.12",
44
"description": "A TypeScript result type taking cues from Rust's Result and Haskell's Either types",
5-
"main": "dist/index.js",
6-
"module": "dist/index.mjs",
7-
"exports": "./dist/index.modern.js",
85
"source": "src/index.ts",
6+
"exports": {
7+
"require": "./dist/index.js",
8+
"default": "./dist/index.modern.mjs"
9+
},
10+
"main": "./dist/index.js",
11+
"module": "./dist/index.module.mjs",
12+
"unpkg": "./dist/index.umd.js",
913
"sideEffects": false,
1014
"repository": "badrap/result",
1115
"author": "Joachim Viide <[email protected]>",
1216
"license": "MIT",
1317
"scripts": {
1418
"test": "tsc --noEmit --skipLibCheck && TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --require ts-node/register test/**/*.test.ts",
15-
"build": "rm -rf dist && microbundle --format modern,es,cjs",
19+
"build": "rm -rf dist && microbundle",
1620
"prepack": "npm run build"
1721
},
1822
"devDependencies": {

0 commit comments

Comments
 (0)