@daliovic/cc-statusline 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,12 +3,11 @@ import { readFileSync, writeFileSync, existsSync } from "node:fs";
3
3
  import { homedir } from "node:os";
4
4
  import { join } from "node:path";
5
5
  import { loadConfig } from "./config.js";
6
- // Handle --config flag
6
+ // Handle --config flag first and exit
7
7
  if (process.argv.includes("--config")) {
8
- import("./wizard.js").then(({ runWizard }) => runWizard()).catch(() => process.exit(1));
9
- }
10
- else {
11
- main().catch(() => process.exit(1));
8
+ const { runWizard } = await import("./wizard.js");
9
+ await runWizard();
10
+ process.exit(0);
12
11
  }
13
12
  // Load user config
14
13
  const userConfig = loadConfig();
@@ -244,3 +243,5 @@ async function main() {
244
243
  // Output
245
244
  console.log(segments.join(` ${color.dim}\u{2502}${color.reset} `));
246
245
  }
246
+ // Run main
247
+ main().catch(() => process.exit(1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daliovic/cc-statusline",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Minimal Claude Code statusline with usage limits and budget tracking",
5
5
  "type": "module",
6
6
  "main": "dist/statusline.js",