From b64e4b10033652d2356e682a41e628e68674e28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristhian=20Fern=C3=A1ndez?= Date: Tue, 12 May 2026 11:11:41 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20expose=20package.json=20in?= =?UTF-8?q?=20exports=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow consumers to read the package version at runtime/build time via `import { version } from '@konstructio/ui/package.json'`, matching the pattern used by react, react-router-dom and other libraries that ship with restricted `exports`. This unblocks Module Federation host shells that want to register @konstructio/ui as a shared singleton — the host needs the installed version string to pass to `createInstance({ shared: { ... } })`, and without this entry the deep import fails with ERR_PACKAGE_PATH_NOT_EXPORTED. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c2226a2..a17512ec 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ }, "./*.css": { "import": "./dist/*.css" - } + }, + "./package.json": "./package.json" }, "files": [ "dist"