diff --git a/package.json b/package.json index 349488c4ae7d2d..f6c8559f92ae4b 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,7 @@ "@mui-internal/api-docs-builder-core": "workspace:^", "@mui/internal-babel-plugin-minify-errors": "^2.0.8-canary.7", "@mui/internal-bundle-size-checker": "^1.0.9-canary.36", - "@mui/internal-code-infra": "^0.0.3-canary.0", + "@mui/internal-code-infra": "^0.0.3-canary.1", "@mui/internal-docs-utils": "workspace:^", "@mui/internal-scripts": "workspace:^", "@mui/internal-test-utils": "workspace:^", diff --git a/packages/mui-icons-material/package.json b/packages/mui-icons-material/package.json index ac3f2b24897c1d..6c5e0a71a3800f 100644 --- a/packages/mui-icons-material/package.json +++ b/packages/mui-icons-material/package.json @@ -29,9 +29,9 @@ "scripts": { "build": "shx cp -r lib/ build/ && pnpm build:copy-files && pnpm build:typings && pnpm build:esm-pkg", "build:esm-pkg": "node ./scripts/create-esm-package-json.mjs", - "build:lib": "code-infra build --hasLargeFiles --skipPackageJson --skipBundlePackageJson --buildTypes false", + "build:lib": "code-infra build --hasLargeFiles --skipPackageJson --skipBundlePackageJson --skipMainCheck --buildTypes false", "build:lib:clean": "rimraf lib && pnpm build:lib && shx cp -R build lib", - "build:stable": "code-infra build --bundle esm --hasLargeFiles --skipPackageJson --buildTypes false --skipBundlePackageJson", + "build:stable": "code-infra build --bundle esm --hasLargeFiles --skipPackageJson --buildTypes false --skipBundlePackageJson --skipMainCheck", "build:copy-files": "node ../../scripts/copyFiles.mjs", "build:typings": "node ./scripts/create-typings.mjs", "release": "pnpm build && pnpm publish", @@ -82,23 +82,23 @@ }, "exports": { ".": { - "import": { - "types": "./esm/index.d.ts", - "default": "./esm/index.js" - }, "require": { "types": "./index.d.ts", "default": "./index.js" + }, + "default": { + "types": "./esm/index.d.ts", + "default": "./esm/index.js" } }, "./*": { - "import": { - "types": "./esm/*.d.ts", - "default": "./esm/*.js" - }, "require": { "types": "./*.d.ts", "default": "./*.js" + }, + "default": { + "types": "./esm/*.d.ts", + "default": "./esm/*.js" } }, "./esm": null, diff --git a/packages/mui-joy/package.json b/packages/mui-joy/package.json index 6056a4dd824dcd..9cf315bdf4de02 100644 --- a/packages/mui-joy/package.json +++ b/packages/mui-joy/package.json @@ -3,7 +3,6 @@ "version": "5.0.0-beta.49", "private": true, "description": "Joy UI is an open-source React component library that implements MUI's own design principles. It's comprehensive and can be used in production out of the box.", - "main": "./src/index.ts", "keywords": [ "react", "react-component", @@ -85,6 +84,7 @@ "node": ">=14.0.0" }, "exports": { + ".": "./src/index.ts", "./*": "./src/*/index.ts" } } diff --git a/packages/mui-lab/package.json b/packages/mui-lab/package.json index 561b0eb312c7d5..1f209f30e0e8b8 100644 --- a/packages/mui-lab/package.json +++ b/packages/mui-lab/package.json @@ -4,7 +4,6 @@ "version": "7.0.0-beta.17", "author": "MUI Team", "description": "Laboratory for new Material UI modules.", - "main": "./src/index.js", "keywords": [ "react", "react-component", @@ -88,6 +87,7 @@ "node": ">=14.0.0" }, "exports": { + ".": "./src/index.js", "./*": "./src/*/index.ts" } } diff --git a/packages/mui-material-pigment-css/package.json b/packages/mui-material-pigment-css/package.json index e98e50edcd4fe8..290b6270a9d572 100644 --- a/packages/mui-material-pigment-css/package.json +++ b/packages/mui-material-pigment-css/package.json @@ -3,7 +3,6 @@ "version": "7.3.2", "author": "MUI Team", "description": "A wrapper over Pigment CSS that provides the same styled and theming APIs as Material UI.", - "main": "./src/index.ts", "keywords": [ "react", "mui", @@ -63,6 +62,7 @@ } }, "exports": { + ".": "./src/index.ts", "./styles.css": "./src/styles.css", "./*": "./src/*/index.ts" }, diff --git a/packages/mui-material/package.json b/packages/mui-material/package.json index f74cc69e55fdd8..17e2ab5533bca4 100644 --- a/packages/mui-material/package.json +++ b/packages/mui-material/package.json @@ -3,7 +3,6 @@ "version": "7.3.2", "author": "MUI Team", "description": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.", - "main": "./src/index.ts", "keywords": [ "react", "react-component", @@ -99,6 +98,7 @@ "node": ">=14.0.0" }, "exports": { + ".": "./src/index.js", "./ButtonBase/TouchRipple": "./src/ButtonBase/TouchRipple.js", "./*": "./src/*/index.ts" }, diff --git a/packages/mui-private-theming/package.json b/packages/mui-private-theming/package.json index 6e8542f44bf146..807fa872aacbfc 100644 --- a/packages/mui-private-theming/package.json +++ b/packages/mui-private-theming/package.json @@ -3,7 +3,6 @@ "version": "7.3.2", "author": "MUI Team", "description": "Private - The React theme context to be shared between `@mui/styles` and `@mui/material`.", - "main": "./src/index.js", "keywords": [ "react", "react-component", @@ -63,6 +62,7 @@ "node": ">=14.0.0" }, "exports": { + ".": "./src/index.js", "./*": "./src/*/index.js" } } diff --git a/packages/mui-styled-engine-sc/package.json b/packages/mui-styled-engine-sc/package.json index 176388bef53bc5..6b5af30d5033d0 100644 --- a/packages/mui-styled-engine-sc/package.json +++ b/packages/mui-styled-engine-sc/package.json @@ -3,7 +3,6 @@ "version": "7.3.2", "author": "MUI Team", "description": "styled() API wrapper package for styled-components.", - "main": "./src/index.js", "keywords": [ "react", "react-component", @@ -59,6 +58,7 @@ "node": ">=14.0.0" }, "exports": { + ".": "./src/index.js", "./*": "./src/*/index.js" } } diff --git a/packages/mui-styled-engine/package.json b/packages/mui-styled-engine/package.json index c5b7e6492587f5..b14d36ce48bbce 100644 --- a/packages/mui-styled-engine/package.json +++ b/packages/mui-styled-engine/package.json @@ -3,7 +3,6 @@ "version": "7.3.2", "author": "MUI Team", "description": "styled() API wrapper package for emotion.", - "main": "./src/index.js", "keywords": [ "react", "react-component", @@ -73,6 +72,7 @@ "node": ">=14.0.0" }, "exports": { + ".": "./src/index.js", "./*": "./src/*/index.js" } } diff --git a/packages/mui-stylis-plugin-rtl/package.json b/packages/mui-stylis-plugin-rtl/package.json index 91c069c6c872a6..24d96467508225 100644 --- a/packages/mui-stylis-plugin-rtl/package.json +++ b/packages/mui-stylis-plugin-rtl/package.json @@ -3,7 +3,6 @@ "version": "7.3.2", "author": "MUI Team", "description": "A plugin for MaterialĀ UI that provides RTL (right-to-left) support.", - "main": "./src/index.ts", "keywords": [ "react", "react-component", @@ -58,5 +57,8 @@ }, "engines": { "node": ">=14.0.0" + }, + "exports": { + ".": "./src/index.ts" } } diff --git a/packages/mui-system/package.json b/packages/mui-system/package.json index fc6dfe2c8270fc..2c31f9f8de8911 100644 --- a/packages/mui-system/package.json +++ b/packages/mui-system/package.json @@ -3,7 +3,6 @@ "version": "7.3.2", "author": "MUI Team", "description": "MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.", - "main": "./src/index.js", "keywords": [ "react", "react-component", @@ -86,6 +85,7 @@ "node": ">=14.0.0" }, "exports": { + ".": "./src/index.js", "./*": "./src/*/index.ts" } } diff --git a/packages/mui-types/package.json b/packages/mui-types/package.json index ac937c509259ab..30aae915a7afaa 100644 --- a/packages/mui-types/package.json +++ b/packages/mui-types/package.json @@ -3,7 +3,6 @@ "version": "7.4.6", "author": "MUI Team", "description": "Utility types for Material UI.", - "types": "./index.d.ts", "keywords": [ "react", "react-component", @@ -48,5 +47,8 @@ "@types/react": { "optional": true } + }, + "exports": { + ".": "./src/index.ts" } } diff --git a/packages/mui-utils/package.json b/packages/mui-utils/package.json index cf430a1321640d..27952de5585582 100644 --- a/packages/mui-utils/package.json +++ b/packages/mui-utils/package.json @@ -3,7 +3,6 @@ "version": "7.3.2", "author": "MUI Team", "description": "Utility functions for React components.", - "main": "./src/index.ts", "keywords": [ "react", "react-component", @@ -74,6 +73,7 @@ "node": ">=14.0.0" }, "exports": { + ".": "./src/index.ts", "./*": "./src/*/index.ts" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f16c7d0c03949e..f7a0aa46ba3ce9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,8 +68,8 @@ importers: specifier: ^1.0.9-canary.36 version: 1.0.9-canary.37(@types/node@20.19.11)(jiti@2.5.1)(lightningcss@1.30.1)(rollup@4.46.2)(terser@5.39.0)(tsx@4.20.4)(yaml@2.8.0) '@mui/internal-code-infra': - specifier: ^0.0.3-canary.0 - version: 0.0.3-canary.0(@typescript-eslint/parser@8.40.0(eslint@9.34.0(jiti@2.5.1))(typescript@5.9.2))(eslint-import-resolver-webpack@0.13.10)(eslint@9.34.0(jiti@2.5.1))(prettier@3.6.2)(typescript@5.9.2) + specifier: ^0.0.3-canary.1 + version: 0.0.3-canary.1(@typescript-eslint/parser@8.40.0(eslint@9.34.0(jiti@2.5.1))(typescript@5.9.2))(eslint-import-resolver-webpack@0.13.10)(eslint@9.34.0(jiti@2.5.1))(prettier@3.6.2)(typescript@5.9.2) '@mui/internal-docs-utils': specifier: workspace:^ version: link:packages-internal/docs-utils @@ -3937,8 +3937,8 @@ packages: resolution: {integrity: sha512-pVNT9s3a7/3aUrgTutyj+y7rwoD7NNo6Zde1qjdxe5oBvCo7U3+758T/9o93Xxf/1++XgymbDyFM1IbkrOO4+A==} hasBin: true - '@mui/internal-code-infra@0.0.3-canary.0': - resolution: {integrity: sha512-UrRxmcpUtIw6URCwUkCVqVoihnEEbyeyWH5rqqiffKdO9miiPI0HSZE+dz/D+f7hzOy1IEnj/TStuvKO0avSGQ==} + '@mui/internal-code-infra@0.0.3-canary.1': + resolution: {integrity: sha512-gr0dPyqDjI3oek/UA4fWYtLZgfHWsQ2rnJ8/1TM2m5PjdOU7QjOYt3cC11K+1e61cWI7oyzBSmKAO6Ci+1tH6A==} hasBin: true peerDependencies: eslint: ^9.0.0 @@ -15773,7 +15773,7 @@ snapshots: - tsx - yaml - '@mui/internal-code-infra@0.0.3-canary.0(@typescript-eslint/parser@8.40.0(eslint@9.34.0(jiti@2.5.1))(typescript@5.9.2))(eslint-import-resolver-webpack@0.13.10)(eslint@9.34.0(jiti@2.5.1))(prettier@3.6.2)(typescript@5.9.2)': + '@mui/internal-code-infra@0.0.3-canary.1(@typescript-eslint/parser@8.40.0(eslint@9.34.0(jiti@2.5.1))(typescript@5.9.2))(eslint-import-resolver-webpack@0.13.10)(eslint@9.34.0(jiti@2.5.1))(prettier@3.6.2)(typescript@5.9.2)': dependencies: '@argos-ci/core': 4.1.0 '@babel/cli': 7.28.3(@babel/core@7.28.3)