From d551a7811bcbb1d57bd80b700dd714a6cd29e7c6 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Fri, 13 Feb 2026 14:15:29 -0500 Subject: [PATCH 1/2] chore(ui): use compiled exports by default --- .github/workflows/publish-packages.yml | 4 ++-- packages/ui-components/package.json | 9 ++++----- packages/ui-components/tsconfig.json | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 1175b769ce0d0..4890d57154610 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -114,8 +114,8 @@ jobs: working-directory: packages/${{ matrix.package }} run: | # Check if a custom publish script exists in package.json - if jq -e '.scripts.release' package.json > /dev/null; then - pnpm run release + if jq -e '.scripts.compile' package.json > /dev/null; then + pnpm run compile fi # Then publish the package to npm diff --git a/packages/ui-components/package.json b/packages/ui-components/package.json index 7a41bf25e5663..97f50b24dda57 100644 --- a/packages/ui-components/package.json +++ b/packages/ui-components/package.json @@ -4,12 +4,12 @@ "type": "module", "exports": { "./*": { - "rolldown": [ + "default": [ "./dist/*", "./dist/*.js", "./dist/*/index.js" ], - "default": [ + "uncompiled": [ "./src/*", "./src/*.tsx", "./src/*/index.tsx", @@ -28,7 +28,6 @@ "compile:css": "postcss --dir dist --base src \"src/**/*.module.css\" src/styles/index.css", "compile": "node --run compile:ts && node --run compile:css", "compile:watch": "concurrently -k \"node --run compile:ts -- --watch\" \"node --run compile:css -- --watch\"", - "release": "node --run compile", "lint": "node --run lint:js && node --run lint:css", "lint:css": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-strategy=content --cache-location=.stylelintcache", "lint:css:fix": "node --run lint:css -- --fix", @@ -90,12 +89,12 @@ }, "imports": { "#ui/*": { - "rolldown": [ + "default": [ "./dist/*", "./dist/*.js", "./dist/*/index.js" ], - "default": [ + "uncompiled": [ "./src/*", "./src/*.tsx", "./src/*/index.tsx", diff --git a/packages/ui-components/tsconfig.json b/packages/ui-components/tsconfig.json index d1b21933bc857..d23c58508c90f 100644 --- a/packages/ui-components/tsconfig.json +++ b/packages/ui-components/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "module": "esnext", "moduleResolution": "bundler", - "customConditions": ["default"], + "customConditions": ["uncompiled"], "resolveJsonModule": true, "isolatedModules": true, "jsx": "react-jsx", From 1735d5f2ee6fc062aea8468bf2ddaebdbd667dbe Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Fri, 13 Feb 2026 14:22:40 -0500 Subject: [PATCH 2/2] fixup! --- apps/site/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/tsconfig.json b/apps/site/tsconfig.json index 6956ba1568824..cde6a79fb497f 100644 --- a/apps/site/tsconfig.json +++ b/apps/site/tsconfig.json @@ -10,7 +10,7 @@ "esModuleInterop": true, "module": "esnext", "moduleResolution": "Bundler", - "customConditions": ["default"], + "customConditions": ["uncompiled"], "resolveJsonModule": true, "isolatedModules": true, "jsx": "react-jsx",