Skip to content

Commit 23b2be4

Browse files
authored
Merge pull request #16 from niklasf/modern-bundle
Create bundle in modern mode
2 parents 9b50b37 + 142e1bf commit 23b2be4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
"description": "A TypeScript result type taking cues from Rust's Result and Haskell's Either types",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
7+
"exports": "./dist/index.modern.js",
78
"source": "src/index.ts",
89
"sideEffects": false,
910
"repository": "badrap/result",
1011
"author": "Joachim Viide <[email protected]>",
1112
"license": "MIT",
1213
"scripts": {
1314
"test": "tsc --noEmit --skipLibCheck && TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --require ts-node/register test/**/*.test.ts",
14-
"build": "rm -rf dist && microbundle --format es,cjs",
15+
"build": "rm -rf dist && microbundle --format modern,es,cjs",
1516
"prepack": "npm run build"
1617
},
1718
"devDependencies": {

0 commit comments

Comments
 (0)