micro-contracts 0.17.16 → 0.17.17

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Contract-first OpenAPI toolchain for TypeScript Web/API systems. Generates contract packages, server routes, and frontend clients from OpenAPI specifications with enforceable guardrails.
4
4
 
5
- **Version:** 0.17.16
5
+ **Version:** 0.17.17
6
6
 
7
7
  ## Table of Contents
8
8
 
@@ -64,9 +64,10 @@ micro-contracts generate --force
64
64
  |---|---|---|---|---|
65
65
  | `--config` | -c | No | | Path to config file (micro-contracts.config.yaml). |
66
66
  | `--module` | -m | No | | Module names, comma-separated. Generates all modules if omitted. |
67
+ | `--output` | | No | | Output ids to generate, comma-separated. Supports glob patterns (e.g. '*routes*'). Generates all configured outputs if omitted. Fails when a pattern matches no output. |
67
68
  | `--contracts-only` | | No | `false` | Generate contract packages only. |
68
- | `--server-only` | | No | `false` | Generate server outputs only: outputs whose id contains 'server', plus the built-in server section. Fails when no output matches. |
69
- | `--frontend-only` | | No | `false` | Generate frontend outputs only: outputs whose id contains 'frontend' or 'client', plus the built-in frontend section. Fails when no output matches. |
69
+ | `--server-only` | | No | `false` | Generate the built-in server section only. Not valid with an outputs configuration — select outputs with --output instead. |
70
+ | `--frontend-only` | | No | `false` | Generate the built-in frontend section only. Not valid with an outputs configuration — select outputs with --output instead. |
70
71
  | `--docs-only` | | No | `false` | Generate documentation only. |
71
72
  | `--skip-lint` | | No | `false` | Skip Spectral linting before generation. |
72
73
  | `--manifest` | | No | `true` | Generate manifest after generation. Enabled by default when guardrails.yaml has a generated section. Use --no-manifest to disable. |
@@ -323,8 +324,8 @@ micro-contracts pipeline --contracts-only --skip-lint
323
324
  | `--manifest` | | No | `true` | Generate manifest after generation. Enabled by default. Use --no-manifest to disable. |
324
325
  | `--skip-lint` | | No | `false` | Skip Spectral linting before generation. |
325
326
  | `--contracts-only` | | No | `false` | Generate contract packages only. |
326
- | `--server-only` | | No | `false` | Generate server outputs only: outputs whose id contains 'server', plus the built-in server section. Fails when no output matches. |
327
- | `--frontend-only` | | No | `false` | Generate frontend outputs only: outputs whose id contains 'frontend' or 'client', plus the built-in frontend section. Fails when no output matches. |
327
+ | `--server-only` | | No | `false` | Generate the built-in server section only. Not valid with an outputs configuration — select outputs with --output instead. |
328
+ | `--frontend-only` | | No | `false` | Generate the built-in frontend section only. Not valid with an outputs configuration — select outputs with --output instead. |
328
329
  | `--docs-only` | | No | `false` | Generate documentation only. |
329
330
  | `--force` | | No | `false` | Bypass input hash cache and always regenerate. |
330
331
  | `--cache` | | No | `true` | Enable input hash caching. Enabled by default. Use --no-cache to disable both reading and writing cache. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-contracts",
3
- "version": "0.17.16",
3
+ "version": "0.17.17",
4
4
  "description": "Contract-first OpenAPI toolchain that keeps TypeScript UI and microservices aligned via code generation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",