@mui/internal-code-infra 0.0.4-canary.11 → 0.0.4-canary.13
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/build/babel-config.d.mts
CHANGED
|
@@ -13,9 +13,10 @@ export type ReactCompilationMode = 'annotation' | 'syntax' | 'infer' | 'all';
|
|
|
13
13
|
* @param {string} param0.runtimeVersion
|
|
14
14
|
* @param {string} [param0.reactCompilerReactVersion]
|
|
15
15
|
* @param {ReactCompilationMode} [param0.reactCompilerMode]
|
|
16
|
+
* @param {{ allowedCallees?: Record<string, string[]> }} [param0.displayName] - Options for the display name plugin.
|
|
16
17
|
* @returns {import('@babel/core').TransformOptions} The base Babel configuration.
|
|
17
18
|
*/
|
|
18
|
-
export declare function getBaseConfig({ debug, optimizeClsx, removePropTypes, noResolveImports, bundle, runtimeVersion, outExtension, reactCompilerReactVersion, reactCompilerMode }: {
|
|
19
|
+
export declare function getBaseConfig({ debug, optimizeClsx, removePropTypes, noResolveImports, bundle, runtimeVersion, outExtension, reactCompilerReactVersion, reactCompilerMode, displayName }: {
|
|
19
20
|
debug?: boolean;
|
|
20
21
|
optimizeClsx?: boolean;
|
|
21
22
|
removePropTypes?: boolean;
|
|
@@ -25,6 +26,9 @@ export declare function getBaseConfig({ debug, optimizeClsx, removePropTypes, no
|
|
|
25
26
|
runtimeVersion: string;
|
|
26
27
|
reactCompilerReactVersion?: string;
|
|
27
28
|
reactCompilerMode?: ReactCompilationMode;
|
|
29
|
+
displayName?: {
|
|
30
|
+
allowedCallees?: Record<string, string[]>;
|
|
31
|
+
};
|
|
28
32
|
}): import('@babel/core').TransformOptions;
|
|
29
33
|
export type Options = {
|
|
30
34
|
bundle?: 'esm' | 'cjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-code-infra",
|
|
3
|
-
"version": "0.0.4-canary.
|
|
3
|
+
"version": "0.0.4-canary.13",
|
|
4
4
|
"description": "Infra scripts and configs to be used across MUI repos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"access": "public"
|
|
166
166
|
},
|
|
167
|
-
"gitSha": "
|
|
167
|
+
"gitSha": "e9b7cbb09759d50b3a1c391f6df49c19cfc927bc",
|
|
168
168
|
"scripts": {
|
|
169
169
|
"build": "tsgo -p tsconfig.build.json",
|
|
170
170
|
"typescript": "tsgo -noEmit",
|
package/src/babel-config.mjs
CHANGED
|
@@ -25,6 +25,7 @@ import pluginRemovePropTypes from 'babel-plugin-transform-react-remove-prop-type
|
|
|
25
25
|
* @param {string} param0.runtimeVersion
|
|
26
26
|
* @param {string} [param0.reactCompilerReactVersion]
|
|
27
27
|
* @param {ReactCompilationMode} [param0.reactCompilerMode]
|
|
28
|
+
* @param {{ allowedCallees?: Record<string, string[]> }} [param0.displayName] - Options for the display name plugin.
|
|
28
29
|
* @returns {import('@babel/core').TransformOptions} The base Babel configuration.
|
|
29
30
|
*/
|
|
30
31
|
export function getBaseConfig({
|
|
@@ -37,6 +38,7 @@ export function getBaseConfig({
|
|
|
37
38
|
outExtension,
|
|
38
39
|
reactCompilerReactVersion,
|
|
39
40
|
reactCompilerMode,
|
|
41
|
+
displayName,
|
|
40
42
|
}) {
|
|
41
43
|
/**
|
|
42
44
|
* @type {import('@babel/preset-env').Options}
|
|
@@ -61,7 +63,7 @@ export function getBaseConfig({
|
|
|
61
63
|
},
|
|
62
64
|
'@babel/plugin-transform-runtime',
|
|
63
65
|
],
|
|
64
|
-
[pluginDisplayName, {}, '@mui/internal-babel-plugin-display-name'],
|
|
66
|
+
[pluginDisplayName, { ...displayName }, '@mui/internal-babel-plugin-display-name'],
|
|
65
67
|
[
|
|
66
68
|
pluginTransformInlineEnvVars,
|
|
67
69
|
{
|
package/src/cli/cmdPublish.mjs
CHANGED
|
@@ -316,9 +316,14 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
|
|
|
316
316
|
const { issues } = await validatePublishDependencies(allPackages);
|
|
317
317
|
|
|
318
318
|
if (issues.length > 0) {
|
|
319
|
-
throw new Error(
|
|
320
|
-
|
|
321
|
-
|
|
319
|
+
throw new Error(
|
|
320
|
+
`Invalid dependencies structure of packages to be published -
|
|
321
|
+
${issues.join('\n ')}
|
|
322
|
+
`,
|
|
323
|
+
{
|
|
324
|
+
cause: issues,
|
|
325
|
+
},
|
|
326
|
+
);
|
|
322
327
|
}
|
|
323
328
|
|
|
324
329
|
console.log('✅ All workspace dependency requirements satisfied');
|
|
@@ -520,9 +520,14 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
|
|
|
520
520
|
const { issues } = await validatePublishDependencies(filteredPackages);
|
|
521
521
|
|
|
522
522
|
if (issues.length > 0) {
|
|
523
|
-
throw new Error(
|
|
524
|
-
|
|
525
|
-
|
|
523
|
+
throw new Error(
|
|
524
|
+
`Invalid dependencies structure of packages to be published -
|
|
525
|
+
${issues.join('\n ')}
|
|
526
|
+
`,
|
|
527
|
+
{
|
|
528
|
+
cause: issues,
|
|
529
|
+
},
|
|
530
|
+
);
|
|
526
531
|
}
|
|
527
532
|
|
|
528
533
|
console.log('✅ All workspace dependency requirements satisfied');
|