@mintlify/link-rot 3.0.580 → 3.0.582

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.
@@ -14,14 +14,14 @@ export const getRedirects = (baseDir) => __awaiter(void 0, void 0, void 0, funct
14
14
  const configRedirects = [];
15
15
  // read docs.json or mint.json to get redirects
16
16
  if (fs.existsSync(path.join(baseDir, 'docs.json'))) {
17
- const docsJson = yield fs.readFile(path.join(baseDir, 'docs.json'), 'utf8');
17
+ const docsJson = yield fs.readJSON(path.join(baseDir, 'docs.json'));
18
18
  const result = validateDocsConfig(docsJson);
19
19
  if (result.success && 'redirects' in result.data && result.data.redirects) {
20
20
  configRedirects.push(...result.data.redirects);
21
21
  }
22
22
  }
23
23
  else if (fs.existsSync(path.join(baseDir, 'mint.json'))) {
24
- const mintJson = yield fs.readFile(path.join(baseDir, 'mint.json'), 'utf8');
24
+ const mintJson = yield fs.readJSON(path.join(baseDir, 'mint.json'));
25
25
  const result = validateMintConfig(mintJson);
26
26
  if (result.success && 'redirects' in result.data && result.data.redirects) {
27
27
  configRedirects.push(...result.data.redirects);