@mintlify/cli 4.0.936 → 4.0.938

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.936",
3
+ "version": "4.0.938",
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.714",
44
- "@mintlify/link-rot": "3.0.873",
45
- "@mintlify/models": "0.0.268",
46
- "@mintlify/prebuild": "1.0.850",
47
- "@mintlify/previewing": "4.0.906",
48
- "@mintlify/validation": "0.1.585",
43
+ "@mintlify/common": "1.0.715",
44
+ "@mintlify/link-rot": "3.0.875",
45
+ "@mintlify/models": "0.0.269",
46
+ "@mintlify/prebuild": "1.0.851",
47
+ "@mintlify/previewing": "4.0.908",
48
+ "@mintlify/validation": "0.1.586",
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": "fff16462454dce2cc0df6f6a7e7407e132b5ae58"
84
+ "gitHead": "6d9d97d9ec3ae31b959956e1d4079a2ed2079010"
85
85
  }
@@ -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
- newNav.pages = await Promise.all(
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]) {