From 9a4b67864d9f43d97df4e39301d2a1d0d0d35c21 Mon Sep 17 00:00:00 2001 From: Mathieu Huchet <59565911+tlnd-mhuchet@users.noreply.github.com> Date: Fri, 28 Jun 2024 16:58:29 +0200 Subject: [PATCH] Revert "fix: Fix exports to allow deep imports (#5352)" This reverts commit 94aad7d0d46dc62b6cafc27cb028b229e86b49f1. --- packages/components/package.json | 4 ++-- packages/containers/package.json | 4 ++-- packages/design-system/package.json | 4 ++-- packages/utils/package.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/components/package.json b/packages/components/package.json index 4b0cbbc85b4..359ddd525c8 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -5,8 +5,8 @@ "module": "./lib-esm/index.js", "exports": { "./lib/*": { - "import": "./lib-esm/*", - "require": "./lib/*" + "import": "./lib-esm/*/index.js", + "require": "./lib/*/index.js" }, ".": { "import": "./lib-esm/index.js", diff --git a/packages/containers/package.json b/packages/containers/package.json index 507d84441e5..df3dd2e1c1e 100644 --- a/packages/containers/package.json +++ b/packages/containers/package.json @@ -6,8 +6,8 @@ "module": "./lib-esm/index.js", "exports": { "./lib/*": { - "import": "./lib-esm/*", - "require": "./lib/*" + "import": "./lib-esm/*/index.js", + "require": "./lib/*/index.js" }, ".": { "import": "./lib-esm/index.js", diff --git a/packages/design-system/package.json b/packages/design-system/package.json index e983c4fb530..3cbdd14621b 100644 --- a/packages/design-system/package.json +++ b/packages/design-system/package.json @@ -7,8 +7,8 @@ "module": "./lib-esm/index.js", "exports": { "./lib/*": { - "import": "./lib-esm/*", - "require": "./lib/*" + "import": "./lib-esm/*/index.js", + "require": "./lib/*/index.js" }, ".": { "import": "./lib-esm/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index 3292a4db4d1..e6bd59fa008 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -7,8 +7,8 @@ "module": "./lib-esm/index.js", "exports": { "./lib/*": { - "import": "./lib-esm/*", - "require": "./lib/*" + "import": "./lib-esm/*/index.js", + "require": "./lib/*/index.js" }, ".": { "import": "./lib-esm/index.js",