create-zenith 0.5.0-beta.2.2 → 0.5.0-beta.2.21

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
@@ -2,6 +2,11 @@
2
2
 
3
3
  The official CLI for scaffolding new Zenith applications. Fast, animated, and delightful.
4
4
 
5
+ ## Canonical Docs
6
+
7
+ - Create contract: `../zenith-docs/documentation/contracts/create-contract.md`
8
+ - Install and compatibility: `../zenith-docs/documentation/install-compatibility.md`
9
+
5
10
  ## Overview
6
11
 
7
12
  `create-zenith` is the entry point to the Zenith ecosystem. It provides a signature, high-quality terminal experience for initializing new projects, ensuring you go from command line to `localhost` in seconds with confidence.
@@ -35,6 +40,18 @@ pnpm create zenith
35
40
  | `-h, --help` | Show usage information |
36
41
  | `-v, --version` | Show version number |
37
42
 
43
+ ## Beta Version Pinning
44
+
45
+ Zenith beta currently pins `@zenithbuild/core` to `0.5.0-beta.2.20` and leaf packages (compiler, cli, runtime, router, bundler) to `0.5.0-beta.2.20`. This is intentional — core contains the CLI entry point and may bump independently for bin/CLI fixes without touching the engine.
46
+
47
+ If you see version mismatches after install, delete `node_modules` and `package-lock.json`, then reinstall.
48
+
49
+ ## Latest Release (Beta 2.13)
50
+
51
+ - **Fixed:** `zenith --help` now exits 0 reliably (bin wrapper early-exit before version-mismatch checks)
52
+ - **Published:** Leaf packages at `0.5.0-beta.2.20`; `@zenithbuild/core` and `create-zenith` at `0.5.0-beta.2.20`
53
+ - **Verified:** scaffold → install → `--version` → `--help` → build → all routes output static HTML (`/`, `/about`, `/blog`, `/docs`)
54
+
38
55
  ## Development
39
56
 
40
57
  ```bash
package/dist/cli.js CHANGED
@@ -2806,12 +2806,21 @@ var log = {
2806
2806
  };
2807
2807
 
2808
2808
  // src/index.ts
2809
- var VERSION = "1.3.0";
2810
2809
  var GITHUB_REPO = "zenithbuild/create-zenith";
2811
2810
  var DEFAULT_TEMPLATE = "examples/starter";
2812
2811
  var TAILWIND_TEMPLATE = "examples/starter-tailwindcss";
2813
2812
  var __filename2 = fileURLToPath(import.meta.url);
2814
2813
  var __dirname2 = path.dirname(__filename2);
2814
+ function getCliVersion() {
2815
+ try {
2816
+ const pkgPath = path.resolve(__dirname2, "..", "package.json");
2817
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
2818
+ return typeof pkg.version === "string" ? pkg.version : "0.0.0";
2819
+ } catch {
2820
+ return "0.0.0";
2821
+ }
2822
+ }
2823
+ var VERSION = getCliVersion();
2815
2824
  function flagEnabled2(value) {
2816
2825
  if (value == null)
2817
2826
  return false;
package/dist/index.js CHANGED
@@ -2805,12 +2805,21 @@ var log = {
2805
2805
  };
2806
2806
 
2807
2807
  // src/index.ts
2808
- var VERSION = "1.3.0";
2809
2808
  var GITHUB_REPO = "zenithbuild/create-zenith";
2810
2809
  var DEFAULT_TEMPLATE = "examples/starter";
2811
2810
  var TAILWIND_TEMPLATE = "examples/starter-tailwindcss";
2812
2811
  var __filename2 = fileURLToPath(import.meta.url);
2813
2812
  var __dirname2 = path.dirname(__filename2);
2813
+ function getCliVersion() {
2814
+ try {
2815
+ const pkgPath = path.resolve(__dirname2, "..", "package.json");
2816
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
2817
+ return typeof pkg.version === "string" ? pkg.version : "0.0.0";
2818
+ } catch {
2819
+ return "0.0.0";
2820
+ }
2821
+ }
2822
+ var VERSION = getCliVersion();
2814
2823
  function flagEnabled2(value) {
2815
2824
  if (value == null)
2816
2825
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-zenith",
3
- "version": "0.5.0-beta.2.2",
3
+ "version": "0.5.0-beta.2.21",
4
4
  "description": "Create a new Zenith application - the modern reactive web framework",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,7 +14,7 @@
14
14
  "prepublishOnly": "npm run build",
15
15
  "create": "bun src/index.ts",
16
16
  "example": "rm -rf examples/test-template && bun src/index.ts test-template && mv test-template examples/",
17
- "test": "node dist/cli.js --help",
17
+ "test": "node --test tests/*.spec.mjs",
18
18
  "release": "bun run scripts/release.ts",
19
19
  "release:dry": "bun run scripts/release.ts --dry-run",
20
20
  "release:patch": "bun run scripts/release.ts --bump=patch",
@@ -51,4 +51,4 @@
51
51
  "@types/gradient-string": "^1.1.6",
52
52
  "@types/node": "^20.0.0"
53
53
  }
54
- }
54
+ }