Skip to content

Commit 67d4538

Browse files
fix(cli): add fumadocs and starlight in catalogs setup
1 parent ee30731 commit 67d4538

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

apps/cli/src/helpers/addons/fumadocs-setup.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ export async function setupFumadocs(config: ProjectConfig) {
6363

6464
const templateArg = TEMPLATES[template].value;
6565

66-
// love you to use @latest here but the cli updates too many times and breaks stuff
67-
const commandWithArgs = `create-fumadocs-app@16.0.4 fumadocs --template ${templateArg} --src --pm ${packageManager} --no-git`;
66+
const commandWithArgs = `create-fumadocs-app@latest fumadocs --template ${templateArg} --src --pm ${packageManager} --no-git`;
6867

6968
const fumadocsInitCommand = getPackageExecutionCommand(
7069
packageManager,

apps/cli/src/helpers/core/create-project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ export async function createProject(
9595
await setupEnvironmentVariables(options);
9696
await updatePackageConfigurations(projectDir, options);
9797

98-
await setupCatalogs(projectDir, options);
99-
10098
await setupWebDeploy(options);
10199
await setupServerDeploy(options);
102100

101+
await setupCatalogs(projectDir, options);
102+
103103
await createReadme(projectDir, options);
104104

105105
await writeBtsConfig(options);

apps/cli/src/utils/setup-catalogs.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export async function setupCatalogs(
2626
"apps/server",
2727
"apps/web",
2828
// "apps/native", // todo
29+
"apps/fumadocs",
30+
"apps/docs",
2931
"packages/api",
3032
"packages/db",
3133
"packages/auth",

0 commit comments

Comments
 (0)