From 4d51fbd19ca1905af24196ba98aa88279aab0895 Mon Sep 17 00:00:00 2001 From: Mathieu Huchet Date: Thu, 20 Jun 2024 16:00:16 +0200 Subject: [PATCH] fix: Fix exports to allow deep imports --- .changeset/green-geckos-sip.md | 8 ++++++++ packages/components/package.json | 4 ++-- packages/containers/package.json | 4 ++-- packages/design-system/package.json | 4 ++-- packages/utils/package.json | 4 ++-- 5 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 .changeset/green-geckos-sip.md diff --git a/.changeset/green-geckos-sip.md b/.changeset/green-geckos-sip.md new file mode 100644 index 00000000000..1ba40974ba3 --- /dev/null +++ b/.changeset/green-geckos-sip.md @@ -0,0 +1,8 @@ +--- +'@talend/design-system': patch +'@talend/react-components': patch +'@talend/react-containers': patch +'@talend/utils': patch +--- + +fix: Fix exports to allow deep imports diff --git a/packages/components/package.json b/packages/components/package.json index b53e38287eb..313681e5e85 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/*/index.js", - "require": "./lib/*/index.js" + "import": "./lib-esm/*", + "require": "./lib/*" }, ".": { "import": "./lib-esm/index.js", diff --git a/packages/containers/package.json b/packages/containers/package.json index e6fa0ba8cc6..a683e43e67c 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/*/index.js", - "require": "./lib/*/index.js" + "import": "./lib-esm/*", + "require": "./lib/*" }, ".": { "import": "./lib-esm/index.js", diff --git a/packages/design-system/package.json b/packages/design-system/package.json index e91ffdd7c91..9e028ac5505 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/*/index.js", - "require": "./lib/*/index.js" + "import": "./lib-esm/*", + "require": "./lib/*" }, ".": { "import": "./lib-esm/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index 6b303e310d7..db5ff2e2c25 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/*/index.js", - "require": "./lib/*/index.js" + "import": "./lib-esm/*", + "require": "./lib/*" }, ".": { "import": "./lib-esm/index.js",