diff options
| author | Leo Goetz <dev@leogtz.de> | 2026-05-19 07:49:13 +0200 |
|---|---|---|
| committer | Leo Goetz <dev@leogtz.de> | 2026-05-19 07:49:13 +0200 |
| commit | 0218e0e6930ff41073958c5e3f9dc3ae5b2574d1 (patch) | |
| tree | 16f387006b5dc46500efa4671523230a6c141107 /src/actions | |
| parent | ae043489350235ecc0e83bb38d4cfee14c2f8b30 (diff) | |
fix: initialize ora inside the function not outside
Diffstat (limited to 'src/actions')
| -rw-r--r-- | src/actions/checkDependencies.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions/checkDependencies.ts b/src/actions/checkDependencies.ts index e55726d..472c24c 100644 --- a/src/actions/checkDependencies.ts +++ b/src/actions/checkDependencies.ts @@ -4,9 +4,9 @@ import type { Config, Project } from "../types.js"; import { getConfig } from "../utils/config.js"; import { exec } from "child_process"; -const spinner = ora("Getting all Project Data").start(); - export async function checkDependencies() { + const spinner = ora("Getting all Project Data").start(); + const config: Config = await getConfig(); let projectAudits: PromiseSettledResult<Project>[]; let projects: Promise<Project>[] = []; |
