@mintlify/prebuild 1.0.318 → 1.0.320
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/dist/prebuild/index.js +2 -3
- package/dist/prebuild/update/ConfigUpdater.d.ts +1880 -2119
- package/dist/prebuild/update/ConfigUpdater.js +10 -28
- package/dist/prebuild/update/docsConfig/generateOpenApiDivisions.d.ts +4 -4
- package/dist/prebuild/update/docsConfig/generateOpenApiDivisions.js +1 -1
- package/dist/prebuild/update/docsConfig/index.d.ts +5 -1936
- package/dist/prebuild/update/docsConfig/index.js +11 -9
- package/dist/prebuild/update/index.d.ts +3 -2
- package/dist/prebuild/update/index.js +11 -11
- package/dist/prebuild/update/mintConfig/index.d.ts +0 -242
- package/dist/prebuild/update/mintConfig/index.js +4 -7
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
package/dist/prebuild/index.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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';
|