CLI: hotfix wrong dep version

This commit is contained in:
Fuma Nama
2026-01-03 19:09:13 +08:00
parent 4caef9cb83
commit 2f6391bec2
3 changed files with 19 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'create-fumadocs-app': patch
---
hotfix wrong dep version
+11
View File
@@ -1,5 +1,10 @@
import { fileURLToPath } from 'node:url';
import versionPkg from '../../create-app-versions/package.json';
import * as corePkg from '../../core/package.json';
import * as uiPkg from '../../ui/package.json';
import * as mdxPkg from '../../mdx/package.json';
import * as radixPkg from '../../radix-ui/package.json';
import * as basePkg from '../../base-ui/package.json';
export const sourceDir = fileURLToPath(new URL(`../`, import.meta.url).href);
@@ -75,4 +80,10 @@ export const templates: TemplateInfo[] = [
},
];
const workspaces = [corePkg, uiPkg, mdxPkg, radixPkg, basePkg];
export const depVersions = versionPkg.dependencies;
for (const workspace of workspaces) {
depVersions[workspace.name as keyof typeof depVersions] = workspace.version;
}
+3 -1
View File
@@ -1,7 +1,9 @@
{
"extends": "tsconfig/base.json",
"compilerOptions": {
"module": "ESNext",
"module": "esnext",
"target": "esnext",
"moduleResolution": "bundler",
"paths": {
"@/*": ["./src/*"]
}