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