@nimtech/nimpress 2.6.0 → 2.6.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.
@@ -184,7 +184,7 @@ nimpress completion --auto --skill
184
184
  nimpress completion bash --auto
185
185
  ```
186
186
 
187
- With a shell name and no `--auto` it prints the script for `bash`, `zsh`, `fish`, or `powershell` to stdout. `--auto` detects the shell from `$SHELL` when none is named, writes a nimpress owned file under `~/.config/nimpress/completions`, and points the rc file at it inside a block delimited by `# >>> nimpress completion >>>` and `# <<< nimpress completion <<<`. Rerunning `--auto` rewrites the block in place. fish is written to `~/.config/fish/completions/nimpress.fish` and needs no rc change. `--skill` installs this skill globally in the same step and only works alongside `--auto`.
187
+ With a shell name and no `--auto` it prints the script for `bash`, `zsh`, `fish`, or `powershell` to stdout. `--auto` detects the shell from `$SHELL` when none is named, writes a nimpress owned file under `~/.config/nimpress/completions`, and writes the `nimpress` shell function and the completion wiring inside a block of the rc file delimited by `# >>> nimpress completion >>>` and `# <<< nimpress completion <<<`. Rerunning `--auto` rewrites the block in place. fish is written to `~/.config/fish/completions/nimpress.fish` and `~/.config/fish/functions/nimpress.fish` and needs no rc change. The function runs `node_modules/.bin/nimpress` when the current folder has one and `pnpm dlx` of the latest release otherwise, the same order the mcp server starts in. nimpress is never installed with `pnpm add -g`; the global folder is one shared project and another tool's Vite resolves under it. `--skill` installs this skill globally in the same step and only works alongside `--auto`.
188
188
 
189
189
  ## Where files land
190
190
 
@@ -257,10 +257,10 @@ nimpress guard map
257
257
  nimpress guard apply --map=uploaded.json
258
258
  ```
259
259
 
260
- Install the skill and completion on a fresh machine:
260
+ Install the command, the skill and completion on a fresh machine:
261
261
 
262
262
  ```sh
263
- nimpress completion --auto --skill
263
+ pnpm dlx @nimtech/nimpress completion --auto --skill
264
264
  ```
265
265
 
266
266
  ## Failure reading
package/README.md CHANGED
@@ -40,6 +40,12 @@ pnpm add @nimtech/nimpress
40
40
 
41
41
  `@nimtech/nimpress` is public on npm. No `.npmrc`, no registry line, no token. It just works.
42
42
 
43
+ To run `nimpress` from any folder, install the shell command once. It runs the repo's pinned `node_modules/.bin/nimpress` when there is one and the latest release through `pnpm dlx` everywhere else. Never install it with `pnpm add -g`: the global folder is one shared project, and another global tool's Vite ends up under nimpress.
44
+
45
+ ```bash
46
+ pnpm dlx @nimtech/nimpress completion --auto --skill
47
+ ```
48
+
43
49
  ## Set up a site
44
50
 
45
51
  A consumer needs one config file and the `nimpress` CLI. The CLI owns Vite, serves the app shell and entry as virtual modules, and reads `nimpress.config`. There is no Vite config to write and no app to mount by hand.