Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
fix: produce proper esm bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 19, 2022
1 parent c615e38 commit a9f81a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
"registry": "https://npm.pkg.github.com"
},
"main": "dist/cjs/index.js",
"module": "./dist/esm/index.js",
"module": "./dist/esm/index.mjs",
"types": "./dist/esm/index.d.ts",
"exports": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"import": "./dist/esm/index.mjs",
"default": "./dist/esm/index.js"
},
"type":"module",
"files": [
"dist"
],
Expand All @@ -29,7 +28,7 @@
"scripts": {
"build": "yarn build:esm && yarn build:cjs",
"build:cjs": "node ./bin/build-cjs.js",
"build:esm": "yarn tsc --project tsconfig.build.json && tsc-esm-fix --tsconfig ./tsconfig.build.json",
"build:esm": "yarn tsc --project tsconfig.build.json && tsc-esm-fix --tsconfig ./tsconfig.build.json --ext=.mjs",
"build:storybook": "build-storybook",
"check:package": "yarn package-check",
"check:tsc": "yarn tsc --noEmit",
Expand Down

0 comments on commit a9f81a6

Please sign in to comment.