@nimbus-sh/cli 0.1.0 → 0.1.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAkE9D"}
1
+ {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAiF9D"}
@@ -26,6 +26,20 @@ import { resolve, join, basename } from 'node:path';
26
26
  * `--force` overwrite existing files.
27
27
  */
28
28
  export async function scaffold(args) {
29
+ if (args[0] === '--help' || args[0] === '-h') {
30
+ process.stdout.write(`create-nimbus-app
31
+
32
+ Usage:
33
+ create-nimbus-app <project-name> [--name <worker-name>] [--force]
34
+ create-nimbus-app . --name <worker-name>
35
+
36
+ Options:
37
+ --name <worker-name> Deployed Cloudflare Worker name. Defaults to project name.
38
+ --template <name> Template to use. Only worker-only ships in v0.1.
39
+ --force Overwrite existing files.
40
+ `);
41
+ return 0;
42
+ }
29
43
  const rawProjectName = args[0];
30
44
  const projectName = rawProjectName === '.'
31
45
  ? basename(process.cwd())
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @nimbus-sh/cli — Programmatic surface.
3
3
  *
4
- * The CLI's `bin` entries (`nimbus`, `create-nimbus-app`) call these
4
+ * The CLI's `bin` entries (`nimbus`, `cli`, `create-nimbus-app`) call these
5
5
  * functions. Embedders building custom dev tooling can import them
6
6
  * directly:
7
7
  *
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @nimbus-sh/cli — Programmatic surface.
3
3
  *
4
- * The CLI's `bin` entries (`nimbus`, `create-nimbus-app`) call these
4
+ * The CLI's `bin` entries (`nimbus`, `cli`, `create-nimbus-app`) call these
5
5
  * functions. Embedders building custom dev tooling can import them
6
6
  * directly:
7
7
  *
package/dist/version.d.ts CHANGED
@@ -3,5 +3,5 @@
3
3
  * `require('./package.json')` because that breaks under bun's
4
4
  * single-file binary mode.
5
5
  */
6
- export declare const CLI_VERSION = "0.1.0";
6
+ export declare const CLI_VERSION = "0.1.1";
7
7
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -3,4 +3,4 @@
3
3
  * `require('./package.json')` because that breaks under bun's
4
4
  * single-file binary mode.
5
5
  */
6
- export const CLI_VERSION = '0.1.0';
6
+ export const CLI_VERSION = '0.1.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbus-sh/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Nimbus CLI — `create-nimbus-app` scaffolder + `token mint` + `runtime sync`.",
5
5
  "homepage": "https://github.com/AshishKumar4/Nimbus",
6
6
  "repository": {
@@ -12,6 +12,7 @@
12
12
  "license": "MIT",
13
13
  "type": "module",
14
14
  "bin": {
15
+ "cli": "./dist/bin.js",
15
16
  "nimbus": "./dist/bin.js",
16
17
  "create-nimbus-app": "./dist/scaffold-bin.js"
17
18
  },