create-zenith 0.1.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/index.js +27 -0
- package/package.json +24 -0
package/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* create-zenith
|
|
4
|
+
*
|
|
5
|
+
* Thin resolver adapter for bun/npm/npx/pnpm create zenith.
|
|
6
|
+
* Delegates directly to @zenithbuild/cli with all arguments.
|
|
7
|
+
*
|
|
8
|
+
* This package contains NO framework logic, NO build logic, NO scaffolding logic.
|
|
9
|
+
* It is a permanent proxy and should never grow features.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { spawn } from "node:child_process";
|
|
13
|
+
|
|
14
|
+
const args = process.argv.slice(2);
|
|
15
|
+
|
|
16
|
+
// If no subcommand provided, default to "create"
|
|
17
|
+
const finalArgs = args.length === 0 || !args[0].startsWith("-")
|
|
18
|
+
? ["create", ...args]
|
|
19
|
+
: args;
|
|
20
|
+
|
|
21
|
+
const child = spawn(
|
|
22
|
+
process.platform === "win32" ? "npx.cmd" : "npx",
|
|
23
|
+
["@zenithbuild/cli", ...finalArgs],
|
|
24
|
+
{ stdio: "inherit" }
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
child.on("exit", (code) => process.exit(code ?? 0));
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-zenith",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Thin resolver for bun/npm create zenith - delegates to @zenithbuild/cli",
|
|
5
|
+
"bin": {
|
|
6
|
+
"create-zenith": "./index.js"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": "Zenith Team",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git@github.com:zenithbuild/create-zenith.git"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"zenith",
|
|
17
|
+
"create",
|
|
18
|
+
"scaffold",
|
|
19
|
+
"cli"
|
|
20
|
+
],
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@zenithbuild/cli": "^0.1.0"
|
|
23
|
+
}
|
|
24
|
+
}
|