@mui/internal-code-infra 0.0.3-canary.93 → 0.0.3-canary.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.3-canary.93",
3
+ "version": "0.0.3-canary.95",
4
4
  "description": "Infra scripts and configs to be used across MUI repos.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -51,11 +51,11 @@
51
51
  "dependencies": {
52
52
  "@argos-ci/core": "^4.5.0",
53
53
  "@babel/cli": "^7.28.6",
54
- "@babel/core": "^7.28.6",
54
+ "@babel/core": "^7.29.0",
55
55
  "@babel/plugin-syntax-jsx": "^7.28.6",
56
56
  "@babel/plugin-syntax-typescript": "^7.28.6",
57
- "@babel/plugin-transform-runtime": "^7.28.5",
58
- "@babel/preset-env": "^7.28.6",
57
+ "@babel/plugin-transform-runtime": "^7.29.0",
58
+ "@babel/preset-env": "^7.29.0",
59
59
  "@babel/preset-react": "^7.28.5",
60
60
  "@babel/preset-typescript": "^7.28.5",
61
61
  "@eslint/compat": "^2.0.2",
@@ -68,9 +68,9 @@
68
68
  "@octokit/oauth-methods": "^6.0.2",
69
69
  "@octokit/rest": "^22.0.1",
70
70
  "@pnpm/find-workspace-dir": "^1000.1.3",
71
- "@typescript-eslint/types": "^8.54.0",
72
- "@typescript-eslint/utils": "^8.54.0",
73
- "@vitest/eslint-plugin": "^1.6.6",
71
+ "@typescript-eslint/types": "^8.56.0",
72
+ "@typescript-eslint/utils": "^8.56.0",
73
+ "@vitest/eslint-plugin": "^1.6.9",
74
74
  "babel-plugin-optimize-clsx": "^2.6.2",
75
75
  "babel-plugin-react-compiler": "^1.0.0",
76
76
  "babel-plugin-transform-import-meta": "^2.3.3",
@@ -78,27 +78,27 @@
78
78
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
79
79
  "babel-plugin-transform-remove-imports": "^1.8.1",
80
80
  "chalk": "^5.6.2",
81
- "clipboardy": "^5.0.2",
81
+ "clipboardy": "^5.3.0",
82
82
  "content-type": "^1.0.5",
83
83
  "env-ci": "^11.2.0",
84
84
  "eslint-config-prettier": "^10.1.8",
85
85
  "eslint-import-resolver-typescript": "^4.4.4",
86
86
  "eslint-module-utils": "^2.12.1",
87
- "eslint-plugin-compat": "^6.1.0",
87
+ "eslint-plugin-compat": "^6.2.0",
88
88
  "eslint-plugin-import": "^2.32.0",
89
89
  "eslint-plugin-jsx-a11y": "^6.10.2",
90
90
  "eslint-plugin-mocha": "^11.2.0",
91
91
  "eslint-plugin-react": "^7.37.5",
92
92
  "eslint-plugin-react-compiler": "^19.1.0-rc.2",
93
93
  "eslint-plugin-react-hooks": "^7.0.1",
94
- "eslint-plugin-testing-library": "^7.15.4",
95
- "es-toolkit": "^1.43.0",
94
+ "eslint-plugin-testing-library": "^7.16.0",
95
+ "es-toolkit": "^1.44.0",
96
96
  "execa": "^9.6.1",
97
97
  "git-url-parse": "^16.1.0",
98
98
  "globals": "^16.5.0",
99
- "globby": "^16.1.0",
100
- "minimatch": "^10.1.1",
101
- "node-html-parser": "^7.0.1",
99
+ "globby": "^16.1.1",
100
+ "minimatch": "^10.2.2",
101
+ "node-html-parser": "^7.0.2",
102
102
  "open": "^10.2.0",
103
103
  "postcss-styled-syntax": "^0.7.1",
104
104
  "regexp.escape": "^2.0.1",
@@ -108,14 +108,14 @@
108
108
  "remark-parse": "^11.0.0",
109
109
  "remark-rehype": "^11.1.2",
110
110
  "resolve-pkg-maps": "^1.0.0",
111
- "semver": "^7.7.3",
111
+ "semver": "^7.7.4",
112
112
  "stylelint-config-standard": "^40.0.0",
113
- "typescript-eslint": "^8.54.0",
113
+ "typescript-eslint": "^8.56.0",
114
114
  "unified": "^11.0.5",
115
115
  "yargs": "^18.0.0",
116
- "@mui/internal-babel-plugin-display-name": "1.0.4-canary.12",
117
- "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.31",
118
- "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.21"
116
+ "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.22",
117
+ "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.32",
118
+ "@mui/internal-babel-plugin-display-name": "1.0.4-canary.13"
119
119
  },
