greenly 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -4
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ import { loadConfig } from "c12";
5
5
  import { execSync } from "node:child_process";
6
6
  import { cancel, confirm, isCancel } from "@clack/prompts";
7
7
  //#region package.json
8
- var version = "1.0.0";
8
+ var version = "1.0.1";
9
9
  //#endregion
10
10
  //#region src/lib/args.ts
11
11
  function parseArgs(argv) {
@@ -222,7 +222,11 @@ async function runChecks(config, options = {}) {
222
222
  });
223
223
  if (isCancel(answer)) {
224
224
  cancel("Aborted.");
225
- process.exit(1);
225
+ return {
226
+ results,
227
+ failed: results.filter((r) => r.status === "failed").length,
228
+ exitCode: 1
229
+ };
226
230
  }
227
231
  shouldFix = answer;
228
232
  }
@@ -312,11 +316,12 @@ async function main() {
312
316
  try {
313
317
  const { config } = await loadGreenlyConfig();
314
318
  const { exitCode } = await runChecks(config, mode);
315
- process.exit(exitCode);
319
+ process.exitCode = exitCode;
316
320
  } catch (error) {
317
321
  if (error instanceof ConfigNotFoundError || error instanceof ConfigInvalidError) {
318
322
  console.error(colors.red(error.message));
319
- process.exit(1);
323
+ process.exitCode = 1;
324
+ return;
320
325
  }
321
326
  throw error;
322
327
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greenly",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Config-driven project check runner. Define your lint/format/typecheck/test steps in greenly.config.ts and run them with one command.",
5
5
  "keywords": [
6
6
  "check",
@@ -81,7 +81,7 @@
81
81
  "@types/node": "24.13.3",
82
82
  "oxfmt": "0.61.0",
83
83
  "oxlint": "1.76.0",
84
- "oxlint-tsgolint": "^7.0.2001",
84
+ "oxlint-tsgolint": "7.0.2001",
85
85
  "tsdown": "0.22.14",
86
86
  "typescript": "7.0.2",
87
87
  "vitest": "4.1.10"