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

- because currently addon doesn't work because the defined `cjs` file doesn't exist in dist
  • Loading branch information
michal-drobniak committed Dec 29, 2024
1 parent 6e947e5 commit ff18e11
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 ff18e11

Please sign in to comment.