create-fumadocs-app 15.3.2 → 15.3.4
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,11 +1,11 @@
|
|
|
1
1
|
// src/create-app.ts
|
|
2
|
-
import path from "
|
|
3
|
-
import fs from "
|
|
2
|
+
import path from "path";
|
|
3
|
+
import fs from "fs/promises";
|
|
4
4
|
|
|
5
5
|
// src/git.ts
|
|
6
|
-
import { execSync } from "
|
|
7
|
-
import { rmSync } from "
|
|
8
|
-
import { join } from "
|
|
6
|
+
import { execSync } from "child_process";
|
|
7
|
+
import { rmSync } from "fs";
|
|
8
|
+
import { join } from "path";
|
|
9
9
|
function isInGitRepository(cwd2) {
|
|
10
10
|
try {
|
|
11
11
|
execSync("git rev-parse --is-inside-work-tree", { stdio: "ignore", cwd: cwd2 });
|
|
@@ -60,7 +60,7 @@ function tryGitInit(root) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// src/versions.js
|
|
63
|
-
var versions = { "fumadocs-core": "15.3.
|
|
63
|
+
var versions = { "fumadocs-core": "15.3.4", "fumadocs-ui": "15.3.4", "fumadocs-mdx": "11.6.5", "@fumadocs/mdx-remote": "1.3.2", "@fumadocs/content-collections": "1.2.0" };
|
|
64
64
|
|
|
65
65
|
// ../create-app-versions/package.json
|
|
66
66
|
var package_default = {
|
|
@@ -73,29 +73,29 @@ var package_default = {
|
|
|
73
73
|
"@content-collections/core": "^0.8.2",
|
|
74
74
|
"@content-collections/mdx": "^0.2.2",
|
|
75
75
|
"@content-collections/next": "^0.2.6",
|
|
76
|
-
"@react-router/dev": "^7.
|
|
77
|
-
"@react-router/node": "^7.
|
|
78
|
-
"@react-router/serve": "^7.
|
|
79
|
-
"@tailwindcss/postcss": "^4.1.
|
|
80
|
-
"@tailwindcss/vite": "^4.1.
|
|
81
|
-
"@tanstack/react-router": "^1.
|
|
82
|
-
"@tanstack/react-start": "^1.
|
|
76
|
+
"@react-router/dev": "^7.6.0",
|
|
77
|
+
"@react-router/node": "^7.6.0",
|
|
78
|
+
"@react-router/serve": "^7.6.0",
|
|
79
|
+
"@tailwindcss/postcss": "^4.1.7",
|
|
80
|
+
"@tailwindcss/vite": "^4.1.7",
|
|
81
|
+
"@tanstack/react-router": "^1.120.3",
|
|
82
|
+
"@tanstack/react-start": "^1.120.3",
|
|
83
83
|
"@types/mdx": "^2.0.13",
|
|
84
|
-
"@types/node": "22.15.
|
|
85
|
-
"@types/react": "^19.1.
|
|
86
|
-
"@types/react-dom": "^19.1.
|
|
84
|
+
"@types/node": "22.15.19",
|
|
85
|
+
"@types/react": "^19.1.4",
|
|
86
|
+
"@types/react-dom": "^19.1.5",
|
|
87
87
|
"@vitejs/plugin-react": "^4.4.1",
|
|
88
|
-
"fast-glob": "^3.3.3",
|
|
89
88
|
"gray-matter": "^4.0.3",
|
|
90
|
-
isbot: "^5.1.
|
|
91
|
-
next: "15.3.
|
|
89
|
+
isbot: "^5.1.28",
|
|
90
|
+
next: "15.3.2",
|
|
92
91
|
postcss: "^8.5.3",
|
|
93
92
|
react: "^19.1.0",
|
|
94
93
|
"react-dom": "^19.1.0",
|
|
95
|
-
"react-router": "^7.
|
|
96
|
-
"react-router-devtools": "^5.0.
|
|
97
|
-
shiki: "^3.4.
|
|
98
|
-
tailwindcss: "^4.1.
|
|
94
|
+
"react-router": "^7.6.0",
|
|
95
|
+
"react-router-devtools": "^5.0.6",
|
|
96
|
+
shiki: "^3.4.2",
|
|
97
|
+
tailwindcss: "^4.1.7",
|
|
98
|
+
tinyglobby: "^0.2.13",
|
|
99
99
|
typescript: "^5.8.3",
|
|
100
100
|
vinxi: "^0.5.6",
|
|
101
101
|
vite: "^6.3.5",
|
|
@@ -140,7 +140,7 @@ function autoInstall(manager, dest) {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
// src/constants.ts
|
|
143
|
-
import { fileURLToPath } from "
|
|
143
|
+
import { fileURLToPath } from "url";
|
|
144
144
|
var sourceDir = fileURLToPath(new URL(`../`, import.meta.url).href);
|
|
145
145
|
var cwd = process.cwd();
|
|
146
146
|
|
|
@@ -299,7 +299,7 @@ function createPackageJson(projectName, options) {
|
|
|
299
299
|
...pick(package_default.dependencies, [
|
|
300
300
|
"@tanstack/react-router",
|
|
301
301
|
"@tanstack/react-start",
|
|
302
|
-
"
|
|
302
|
+
"tinyglobby",
|
|
303
303
|
"gray-matter",
|
|
304
304
|
"react",
|
|
305
305
|
"react-dom",
|
package/dist/create-app.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
create,
|
|
4
4
|
cwd,
|
|
5
5
|
getPackageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WFW2XKXG.js";
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
|
-
import fs from "
|
|
10
|
-
import path from "
|
|
9
|
+
import fs from "fs/promises";
|
|
10
|
+
import path from "path";
|
|
11
11
|
import {
|
|
12
12
|
cancel,
|
|
13
13
|
confirm,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fumadocs-app",
|
|
3
|
-
"version": "15.3.
|
|
3
|
+
"version": "15.3.4",
|
|
4
4
|
"description": "Create a new documentation site with Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/cross-spawn": "^6.0.6",
|
|
30
|
-
"@types/node": "22.15.
|
|
31
|
-
"
|
|
30
|
+
"@types/node": "22.15.19",
|
|
31
|
+
"tinyglobby": "^0.2.13",
|
|
32
32
|
"eslint-config-custom": "0.0.0",
|
|
33
33
|
"tsconfig": "0.0.0"
|
|
34
34
|
},
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from 'fumadocs-core/source';
|
|
8
8
|
import matter from 'gray-matter';
|
|
9
9
|
import * as path from 'node:path';
|
|
10
|
-
import
|
|
10
|
+
import { globSync } from 'tinyglobby';
|
|
11
11
|
import * as fs from 'node:fs';
|
|
12
12
|
|
|
13
13
|
let files: [string, string][];
|
|
@@ -21,7 +21,7 @@ if (typeof import.meta.glob === 'function') {
|
|
|
21
21
|
}),
|
|
22
22
|
);
|
|
23
23
|
} else {
|
|
24
|
-
files =
|
|
24
|
+
files = globSync('content/docs/**/*').map((file) => {
|
|
25
25
|
return [file, fs.readFileSync(file).toString()];
|
|
26
26
|
});
|
|
27
27
|
}
|