120
120
  "peerDependencies": {
121
121
  "@next/eslint-plugin-next": "*",
@@ -143,13 +143,13 @@
143
143
  "@types/estree-jsx": "1.0.5",
144
144
  "@types/regexp.escape": "2.0.0",
145
145
  "@types/yargs": "17.0.35",
146
- "@typescript-eslint/parser": "8.54.0",
147
- "@typescript-eslint/rule-tester": "8.54.0",
146
+ "@typescript-eslint/parser": "8.56.0",
147
+ "@typescript-eslint/rule-tester": "8.56.0",
148
148
  "eslint": "9.39.2",
149
149
  "get-port": "7.1.0",
150
- "prettier": "3.7.4",
150
+ "prettier": "3.8.1",
151
151
  "serve": "14.2.5",
152
- "typescript-eslint": "8.54.0"
152
+ "typescript-eslint": "8.56.0"
153
153
  },
154
154
  "files": [
155
155
  "bin",
@@ -161,7 +161,7 @@
161
161
  "publishConfig": {
162
162
  "access": "public"
163
163
  },
164
- "gitSha": "5a397056f9e93982f8e275c0214fc882d8af3b1c",
164
+ "gitSha": "74232307111caed6f4d181e941df5c358f57ed28",
165
165
  "scripts": {
166
166
  "build": "tsgo -p tsconfig.build.json",
167
167
  "typescript": "tsgo -p tsconfig.json",
@@ -277,7 +277,7 @@ export async function createPackageExports({
277
277
  typeof packageExports === 'string' || Array.isArray(packageExports)
278
278
  ? { '.': packageExports }
279
279
  : packageExports || {};
280
- const originalExports = await expandExportGlobs(rawExports, cwd);
280
+ const originalExports = isFlat ? await expandExportGlobs(rawExports, cwd) : rawExports;
281
281
  /**
282
282
  * @type {import('../cli/packageJson').PackageJson.ExportConditions}
283
283
  */
@@ -567,6 +567,36 @@ describe('createPackageExports', () => {
567
567
  });
568
568
  });
569
569
 
570
+ it('does not expand glob patterns when isFlat is false', async () => {
571
+ await withTempDir(async (cwd) => {
572
+ const outputDir = path.join(cwd, 'build');
573
+
574
+ await Promise.all([
575
+ createFile(path.join(cwd, 'src/Button.ts')),
576
+ createFile(path.join(cwd, 'src/TextField.ts')),
577
+ ]);
578
+
579
+ const { exports: packageExports } = await createPackageExports({
580
+ exports: {
581
+ './*': './src/*.ts',
582
+ },
583
+ bundles: [{ type: 'cjs', dir: '.' }],
584
+ outputDir,
585
+ cwd,
586
+ isFlat: false,
587
+ });
588
+
589
+ // Glob should NOT be expanded to individual files
590
+ expect(packageExports['./Button']).toBeUndefined();
591
+ expect(packageExports['./TextField']).toBeUndefined();
592
+ // The raw glob pattern is passed through as-is
593
+ expect(packageExports['./*']).toEqual({
594
+ require: './*.js',
595
+ default: './*.js',
596
+ });
597
+ });
598
+ });
599
+
570
600
  it('passes through glob key when value has no wildcard', async () => {
571
601
  await withTempDir(async (cwd) => {
572
602
  const outputDir = path.join(cwd, 'build');