@mintlify/prebuild 1.0.317 → 1.0.319

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.
@@ -8,12 +8,11 @@ export const prebuild = async (contentDirectoryPath) => {
8
8
  }
9
9
  const docsConfigPath = await getConfigPath(contentDirectoryPath, 'docs');
10
10
  const mintConfigPath = await getConfigPath(contentDirectoryPath, 'mint');
11
- const configPath = docsConfigPath ?? mintConfigPath;
12
- if (configPath == null) {
11
+ if (mintConfigPath == null) {
13
12
  throw Error('Must be run in a directory where a mint.json file exists.');
14
13
  }
15
14
  const { contentFilenames, staticFilenames, openApiFiles, snippets, snippetsV2 } = await categorizeFilePaths(contentDirectoryPath);
16
- await update(contentDirectoryPath, staticFilenames, openApiFiles, contentFilenames, snippets, snippetsV2, docsConfigPath ? 'docs' : 'mint');
15
+ await update(contentDirectoryPath, staticFilenames, openApiFiles, contentFilenames, snippets, snippetsV2, docsConfigPath);
17
16
  };
18
17
  export * from './categorizeFilePaths.js';
19
18
  export * from '../createPage/index.js';