create-fumadocs-app 14.7.6 → 15.0.0

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.
@@ -60,7 +60,7 @@ function tryGitInit(root) {
60
60
  }
61
61
 
62
62
  // src/versions.js
63
- var versions = { "fumadocs-core": "14.7.6", "fumadocs-ui": "14.7.6", "fumadocs-mdx": "11.3.1", "@fumadocs/content-collections": "1.1.6" };
63
+ var versions = { "fumadocs-core": "15.0.0", "fumadocs-ui": "15.0.0", "fumadocs-mdx": "11.3.2", "@fumadocs/content-collections": "1.1.7" };
64
64
 
65
65
  // ../create-app-versions/package.json
66
66
  var package_default = {
@@ -74,15 +74,15 @@ var package_default = {
74
74
  "@content-collections/mdx": "^0.2.0",
75
75
  "@content-collections/next": "^0.2.4",
76
76
  "@types/mdx": "^2.0.13",
77
- "@types/node": "22.10.7",
77
+ "@types/node": "22.10.9",
78
78
  "@types/react": "^19.0.7",
79
79
  "@types/react-dom": "^19.0.3",
80
- autoprefixer: "^10.4.20",
81
- next: "15.1.5",
80
+ next: "15.1.6",
82
81
  postcss: "^8.5.1",
83
82
  react: "^19.0.0",
84
83
  "react-dom": "^19.0.0",
85
- tailwindcss: "^3.4.17",
84
+ tailwindcss: "^4.0.0",
85
+ "@tailwindcss/postcss": "^4.0.0",
86
86
  typescript: "^5.7.3"
87
87
  }
88
88
  };
@@ -198,49 +198,47 @@ function createPackageJson(projectName, options) {
198
198
  start: "next start"
199
199
  },
200
200
  dependencies: {
201
- next: package_default.dependencies.next,
202
- "fumadocs-ui": versions["fumadocs-ui"],
203
- "fumadocs-core": versions["fumadocs-core"],
204
- react: package_default.dependencies.react,
205
- "react-dom": package_default.dependencies["react-dom"]
201
+ ...pick(package_default.dependencies, ["next", "react", "react-dom"]),
202
+ ...pick(versions, ["fumadocs-ui", "fumadocs-core"])
206
203
  },
207
- devDependencies: {
208
- "@types/node": package_default.dependencies["@types/node"],
209
- "@types/react": package_default.dependencies["@types/react"],
210
- "@types/react-dom": package_default.dependencies["@types/react-dom"],
211
- typescript: package_default.dependencies.typescript
212
- }
204
+ devDependencies: pick(package_default.dependencies, [
205
+ "@types/node",
206
+ "@types/react",
207
+ "@types/react-dom",
208
+ "typescript"
209
+ ])
213
210
  };
214
211
  if (options.template === "content-collections") {
215
- packageJson.dependencies = {
216
- ...packageJson.dependencies,
217
- "@fumadocs/content-collections": versions["@fumadocs/content-collections"],
218
- "@content-collections/core": package_default.dependencies["@content-collections/core"],
219
- "@content-collections/mdx": package_default.dependencies["@content-collections/mdx"],
220
- "@content-collections/next": package_default.dependencies["@content-collections/next"]
221
- };
212
+ Object.assign(
213
+ packageJson.dependencies,
214
+ pick(package_default.dependencies, [
215
+ "@content-collections/mdx",
216
+ "@content-collections/core",
217
+ "@content-collections/next"
218
+ ]),
219
+ pick(versions, ["@fumadocs/content-collections"])
220
+ );
222
221
  }
223
222
  if (options.template === "fuma-docs-mdx") {
224
- packageJson.scripts = {
225
- ...packageJson.scripts,
226
- postinstall: "fumadocs-mdx"
227
- };
228
- packageJson.dependencies = {
229
- ...packageJson.dependencies,
230
- "fumadocs-mdx": versions["fumadocs-mdx"]
231
- };
232
- packageJson.devDependencies = {
233
- ...packageJson.devDependencies,
234
- "@types/mdx": package_default.dependencies["@types/mdx"]
235
- };
223
+ packageJson.scripts.postinstall = "fumadocs-mdx";
224
+ Object.assign(
225
+ packageJson.dependencies,
226
+ pick(versions, ["fumadocs-mdx"])
227
+ );
228
+ Object.assign(
229
+ packageJson.devDependencies,
230
+ pick(package_default.dependencies, ["@types/mdx"])
231
+ );
236
232
  }
237
233
  if (options.tailwindcss) {
238
- packageJson.devDependencies = {
239
- ...packageJson.devDependencies,
240
- autoprefixer: package_default.dependencies.autoprefixer,
241
- postcss: package_default.dependencies.postcss,
242
- tailwindcss: package_default.dependencies.tailwindcss
243
- };
234
+ Object.assign(
235
+ packageJson.devDependencies,
236
+ pick(package_default.dependencies, [
237
+ "@tailwindcss/postcss",
238
+ "tailwindcss",
239
+ "postcss"
240
+ ])
241
+ );
244
242
  }
245
243
  if (options.eslint) {
246
244
  packageJson.devDependencies = {
@@ -251,6 +249,15 @@ function createPackageJson(projectName, options) {
251
249
  }
252
250
  return JSON.stringify(packageJson, void 0, 2);
253
251
  }
252
+ function pick(obj, keys) {
253
+ const result = {};
254
+ for (const key of keys) {
255
+ if (key in obj) {
256
+ result[key] = obj[key];
257
+ }
258
+ }
259
+ return result;
260
+ }
254
261
 
255
262
  export {
256
263
  getPackageManager,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  create
3
- } from "./chunk-DVIJL7GF.js";
3
+ } from "./chunk-JY54RNOG.js";
4
4
  export {
5
5
  create
6
6
  };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  create,
4
4
  cwd,
5
5
  getPackageManager
6
- } from "./chunk-DVIJL7GF.js";
6
+ } from "./chunk-JY54RNOG.js";
7
7
 
8
8
  // src/index.ts
9
9
  import { existsSync } from "node:fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fumadocs-app",
3
- "version": "14.7.6",
3
+ "version": "15.0.0",
4
4
  "description": "Create a new documentation site with Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/cross-spawn": "^6.0.6",
28
- "@types/node": "22.10.7",
28
+ "@types/node": "22.10.9",
29
29
  "fast-glob": "^3.3.3",
30
30
  "eslint-config-custom": "0.0.0",
31
31
  "tsconfig": "0.0.0"
@@ -1,3 +1,5 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
1
+ @import 'tailwindcss';
2
+ @import 'fumadocs-ui/css/neutral.css';
3
+ @import 'fumadocs-ui/css/preset.css';
4
+
5
+ @source '../node_modules/fumadocs-ui/dist/**/*.js';
@@ -0,0 +1,5 @@
1
+ export default {
2
+ plugins: {
3
+ '@tailwindcss/postcss': {},
4
+ },
5
+ };
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
@@ -1,14 +0,0 @@
1
- // @ts-check
2
- import { createPreset } from 'fumadocs-ui/tailwind-plugin';
3
-
4
- /** @type {import('tailwindcss').Config} */
5
- export default {
6
- content: [
7
- './components/**/*.{ts,tsx}',
8
- './app/**/*.{ts,tsx}',
9
- './content/**/*.{md,mdx}',
10
- './mdx-components.{ts,tsx}',
11
- './node_modules/fumadocs-ui/dist/**/*.js',
12
- ],
13
- presets: [createPreset()],
14
- };