@mui/internal-code-infra 0.0.3-canary.16 → 0.0.3-canary.17
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 +2 -2
- package/src/cli/cmdPublish.mjs +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/internal-code-infra",
|
|
3
|
-
"version": "0.0.3-canary.
|
|
3
|
+
"version": "0.0.3-canary.17",
|
|
4
4
|
"description": "Infra scripts and configs to be used across MUI repos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"publishConfig": {
|
|
98
98
|
"access": "public"
|
|
99
99
|
},
|
|
100
|
-
"gitSha": "
|
|
100
|
+
"gitSha": "c5e649ee7a0a251da3b457cf482c40cf5a718ad7",
|
|
101
101
|
"scripts": {
|
|
102
102
|
"typescript": "tsc -p tsconfig.json",
|
|
103
103
|
"test": "pnpm -w test --project @mui/internal-code-infra",
|
package/src/cli/cmdPublish.mjs
CHANGED
|
@@ -46,8 +46,9 @@ async function parseChangelog(changelogPath, version) {
|
|
|
46
46
|
const content = await fs.readFile(changelogPath, 'utf8');
|
|
47
47
|
const lines = content.split('\n');
|
|
48
48
|
|
|
49
|
-
const
|
|
50
|
-
|
|
49
|
+
const startIndex = lines.findIndex(
|
|
50
|
+
(line) => line.startsWith(`## ${version}`) || line.startsWith(`## v${version}`),
|
|
51
|
+
);
|
|
51
52
|
|
|
52
53
|
if (startIndex === -1) {
|
|
53
54
|
throw new Error(`Version ${version} not found in changelog`);
|