MDX: Fix dependencies

This commit is contained in:
Fuma Nama
2025-02-08 19:16:23 +08:00
parent d0d95599dc
commit 65ae9333bf
6 changed files with 14 additions and 42 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-mdx': patch
---
Fix dependencies
+1 -3
View File
@@ -50,23 +50,21 @@
},
"dependencies": {
"@mdx-js/mdx": "^3.1.0",
"@standard-schema/spec": "^1.0.0",
"chokidar": "^4.0.3",
"cross-spawn": "^7.0.6",
"esbuild": "^0.24.2",
"estree-util-value-to-estree": "^3.3.2",
"fast-glob": "^3.3.3",
"gray-matter": "^4.0.3",
"micromatch": "^4.0.8",
"unist-util-visit": "^5.0.0",
"zod": "^3.24.1"
},
"devDependencies": {
"@fumadocs/mdx-remote": "workspace:*",
"@standard-schema/spec": "^1.0.0",
"@types/cross-spawn": "^6.0.6",
"@types/mdast": "^4.0.3",
"@types/mdx": "^2.0.13",
"@types/micromatch": "^4.0.9",
"@types/react": "^19.0.8",
"eslint-config-custom": "workspace:*",
"fumadocs-core": "workspace:*",
+1
View File
@@ -114,6 +114,7 @@ export function defineDocs<
type: 'meta';
_type: {
schema: MetaSchema;
async: false;
};
};
} {
-14
View File
@@ -3,7 +3,6 @@ import type { StructuredData } from 'fumadocs-core/mdx-plugins';
import type { TableOfContents } from 'fumadocs-core/server';
import { type DefaultMDXOptions } from '@/utils/mdx-options';
import type { FC } from 'react';
import type { StandardSchemaV1 } from '@standard-schema/spec';
export interface GlobalConfig {
/**
@@ -28,19 +27,6 @@ export interface GlobalConfig {
generateManifest?: boolean;
}
export type InferSchema<CollectionOut> = CollectionOut extends {
_type: {
schema: infer T;
};
}
? T
: never;
export type InferSchemaType<C> =
InferSchema<C> extends StandardSchemaV1
? StandardSchemaV1.InferOutput<InferSchema<C>>
: never;
export interface FileInfo {
path: string;
absolutePath: string;
+4 -4
View File
@@ -36,10 +36,10 @@ export interface Runtime {
}
? MetaOut<Schema>[]
: never;
docs: <Docs>(
docs: <C>(
docs: RuntimeFile[],
metas: RuntimeFile[],
) => Docs extends {
) => C extends {
type: 'docs';
docs: {
@@ -91,12 +91,12 @@ export interface RuntimeAsync {
}
? AsyncDocOut<Schema>[]
: never;
docs: <Docs>(
docs: <C>(
docs: RuntimeFile[],
metas: RuntimeFile[],
collection: string,
config: LoadedConfig,
) => Docs extends {
) => C extends {
type: 'docs';
docs: {
+3 -21
View File
@@ -779,6 +779,9 @@ importers:
'@mdx-js/mdx':
specifier: ^3.1.0
version: 3.1.0([email protected])
'@standard-schema/spec':
specifier: ^1.0.0
version: 1.0.0
chokidar:
specifier: ^4.0.3
version: 4.0.3
@@ -797,9 +800,6 @@ importers:
gray-matter:
specifier: ^4.0.3
version: 4.0.3
micromatch:
specifier: ^4.0.8
version: 4.0.8
unist-util-visit:
specifier: ^5.0.0
version: 5.0.0
@@ -810,9 +810,6 @@ importers:
'@fumadocs/mdx-remote':
specifier: workspace:*
version: link:../mdx-remote
'@standard-schema/spec':
specifier: ^1.0.0
version: 1.0.0
'@types/cross-spawn':
specifier: ^6.0.6
version: 6.0.6
@@ -822,9 +819,6 @@ importers:
'@types/mdx':
specifier: ^2.0.13
version: 2.0.13
'@types/micromatch':
specifier: ^4.0.9
version: 4.0.9
'@types/react':
specifier: ^19.0.8
version: 19.0.8
@@ -3175,9 +3169,6 @@ packages:
'@types/[email protected]':
resolution: {integrity: sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==}
'@types/[email protected]':
resolution: {integrity: sha512-0WR3b8eaISjEW7RpZnclONaLFDf7buaowRHdqLp4vLj54AsSAYWfh3DRbfiYJY9XDxMgx1B4sE1Afw2PGpuHOA==}
'@types/[email protected]':
resolution: {integrity: sha512-fXRhhUkG4H3TQk5dBhQ7m/JDdSNHKwR2BBia62lhwEIq9xGiQKLxd6LymNhn47SjXhsUEPmxi+PKw2OkW4LLjA==}
@@ -3319,9 +3310,6 @@ packages:
'@types/[email protected]':
resolution: {integrity: sha512-+OWZQfAYyio6YkJb3HLxDrvnx6SWWDbC0zVPfBRzUk0/nqoDyf6dNxQi3eArPe8rJ473nobTMQ/8Zk+LxJ+Yuw==}
'@types/[email protected]':
resolution: {integrity: sha512-7V+8ncr22h4UoYRLnLXSpTxjQrNUXtWHGeMPRJt1nULXI57G9bIcpyrHlmrQ7QK24EyyuXvYcSSWAM8GA9nqCg==}
'@types/[email protected]':
resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==}
@@ -8927,8 +8915,6 @@ snapshots:
dependencies:
'@types/estree': 1.0.6
'@types/[email protected]': {}
'@types/[email protected]':
dependencies:
'@types/node': 22.13.1
@@ -9098,10 +9084,6 @@ snapshots:
'@types/[email protected]': {}
'@types/[email protected]':
dependencies:
'@types/braces': 3.0.4
'@types/[email protected]': {}
'@types/[email protected]': {}