Skip to content

Commit

Permalink
fix(storybook-addon-rslib): use correct file extensions in exports
Browse files Browse the repository at this point in the history
…object in package.json (#205)

- because currently addon doesn't work because the defined `cjs` file doesn't exist in dist

Co-authored-by: michal-drobniak <[email protected]>
  • Loading branch information
mdrobny and michal-drobniak authored Dec 30, 2024
1 parent 121d858 commit 5fa0939
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/addon-rslib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
"license": "MIT",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.js"
"types": "./dist/index.d.ts",
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./preset": "./dist/preset.cjs",
"./preset": "./dist/preset.js",
"./package.json": "./package.json"
},
"main": "dist/index.js",
Expand Down

0 comments on commit 5fa0939

Please sign in to comment.