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 e392ae8 commit c615e38
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 5 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"import": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
},
"type":"module",
"files": [
"dist"
],
Expand All @@ -28,7 +29,7 @@
"scripts": {
"build": "yarn build:esm && yarn build:cjs",
"build:cjs": "node ./bin/build-cjs.js",
"build:esm": "yarn tsc --project tsconfig.build.json",
"build:esm": "yarn tsc --project tsconfig.build.json && tsc-esm-fix --tsconfig ./tsconfig.build.json",
"build:storybook": "build-storybook",
"check:package": "yarn package-check",
"check:tsc": "yarn tsc --noEmit",
Expand Down Expand Up @@ -79,6 +80,7 @@
"react-dom": "^17.0.2",
"semantic-release": "^18.0.0",
"ts-jest": "^27.0.7",
"tsc-esm-fix": "^2.20.5",
"typescript": "^4.4.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig",
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"outDir": "dist/esm"
Expand Down

0 comments on commit c615e38

Please sign in to comment.