@nectary/cli 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -12,7 +12,7 @@ Add Nectary compositions (higher-order React components built on `@nectary/compo
12
12
  ### List compositions
13
13
 
14
14
  ```bash
15
- npx nectary@latest list
15
+ npx @nectary/cli list
16
16
  ```
17
17
 
18
18
  Prints each available composition name and its one-line description.
@@ -22,13 +22,13 @@ Prints each available composition name and its one-line description.
22
22
  Preview a composition before adding it (description, dependencies, and files that would be written):
23
23
 
24
24
  ```bash
25
- npx nectary@latest view <name>
25
+ npx @nectary/cli view <name>
26
26
  ```
27
27
 
28
28
  Example:
29
29
 
30
30
  ```bash
31
- npx nectary@latest view table
31
+ npx @nectary/cli view table
32
32
  ```
33
33
 
34
34
  ### Add a composition
@@ -36,16 +36,16 @@ npx nectary@latest view table
36
36
  From your project root:
37
37
 
38
38
  ```bash
39
- npx nectary@latest add <name>
39
+ npx @nectary/cli add <name>
40
40
  ```
41
41
 
42
42
  Examples:
43
43
 
44
44
  ```bash
45
- npx nectary@latest add button
46
- npx nectary@latest add select
47
- npx nectary@latest add phone-input
48
- npx nectary@latest add table
45
+ npx @nectary/cli add button
46
+ npx @nectary/cli add select
47
+ npx @nectary/cli add phone-input
48
+ npx @nectary/cli add table
49
49
  ```
50
50
 
51
51
  Files are written under `src/components/nectary/` by default (see [Configuration](#configuration)). The CLI will also install any npm dependencies required by the composition (e.g. `countries-phone-masks` for `phone-input`).
@@ -108,4 +108,4 @@ node dist/index.js add select
108
108
  - `files` – Array of `{ "path": "OutputPath/File.tsx", "source": "registry/<name>/File.tsx" }`.
109
109
  `path` is where the file will be written in the user's project (relative to their components path). `source` is relative to **this package root** (e.g. `registry/select/Search.tsx`).
110
110
  3. **Rebuild the registry**: from `packages/nectary-cli`, run `pnpm run build` (or `pnpm run build:registry` after `tsc`). This reads the manifest and writes `dist/registry/<name>.json`.
111
- 4. **Publish** the `nectary` package so users can run `npx nectary@latest add <name>`.
111
+ 4. **Publish** the `nectary` package so users can run `npx @nectary/cli add <name>`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nectary/cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "CLI to add Nectary compositions as React components to your project",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "react": "^18.2.0",
30
- "@nectary/components": "5.18.1",
30
+ "@nectary/components": "5.18.2",
31
31
  "@types/node": "^18.17.17",
32
32
  "typescript": "^5.2.2"
33
33
  },