create-zenith 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/index.js +3 -7
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * create-zenith
4
4
  *
5
5
  * Thin resolver adapter for bun/npm/npx/pnpm create zenith.
6
- * Delegates directly to @zenithbuild/cli with all arguments.
6
+ * Delegates directly to @zenithbuild/cli create with all arguments.
7
7
  *
8
8
  * This package contains NO framework logic, NO build logic, NO scaffolding logic.
9
9
  * It is a permanent proxy and should never grow features.
@@ -13,14 +13,10 @@ import { spawn } from "node:child_process";
13
13
 
14
14
  const args = process.argv.slice(2);
15
15
 
16
- // If no subcommand provided, default to "create"
17
- const finalArgs = args.length === 0 || !args[0].startsWith("-")
18
- ? ["create", ...args]
19
- : args;
20
-
16
+ // Always invoke "create" command with any additional arguments
21
17
  const child = spawn(
22
18
  process.platform === "win32" ? "npx.cmd" : "npx",
23
- ["@zenithbuild/cli", ...finalArgs],
19
+ ["@zenithbuild/cli", "create", ...args],
24
20
  { stdio: "inherit" }
25
21
  );
26
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-zenith",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Thin resolver for bun/npm create zenith - delegates to @zenithbuild/cli",
5
5
  "bin": {
6
6
  "create-zenith": "./index.js"
@@ -19,6 +19,6 @@
19
19
  "cli"
20
20
  ],
21
21
  "dependencies": {
22
- "@zenithbuild/cli": "^0.1.0"
22
+ "@zenithbuild/cli": "^0.2.0"
23
23
  }
24
24
  }