File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
apps/cli/src/helpers/addons Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,11 @@ export async function setupFumadocs(config: ProjectConfig) {
6767 const s = spinner ( ) ;
6868 s . start ( "Setting up Fumadocs..." ) ;
6969
70+ const appsDir = path . join ( projectDir , "apps" ) ;
71+ await fs . ensureDir ( appsDir ) ;
72+
7073 await execa ( fumadocsInitCommand , {
71- cwd : path . join ( projectDir , "apps" ) ,
74+ cwd : appsDir ,
7275 env : { CI : "true" } ,
7376 shell : true ,
7477 } ) ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import path from "node:path";
22import { spinner } from "@clack/prompts" ;
33import consola from "consola" ;
44import { execa } from "execa" ;
5+ import fs from "fs-extra" ;
56import pc from "picocolors" ;
67import type { ProjectConfig } from "../../types" ;
78import { getPackageExecutionCommand } from "../../utils/package-runner" ;
@@ -32,8 +33,11 @@ export async function setupStarlight(config: ProjectConfig) {
3233 commandWithArgs ,
3334 ) ;
3435
36+ const appsDir = path . join ( projectDir , "apps" ) ;
37+ await fs . ensureDir ( appsDir ) ;
38+
3539 await execa ( starlightInitCommand , {
36- cwd : path . join ( projectDir , "apps" ) ,
40+ cwd : appsDir ,
3741 env : {
3842 CI : "true" ,
3943 } ,
You can’t perform that action at this time.
0 commit comments