From ebb629c75292c74a8e4db7f377a072a15d3c49e9 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Sat, 21 Sep 2024 12:19:10 +0200 Subject: [PATCH] Fix publication errors for `@patternfly/react-charts` Signed-off-by: Jon Koops --- packages/react-charts/package.json | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/packages/react-charts/package.json b/packages/react-charts/package.json index f4ca9bfc61a..780ce45b437 100644 --- a/packages/react-charts/package.json +++ b/packages/react-charts/package.json @@ -2,21 +2,27 @@ "name": "@patternfly/react-charts", "version": "8.0.0-prerelease.10", "description": "This library provides a set of React chart components for use with the PatternFly reference implementation.", - "main": "dist/js/index.js", - "module": "dist/esm/index.js", - "types": "dist/esm/index.d.ts", - "patternfly:src": "src/", - "sideEffects": [ - "*.css", - "*.scss" - ], + "type": "module", + "exports": { + ".": { + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/js/index.d.ts", + "default": "./dist/js/index.d.ts" + } + }, + "./package.json": "./package.json" + }, "publishConfig": { "access": "public", "tag": "prerelase" }, "repository": { "type": "git", - "url": "https://github.com/patternfly/patternfly-react.git" + "url": "git+https://github.com/patternfly/patternfly-react.git" }, "keywords": [ "react",