Skip to content

Commit 29fad51

Browse files
fix(cli): run ultracite and fumadocs setup with stdio inherit
i hate this
1 parent e5100af commit 29fad51

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from "node:path";
2-
import { isCancel, log, select, spinner } from "@clack/prompts";
2+
import { isCancel, log, select } from "@clack/prompts";
33
import consola from "consola";
44
import { execa } from "execa";
55
import fs from "fs-extra";
@@ -73,13 +73,13 @@ export async function setupFumadocs(config: ProjectConfig) {
7373
const appsDir = path.join(projectDir, "apps");
7474
await fs.ensureDir(appsDir);
7575

76-
const s = spinner();
77-
s.start("Setting up Fumadocs...");
76+
log.info("Running Fumadocs create command...");
7877

7978
await execa(fumadocsInitCommand, {
8079
cwd: appsDir,
8180
env: { CI: "true" },
8281
shell: true,
82+
stdio: "inherit",
8383
});
8484

8585
const fumadocsDir = path.join(projectDir, "apps", "fumadocs");
@@ -96,7 +96,7 @@ export async function setupFumadocs(config: ProjectConfig) {
9696
await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 });
9797
}
9898

99-
s.stop("Fumadocs setup complete!");
99+
log.success("Fumadocs setup complete!");
100100
} catch (error) {
101101
log.error(pc.red("Failed to set up Fumadocs"));
102102
if (error instanceof Error) {

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
group,
44
log,
55
multiselect,
6-
spinner,
76
} from "@clack/prompts";
87
import { execa } from "execa";
98
import pc from "picocolors";
@@ -191,16 +190,16 @@ export async function setupUltracite(config: ProjectConfig, hasHusky: boolean) {
191190
commandWithArgs,
192191
);
193192

194-
const s = spinner();
195-
s.start("Setting up Ultracite...");
193+
log.info("Running Ultracite init command...");
196194

197195
await execa(ultraciteInitCommand, {
198196
cwd: projectDir,
199197
env: { CI: "true" },
200198
shell: true,
199+
stdio: "inherit",
201200
});
202201

203-
s.stop("Ultracite setup complete!");
202+
log.success("Ultracite setup complete!");
204203

205204
if (hasHusky) {
206205
await addPackageDependency({

0 commit comments

Comments
 (0)