prjct-cli 2.4.36 → 2.4.39

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.4.39] - 2026-05-02
4
+
5
+ ### Added
6
+ - current work
7
+
8
+ ## [2.4.38] - 2026-05-02
9
+
10
+ ### Added
11
+ - current work
12
+
13
+ ## [2.4.37] - 2026-05-02
14
+
15
+ ### Added
16
+ - current work
17
+
3
18
  ## [2.4.36] - 2026-05-02
4
19
 
5
20
  ### Added
package/README.md CHANGED
@@ -9,13 +9,21 @@
9
9
 
10
10
  ## Install / upgrade — one paste
11
11
 
12
- Copy this prompt and paste it in Claude Code (works for fresh install AND upgrade):
12
+ Copy this prompt and paste it in Claude Code (works for fresh install AND upgrade — Claude picks YOUR package manager, doesn't force npm):
13
13
 
14
14
  ```text
15
- Install or upgrade prjct on this machine: run `npm install -g prjct-cli@latest`, then `prjct setup` to wire hooks, and `prjct sync` if the cwd is a git repo. Verify the version with `prjct -v`.
15
+ Install or upgrade prjct on this machine. First detect which package manager I use globally (check `command -v pnpm`, `command -v bun`, `command -v yarn`, `command -v npm` in that order; also check where any existing `prjct` install lives via `command -v prjct` and use the SAME package manager so we don't create parallel installs). Then run the matching install:
16
+ - pnpm: `pnpm install -g prjct-cli@latest`
17
+ - bun: `bun install -g prjct-cli@latest`
18
+ - yarn: `yarn global add prjct-cli@latest`
19
+ - npm: `npm install -g prjct-cli@latest`
20
+
21
+ After install, run `prjct setup` to wire hooks, then `prjct sync` if the cwd is a git repo. Verify with `prjct -v` and tell me which package manager you used.
16
22
  ```
17
23
 
18
- ~30 seconds. Claude runs npm directly (no harness restrictions), wires the SessionStart/Stop hooks + the lookup-first CLAUDE.md block, and registers the project. Re-pasting upgrades to the latest published version.
24
+ ~30 seconds. Claude detects YOUR package manager (pnpm, bun, yarn, npm) and uses it critical so we don't end up with parallel installs in different package managers' bin dirs. Re-pasting upgrades to the latest published version.
25
+
26
+ > **Why detection matters:** if you have `pnpm` globally and Claude runs `npm install -g prjct-cli@latest`, you end up with TWO installs in PATH. The earlier one wins, `prjct -v` reports the wrong version, and aggressive cleanup risks bricking your shell. The detection-first prompt avoids this entirely.
19
27
 
20
28
  ### Prefer no Node/npm? (run in your own terminal)
21
29