@mintlify/cli 4.0.937 → 4.0.939
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": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.939",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@inquirer/prompts": "7.9.0",
|
|
43
|
-
"@mintlify/common": "1.0.
|
|
44
|
-
"@mintlify/link-rot": "3.0.
|
|
45
|
-
"@mintlify/models": "0.0.
|
|
46
|
-
"@mintlify/prebuild": "1.0.
|
|
47
|
-
"@mintlify/previewing": "4.0.
|
|
48
|
-
"@mintlify/validation": "0.1.
|
|
43
|
+
"@mintlify/common": "1.0.716",
|
|
44
|
+
"@mintlify/link-rot": "3.0.876",
|
|
45
|
+
"@mintlify/models": "0.0.269",
|
|
46
|
+
"@mintlify/prebuild": "1.0.852",
|
|
47
|
+
"@mintlify/previewing": "4.0.909",
|
|
48
|
+
"@mintlify/validation": "0.1.587",
|
|
49
49
|
"adm-zip": "0.5.16",
|
|
50
50
|
"chalk": "5.2.0",
|
|
51
51
|
"color": "4.2.3",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"vitest": "2.0.4",
|
|
82
82
|
"vitest-mock-process": "1.0.4"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "c0287552b07b6d9d3b8d0613807fb37d661e1f51"
|
|
85
85
|
}
|
package/src/migrateMdx.tsx
CHANGED
|
@@ -100,10 +100,11 @@ async function processNav(nav: NavigationConfig): Promise<NavigationConfig> {
|
|
|
100
100
|
let newNav: NavigationConfig = { ...nav };
|
|
101
101
|
|
|
102
102
|
if ('pages' in newNav) {
|
|
103
|
-
|
|
103
|
+
const newPages = await Promise.all(
|
|
104
104
|
newNav.pages.map(async (page) => {
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
105
106
|
if (typeof page === 'object' && page !== null && 'group' in page) {
|
|
106
|
-
return processNav(page);
|
|
107
|
+
return processNav(page as NavigationConfig);
|
|
107
108
|
}
|
|
108
109
|
if (typeof page === 'string' && !/\s/.test(page)) {
|
|
109
110
|
const mdxCandidatePath = path.join(CMD_EXEC_PATH, `${page}.mdx`);
|
|
@@ -206,6 +207,8 @@ async function processNav(nav: NavigationConfig): Promise<NavigationConfig> {
|
|
|
206
207
|
return page;
|
|
207
208
|
})
|
|
208
209
|
);
|
|
210
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
211
|
+
newNav.pages = newPages as any;
|
|
209
212
|
}
|
|
210
213
|
|
|
211
214
|
for (const division of ['groups', ...divisions]) {
|