@mui/internal-code-infra 0.0.4-canary.53 → 0.0.4-canary.54
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/cmdPublish.mjs +4 -1
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.54",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Infra scripts and configs to be used across MUI repos.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -139,9 +139,9 @@
|
|
|
139
139
|
"unified-lint-rule": "^3.0.1",
|
|
140
140
|
"unist-util-visit": "^5.1.0",
|
|
141
141
|
"yargs": "^18.0.0",
|
|
142
|
-
"@mui/internal-babel-plugin-
|
|
142
|
+
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.27",
|
|
143
143
|
"@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.36",
|
|
144
|
-
"@mui/internal-babel-plugin-
|
|
144
|
+
"@mui/internal-babel-plugin-display-name": "1.0.4-canary.20"
|
|
145
145
|
},
|
|
146
146
|
"peerDependencies": {
|
|
147
147
|
"@next/eslint-plugin-next": "*",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"publishConfig": {
|
|
192
192
|
"access": "public"
|
|
193
193
|
},
|
|
194
|
-
"gitSha": "
|
|
194
|
+
"gitSha": "8097d2430a2237044d47b3cfca7c35a6f90c9f48",
|
|
195
195
|
"scripts": {
|
|
196
196
|
"build": "tsgo -p tsconfig.build.json",
|
|
197
197
|
"typescript": "tsgo -noEmit",
|
package/src/cli/cmdPublish.mjs
CHANGED
|
@@ -46,7 +46,10 @@ function getOctokit() {
|
|
|
46
46
|
* @returns {Promise<string | null>} Version string
|
|
47
47
|
*/
|
|
48
48
|
async function getReleaseVersion() {
|
|
49
|
-
|
|
49
|
+
// `--json` is required: pnpm 11 returns the raw value (e.g. `9.4.0`) for a
|
|
50
|
+
// single field without it, which is not valid JSON. The flag forces quoted
|
|
51
|
+
// output (`"9.4.0"`) across pnpm 9/10/11.
|
|
52
|
+
const result = await $`pnpm pkg get version --json`;
|
|
50
53
|
const version = JSON.parse(result.stdout.trim());
|
|
51
54
|
return semver.valid(version);
|
|
52
55
|
}
|