Skip to content

Commit 32272ed

Browse files
Janpotmnajdova
authored andcommitted
Fix moduleResolution:node for icons (mui#45444)
1 parent 89e3fda commit 32272ed

File tree

6 files changed

+220
-3
lines changed

6 files changed

+220
-3
lines changed

.circleci/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,9 @@ jobs:
468468
- run:
469469
name: Build packages for fixtures
470470
command: pnpm release:build
471+
- run:
472+
name: Analyze exported typescript
473+
command: pnpm test:attw
471474
- run:
472475
name: Run visual regression tests using Pigment CSS
473476
command: xvfb-run pnpm test:regressions-pigment-css

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"start": "pnpm install && pnpm docs:dev",
5555
"test": "node scripts/test.mjs",
5656
"tc": "nx run nx_test_tc",
57+
"test:attw": "pnpm run --parallel -r attw",
5758
"test:extended": "pnpm eslint && pnpm typescript && pnpm test:coverage",
5859
"test:coverage": "nx run nx_test_coverage",
5960
"test:coverage:ci": "nx run nx_test_coverage_ci",
@@ -107,6 +108,7 @@
107108
"google-auth-library": "^9.15.1"
108109
},
109110
"devDependencies": {
111+
"@arethetypeswrong/cli": "^0.17.4",
110112
"@argos-ci/core": "^3.1.0",
111113
"@babel/cli": "^7.26.4",
112114
"@babel/core": "^7.26.9",

packages/mui-icons-material/package.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"src:icons": "cross-env UV_THREADPOOL_SIZE=64 node ./builder.mjs --output-dir src --svg-dir material-icons --renameFilter ./renameFilters/material-design-icons.mjs && pnpm build:lib:clean",
4444
"test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-icons-material/**/*.test.?(c|m)[jt]s?(x)'",
4545
"test:built-typings": "tsc -p test/generated-types/tsconfig.json",
46-
"typescript": "tsc -p tsconfig.json"
46+
"typescript": "tsc -p tsconfig.json",
47+
"attw": "attw --pack ./build --exclude-entrypoints esm --include-entrypoints Close"
4748
},
4849
"dependencies": {
4950
"@babel/runtime": "^7.26.9"
@@ -85,6 +86,16 @@
8586
"engines": {
8687
"node": ">=14.0.0"
8788
},
89+
"typesVersions": {
90+
"*": {
91+
"index": [
92+
"./index.d.ts"
93+
],
94+
"*": [
95+
"./icon.d.ts"
96+
]
97+
}
98+
},
8899
"exports": {
89100
".": {
90101
"import": {

packages/mui-material-nextjs/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"prebuild": "rimraf build tsconfig.build.tsbuildinfo",
3434
"release": "pnpm build && pnpm publish",
3535
"test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-material-nextjs/**/*.test.?(c|m)[jt]s?(x)'",
36-
"typescript": "tsc -p tsconfig.json"
36+
"typescript": "tsc -p tsconfig.json",
37+
"attw": "attw --pack ./build --exclude-entrypoints . esm modern --include-entrypoints v15-pagesRouter v15-appRouter"
3738
},
3839
"dependencies": {
3940
"@babel/runtime": "^7.26.9"

packages/mui-material/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"release": "pnpm build && pnpm publish",
3838
"test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-material/**/*.test.?(c|m)[jt]s?(x)'",
3939
"typescript": "tsc -p tsconfig.json",
40-
"typescript:module-augmentation": "node scripts/testModuleAugmentation.js"
40+
"typescript:module-augmentation": "node scripts/testModuleAugmentation.js",
41+
"attw": "attw --pack ./build --exclude-entrypoints esm modern --include-entrypoints Button styles"
4142
},
4243
"dependencies": {
4344
"@babel/runtime": "^7.26.9",

0 commit comments

Comments
 (0)