fumadocs-mdx 11.0.0 → 11.1.1
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/{bin.mjs → bin.js} +1 -1
- package/dist/config/{index.d.mts → index.d.ts} +3 -3
- package/dist/config/{index.mjs → index.js} +1 -1
- package/dist/{index.d.mts → index.d.ts} +2 -2
- package/dist/{loader-mdx.mjs → loader-mdx.js} +2 -2
- package/dist/next/{index.mjs → index.js} +3 -3
- package/{loader-mdx.js → loader-mdx.cjs} +2 -3
- package/package.json +17 -16
- /package/dist/{chunk-KD74ZWYJ.mjs → chunk-QYUB4AKH.js} +0 -0
- /package/dist/{chunk-FXIX4XBC.mjs → chunk-YA4EPE5U.js} +0 -0
- /package/dist/{index.mjs → index.js} +0 -0
- /package/dist/{loader-mdx.d.mts → loader-mdx.d.ts} +0 -0
- /package/dist/next/{index.d.mts → index.d.ts} +0 -0
- /package/dist/{types-D11VoRzy.d.mts → types-D11VoRzy.d.ts} +0 -0
- /package/dist/{watcher-DL2NRJWG.mjs → watcher-7ALL6XOY.js} +0 -0
package/{bin.mjs → bin.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FileInfo, G as GlobalConfig, M as MarkdownProps, B as BaseCollectionEntry } from '../types-D11VoRzy.
|
|
2
|
-
export { C as CollectionEntry, D as DefaultMDXOptions, b as GetOutput, I as InferSchema, a as InferSchemaType, g as getDefaultMDXOptions } from '../types-D11VoRzy.
|
|
1
|
+
import { F as FileInfo, G as GlobalConfig, M as MarkdownProps, B as BaseCollectionEntry } from '../types-D11VoRzy.js';
|
|
2
|
+
export { C as CollectionEntry, D as DefaultMDXOptions, b as GetOutput, I as InferSchema, a as InferSchemaType, g as getDefaultMDXOptions } from '../types-D11VoRzy.js';
|
|
3
3
|
import { z, ZodTypeAny } from 'zod';
|
|
4
4
|
import { ProcessorOptions } from '@mdx-js/mdx';
|
|
5
5
|
import 'mdx/types';
|
|
@@ -133,7 +133,7 @@ declare function defineDocs<DocData extends ZodTypeAny = typeof frontmatterSchem
|
|
|
133
133
|
/**
|
|
134
134
|
* The directory to scan files
|
|
135
135
|
*
|
|
136
|
-
* @defaultValue '
|
|
136
|
+
* @defaultValue 'content/docs'
|
|
137
137
|
*/
|
|
138
138
|
dir?: string | string[];
|
|
139
139
|
docs?: Partial<DocCollection<DocData, DocAsync, DocOut>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageData, MetaData, Source } from 'fumadocs-core/source';
|
|
2
|
-
import { F as FileInfo, B as BaseCollectionEntry } from './types-D11VoRzy.
|
|
3
|
-
import { MetaFile } from './loader-mdx.
|
|
2
|
+
import { F as FileInfo, B as BaseCollectionEntry } from './types-D11VoRzy.js';
|
|
3
|
+
import { MetaFile } from './loader-mdx.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'mdx/types';
|
|
6
6
|
import 'fumadocs-core/mdx-plugins';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDefaultMDXOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YA4EPE5U.js";
|
|
4
4
|
import {
|
|
5
5
|
getConfigHash,
|
|
6
6
|
getManifestEntryPath,
|
|
7
7
|
loadConfigCached
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QYUB4AKH.js";
|
|
9
9
|
|
|
10
10
|
// src/loader-mdx.ts
|
|
11
11
|
import path2 from "node:path";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
loadConfigCached,
|
|
7
7
|
writeManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-QYUB4AKH.js";
|
|
9
9
|
|
|
10
10
|
// src/next/create.ts
|
|
11
11
|
import path3 from "node:path";
|
|
@@ -71,7 +71,7 @@ async function getCollectionFiles(collection) {
|
|
|
71
71
|
await Promise.all(
|
|
72
72
|
dirs.map(async (dir) => {
|
|
73
73
|
const result = await fg(collection.files ?? "**/*", {
|
|
74
|
-
cwd: dir,
|
|
74
|
+
cwd: path.resolve(dir),
|
|
75
75
|
absolute: true
|
|
76
76
|
});
|
|
77
77
|
result.forEach((item) => {
|
|
@@ -145,7 +145,7 @@ async function start(dev, configPath, outDir2) {
|
|
|
145
145
|
fs.writeFileSync(typeOut, generateTypes(configPath, config, typeOut));
|
|
146
146
|
console.log("[MDX] initialized map file");
|
|
147
147
|
if (dev) {
|
|
148
|
-
const { watcher } = await import("../watcher-
|
|
148
|
+
const { watcher } = await import("../watcher-7ALL6XOY.js");
|
|
149
149
|
const instance = watcher(configPath, config);
|
|
150
150
|
instance.on("ready", () => {
|
|
151
151
|
if (!instance._readyEmitted) console.log("[MDX] started dev server");
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* eslint-env node -- Node.js env */
|
|
2
|
-
|
|
3
1
|
module.exports = function loader(code) {
|
|
4
2
|
const callback = this.async();
|
|
5
|
-
|
|
3
|
+
|
|
4
|
+
import('./dist/loader-mdx.js').then((mod) =>
|
|
6
5
|
mod.default.call(this, code, callback),
|
|
7
6
|
);
|
|
8
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -10,28 +10,29 @@
|
|
|
10
10
|
"repository": "github:fuma-nama/fumadocs",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"author": "Fuma Nama",
|
|
13
|
+
"type": "module",
|
|
13
14
|
"exports": {
|
|
14
|
-
"./loader-mdx": "./loader-mdx.
|
|
15
|
+
"./loader-mdx": "./loader-mdx.cjs",
|
|
15
16
|
"./config": {
|
|
16
|
-
"import": "./dist/config/index.
|
|
17
|
-
"types": "./dist/config/index.d.
|
|
17
|
+
"import": "./dist/config/index.js",
|
|
18
|
+
"types": "./dist/config/index.d.ts"
|
|
18
19
|
},
|
|
19
20
|
"./next": {
|
|
20
|
-
"import": "./dist/next/index.
|
|
21
|
-
"types": "./dist/next/index.d.
|
|
21
|
+
"import": "./dist/next/index.js",
|
|
22
|
+
"types": "./dist/next/index.d.ts"
|
|
22
23
|
},
|
|
23
24
|
".": {
|
|
24
|
-
"import": "./dist/index.
|
|
25
|
-
"types": "./dist/index.
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts"
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
|
-
"main": "./dist/index.
|
|
29
|
-
"types": "./dist/index.
|
|
30
|
-
"bin": "./bin.
|
|
29
|
+
"main": "./dist/index.js",
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"bin": "./bin.js",
|
|
31
32
|
"files": [
|
|
32
33
|
"dist/*",
|
|
33
|
-
"loader-mdx.
|
|
34
|
-
"bin.
|
|
34
|
+
"loader-mdx.cjs",
|
|
35
|
+
"bin.js"
|
|
35
36
|
],
|
|
36
37
|
"dependencies": {
|
|
37
38
|
"@mdx-js/mdx": "^3.1.0",
|
|
@@ -49,13 +50,13 @@
|
|
|
49
50
|
"@types/mdast": "^4.0.3",
|
|
50
51
|
"@types/mdx": "^2.0.13",
|
|
51
52
|
"@types/micromatch": "^4.0.9",
|
|
52
|
-
"@types/react": "^18.3.
|
|
53
|
-
"next": "15.0.
|
|
53
|
+
"@types/react": "^18.3.12",
|
|
54
|
+
"next": "^15.0.1",
|
|
54
55
|
"unified": "^11.0.5",
|
|
55
56
|
"vfile": "^6.0.3",
|
|
56
57
|
"webpack": "^5.95.0",
|
|
57
58
|
"eslint-config-custom": "0.0.0",
|
|
58
|
-
"fumadocs-core": "14.
|
|
59
|
+
"fumadocs-core": "14.1.1",
|
|
59
60
|
"tsconfig": "0.0.0"
|
|
60
61
|
},
|
|
61
62
|
"peerDependencies": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|