@zalify/cli 0.1.0 → 0.1.3

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 (4) hide show
  1. package/README.md +30 -0
  2. package/dist/cli.js +11300 -0
  3. package/package.json +22 -6
  4. package/bin/cli.js +0 -36
package/README.md CHANGED
@@ -5,6 +5,8 @@ Zalify CLI – command-line interface for Zalify.
5
5
  ## Install
6
6
 
7
7
  ```bash
8
+ npm i -g zalify
9
+ # or
8
10
  npm i -g @zalify/cli@latest
9
11
  ```
10
12
 
@@ -19,3 +21,31 @@ zalify --version # Output current version only
19
21
  ## Commands
20
22
 
21
23
  - **version** – Prints `Zalify CLI version: x.x.x` and, if a newer version exists on npm, suggests running `npm i -g @zalify/cli@latest` to update.
24
+
25
+ ## Development
26
+
27
+ Requires [Bun](https://bun.sh).
28
+
29
+ ```bash
30
+ bun install
31
+ bun run dev version # Run CLI from source (TypeScript)
32
+ bun run build # Build to dist/
33
+ bun run typecheck # Type-check only
34
+ ```
35
+
36
+ ## Publishing
37
+
38
+ Publishing requires `NODE_AUTH_TOKEN`. Copy `.env.example` to `.env` and set your token (do not commit `.env`). You can also set `NODE_AUTH_TOKEN` in your shell.
39
+
40
+ Release only bumps the version in `package.json` (no git commit or tag). Commit and tag the version bump yourself if desired. Bun loads `.env` so `NODE_AUTH_TOKEN` is available.
41
+
42
+ ```bash
43
+ bun run release # Default: patch (x.x.X)
44
+ bun run release -- -pa # Patch
45
+ bun run release -- -mi # Minor (x.X.0)
46
+ bun run release -- -ma # Major (X.0.0)
47
+ ```
48
+
49
+ The release scripts load `.env` and fail with a clear error if `NODE_AUTH_TOKEN` is missing.
50
+
51
+ To allow `npm i -g zalify`, publish the wrapper package after releasing `@zalify/cli`: from the repo root run `npm publish --access public` in the `zalify/` folder (it depends on `@zalify/cli` and exposes the same binary).