@keystrokehq/cli 0.1.84 → 0.1.86

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.
@@ -52,14 +52,14 @@ When you add any `@keystrokehq/*` package, pin it to `"latest"` in `package.json
52
52
 
53
53
  ### Dev tooling
54
54
 
55
- Lint, typecheck, and test run through the CLI. Projects depend on `@keystrokehq/keystroke` and `zod`, plus `@keystrokehq/cli`, `typescript`, `vitest`, and `@types/node` as devDependencies (for the IDE and local runs). Two things are **not** configurable per-project:
55
+ Lint, typecheck, and test run through the globally installed CLI (`npm i -g @keystrokehq/cli`). Projects depend on `@keystrokehq/keystroke` and `zod`, plus `typescript`, `vitest`, and `@types/node` as devDependencies (for the IDE and local runs). Two things are **not** configurable per-project:
56
56
 
57
57
  - **Lint** — oxlint and its config are bundled in the CLI; a project `.oxlintrc.json` is ignored. `typescript/no-explicit-any` is an **error** and the same lint runs at deploy. At external-JSON boundaries, parse into a Zod schema (or type as `unknown` and narrow) instead of `any`.
58
58
  - **Typecheck** — the committed `tsconfig.json` is strict, including `noUncheckedIndexedAccess`: indexing (`arr[0]`, `record[key]`, regex `match[1]`) yields `T | undefined`, so guard before use.
59
59
 
60
60
  **Deploy is the gate.** `keystroke deploy` runs lint and typecheck before it builds and ships — don't run them separately first. Attempt deploy, fix what it reports, redeploy. Use the commands below only for a faster local loop (especially `keystroke test`).
61
61
 
62
- **Keep `@keystrokehq/*` on latest.** The CLI auto-updates itself, and `keystroke deploy` / `keystroke build` auto-update every `@keystrokehq/*` dep first — but CI (`CI=true`) skips updates and a registry minimum-release-age can hold a release back. When a build or deploy fails in a way that doesn't point at your code, update every `@keystrokehq/*` dep to latest, reinstall, and retry **before** debugging anything else.
62
+ **Keep `@keystrokehq/*` on latest.** The CLI auto-updates itself (global install). `keystroke deploy` / `keystroke build` require every project `@keystrokehq/*` dep to be current — but CI (`CI=true`) skips the check and a registry minimum-release-age can hold a release back. When a build or deploy fails in a way that doesn't point at your code, update every `@keystrokehq/*` dep to latest, reinstall, and retry **before** debugging anything else.
63
63
 
64
64
  ```bash
65
65
  keystroke deploy # lint + typecheck + build + ship dist/ — start here
@@ -16,7 +16,6 @@
16
16
  "zod": "latest"
17
17
  },
18
18
  "devDependencies": {
19
- "@keystrokehq/cli": "latest",
20
19
  "@types/node": "latest",
21
20
  "typescript": "latest",
22
21
  "vitest": "latest"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/cli",
3
- "version": "0.1.84",
3
+ "version": "0.1.86",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/keystrokehq/keystroke.git",