diff --git a/packages/aim/package.json b/packages/aim/package.json index a939bd2..40562f6 100644 --- a/packages/aim/package.json +++ b/packages/aim/package.json @@ -1,6 +1,6 @@ { "name": "@dudykr/aim", - "version": "1.0.0", + "version": "1.0.1", "type": "module", "bin": { "aim": "./dist/index.js" diff --git a/packages/aim/src/index.ts b/packages/aim/src/index.ts index 71f09e6..8538634 100644 --- a/packages/aim/src/index.ts +++ b/packages/aim/src/index.ts @@ -27,7 +27,7 @@ type PlanType = "pro" | "max5" | "max20" | "custom_max"; async function runCcusage(): Promise { try { - const result = await execa("npx", ["ccusage", "blocks", "--json"]); + const result = await execa("npx", ["-y", "ccusage", "blocks", "--json"]); return JSON.parse(result.stdout); } catch (error) { console.error("Error running ccusage:", error);