@mintlify/prebuild 1.0.1342 → 1.0.1344
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDecoratedNavPageAndSlug, parseFrontmatter } from '@mintlify/common';
|
|
1
|
+
import { getDecoratedNavPageAndSlug, InvalidEndpointFrontmatterError, parseFrontmatter, } from '@mintlify/common';
|
|
2
2
|
import { promises as _promises } from 'fs';
|
|
3
3
|
import { join } from 'path';
|
|
4
4
|
import { createGeneratedGraphqlRouteIndex, preserveAutoGeneratedMetadata, } from '../preserveAutoGeneratedMetadata.js';
|
|
@@ -35,6 +35,8 @@ export const scanPageMetadata = async ({ contentDirectoryPath, openApiFiles, asy
|
|
|
35
35
|
await scanFile(filename);
|
|
36
36
|
}
|
|
37
37
|
catch (error) {
|
|
38
|
+
if (error instanceof InvalidEndpointFrontmatterError)
|
|
39
|
+
throw error;
|
|
38
40
|
const errorMessage = error instanceof Error
|
|
39
41
|
? error.message
|
|
40
42
|
: 'Unknown error occurred reading page metadata.';
|