@mui/internal-code-infra 0.0.2-canary.58 → 0.0.2-canary.59
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 +4 -4
- package/src/cli/cmdBuild.mjs +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-code-infra",
|
|
3
|
-
"version": "0.0.2-canary.
|
|
3
|
+
"version": "0.0.2-canary.59",
|
|
4
4
|
"description": "Infra scripts and configs to be used across MUI repos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"semver": "^7.7.2",
|
|
58
58
|
"typescript-eslint": "^8.40.0",
|
|
59
59
|
"yargs": "^18.0.0",
|
|
60
|
+
"@mui/internal-babel-plugin-display-name": "1.0.4-canary.6",
|
|
60
61
|
"@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.19",
|
|
61
|
-
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.7"
|
|
62
|
-
"@mui/internal-babel-plugin-display-name": "1.0.4-canary.6"
|
|
62
|
+
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.7"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"eslint": "^9.0.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"access": "public"
|
|
92
92
|
},
|
|
93
|
-
"gitSha": "
|
|
93
|
+
"gitSha": "16df0b56f5666a8f493c1519eb0ea7d13657152c",
|
|
94
94
|
"scripts": {
|
|
95
95
|
"typescript": "tsc -p tsconfig.json",
|
|
96
96
|
"test": "pnpm -w test --project @mui/internal-code-infra",
|
package/src/cli/cmdBuild.mjs
CHANGED
|
@@ -299,7 +299,12 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
|
|
|
299
299
|
const buildDirBase = packageJson.publishConfig?.directory;
|
|
300
300
|
if (!buildDirBase) {
|
|
301
301
|
throw new Error(
|
|
302
|
-
|
|
302
|
+
`No build directory specified in "${packageJson.name}" package.json. Specify it in the "publishConfig.directory" field.`,
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
if (packageJson.private === false) {
|
|
306
|
+
throw new Error(
|
|
307
|
+
`Remove the field "private": false from "${packageJson.name}" package.json. This is redundant.`,
|
|
303
308
|
);
|
|
304
309
|
}
|
|
305
310
|
const buildDir = path.join(cwd, buildDirBase);
|