@mintlify/prebuild 1.0.768 → 1.0.770

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/utils.d.ts CHANGED
@@ -4,3 +4,4 @@ export declare const getConfigPath: (contentDirectoryPath: string, type: ConfigT
4
4
  export declare const getMintIgnorePath: (contentDirectoryPath: string) => Promise<string | null>;
5
5
  export declare const getMintIgnore: (contentDirectoryPath: string) => Promise<string[]>;
6
6
  export declare const getConfigObj: (contentDirectoryPath: string, type: ConfigType) => Promise<any>;
7
+ export declare const getSnippetPatterns: (contentDirectoryPath: string) => Promise<string[] | undefined>;
package/dist/utils.js CHANGED
@@ -31,3 +31,7 @@ export const getConfigObj = async (contentDirectoryPath, type) => {
31
31
  const configContents = await fse.readFile(configPath);
32
32
  return await JSON.parse(configContents.toString());
33
33
  };
34
+ export const getSnippetPatterns = async (contentDirectoryPath) => {
35
+ const docsConfig = await getConfigObj(contentDirectoryPath, 'docs');
36
+ return docsConfig?.snippets;
37
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mintlify/prebuild",
3
3
  "type": "module",
4
- "version": "1.0.768",
4
+ "version": "1.0.770",
5
5
  "description": "Helpful functions for Mintlify's prebuild step",
6
6
  "author": "Mintlify, Inc.",
7
7
  "repository": {
@@ -41,10 +41,10 @@
41
41
  "format:check": "prettier . --check"
42
42
  },
43
43
  "dependencies": {
44
- "@mintlify/common": "1.0.637",
44
+ "@mintlify/common": "1.0.639",
45
45
  "@mintlify/openapi-parser": "^0.0.8",
46
- "@mintlify/scraping": "4.0.497",
47
- "@mintlify/validation": "0.1.539",
46
+ "@mintlify/scraping": "4.0.499",
47
+ "@mintlify/validation": "0.1.541",
48
48
  "chalk": "5.3.0",
49
49
  "favicons": "7.2.0",
50
50
  "front-matter": "4.0.2",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@mintlify/eslint-config-typescript": "1.0.13",
61
- "@mintlify/models": "0.0.246",
61
+ "@mintlify/models": "0.0.247",
62
62
  "@mintlify/prettier-config": "1.0.4",
63
63
  "@mintlify/ts-config": "2.0.2",
64
64
  "@trivago/prettier-plugin-sort-imports": "4.3.0",
@@ -72,5 +72,5 @@
72
72
  "typescript": "5.5.3",
73
73
  "vitest": "2.0.4"
74
74
  },
75
- "gitHead": "2f1ee5dcad503afd38392b1985494d896fb5cd27"
75
+ "gitHead": "4d007a10d80e23f5160c3118841e6faf66a342e7"
76
76
  }