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",