kubetsx 0.1.1 → 0.1.2

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
@@ -7,7 +7,7 @@
7
7
 
8
8
  Kubetsx transforms Kubernetes configuration from fragile YAML files into type-safe, composable TypeScript components. Get full IntelliSense, compile-time validation, and the power of loops and conditionals.
9
9
 
10
- **If you can write React, you can configure Kubernetes.**
10
+ **Type-safe. Composable. Finally, Kubernetes configuration that makes sense.**
11
11
 
12
12
  ```tsx
13
13
  import { render, Manifest, Deployment, Container, Port, Service } from 'kubetsx';
@@ -73,6 +73,14 @@ Or pipe directly to kubectl:
73
73
  npx kubetsx your-config.tsx | kubectl apply -f -
74
74
  ```
75
75
 
76
+ Save to file:
77
+
78
+ ```bash
79
+ npx kubetsx your-config.tsx > k8s.yaml
80
+ ```
81
+
82
+ > **💡 Tip:** Use `console.error()` for debug output. The CLI validates that stdout contains only valid YAML and will error if `console.log()` corrupts the output.
83
+
76
84
  ---
77
85
 
78
86
  ## 🎯 Quick Start
package/dist/cli.js CHANGED
@@ -29,7 +29,7 @@ Examples:
29
29
  process.exit(0);
30
30
  }
31
31
  if (args.includes('--version') || args.includes('-v')) {
32
- console.log('kubetsx v0.1.1');
32
+ console.log('kubetsx v0.1.2');
33
33
  process.exit(0);
34
34
  }
35
35
  // Find tsx CLI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kubetsx",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "The Declarative Kubernetes Framework. Write K8s configs with JSX. Yes, really.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/cli.ts CHANGED
@@ -34,7 +34,7 @@ Examples:
34
34
  }
35
35
 
36
36
  if (args.includes('--version') || args.includes('-v')) {
37
- console.log('kubetsx v0.1.1');
37
+ console.log('kubetsx v0.1.2');
38
38
  process.exit(0);
39
39
  }
40
40