politty 0.14.3 → 0.15.0

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.
package/README.md CHANGED
@@ -351,7 +351,7 @@ Define a command.
351
351
 
352
352
  ### `runMain(command, options?)`
353
353
 
354
- CLI entry point. Handles signals and calls `process.exit()`.
354
+ CLI entry point. Handles signals and calls `process.exit()`: `2` for an invalid command line, `1` for other failures, or the code an `onUnknownSubcommand` handler returns.
355
355
 
356
356
  ```typescript
357
357
  runMain(command, {
package/dist/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "politty",
3
- "version": "0.14.3",
3
+ "version": "0.15.0",
4
4
  "description": "A lightweight CLI framework inspired by citty with zod v4 registry integration for type-safe metadata management",
5
5
  "keywords": [
6
6
  "argument-parser",
@@ -71,10 +71,10 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "@politty/zod": "^0.4.3"
74
+ "@politty/zod": "^0.5.0"
75
75
  },
76
76
  "devDependencies": {
77
- "@types/node": "25.9.8",
77
+ "@types/node": "25.9.9",
78
78
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
79
79
  "tsdown": "0.23.0",
80
80
  "typescript": "7.0.2",