From ff18e11e94041c6b4ba17c150fcf248d23fcaef9 Mon Sep 17 00:00:00 2001 From: michal-drobniak Date: Sun, 29 Dec 2024 13:24:21 +0100 Subject: [PATCH] fix(storybook-addon-rslib): use correct file extensions in `exports` object in package.json - because currently addon doesn't work because the defined `cjs` file doesn't exist in dist --- packages/addon-rslib/package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/addon-rslib/package.json b/packages/addon-rslib/package.json index c1d932a..9002c30 100644 --- a/packages/addon-rslib/package.json +++ b/packages/addon-rslib/package.json @@ -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",