Skip to content

Commit 1edca3e

Browse files
fix(cli): add spinner in oxlint addon setup
1 parent 38b5ef7 commit 1edca3e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from "node:path";
2-
import { log } from "@clack/prompts";
2+
import { log, spinner } from "@clack/prompts";
33
import { execa } from "execa";
44
import fs from "fs-extra";
55
import pc from "picocolors";
@@ -225,9 +225,14 @@ async function setupOxlint(projectDir: string, packageManager: PackageManager) {
225225
"oxlint@latest --init",
226226
);
227227

228+
const s = spinner();
229+
s.start("Initializing oxlint...");
230+
228231
await execa(oxlintInitCommand, {
229232
cwd: projectDir,
230233
env: { CI: "true" },
231234
shell: true,
232235
});
236+
237+
s.stop("oxlint initialized successfully!");
233238
}

0 commit comments

Comments
 (0)