Commit 1b9471c
committed
chore(tools/prim): add
Adds a `prim` script to root package.json so `pnpm prim <subcommand>`
runs the tool from inside socket-lib without typing the full bin path.
This is the canonical way to invoke the tool during fleet development.
Why a script instead of relying on pnpm's bin-linking: pnpm doesn't
auto-link bins of workspace packages that no other workspace depends
on. `prim` is a no-consumer tool (it audits sibling repos), so
`node_modules/.bin/prim` never gets created and `pnpm exec prim`
fails with "Command not found." A root script side-steps that.
README fixes:
- Drop the misleading `pnpm dlx prim` line. The package is
`"private": true` and won't ever be on npm.
- Document `pnpm prim` as the in-repo entry point, with
`node /path/to/socket-lib/tools/prim/bin/prim.mts` as the
out-of-repo fallback.
- Update all inline examples to use `pnpm prim` (was `prim`).pnpm prim script + fix install docs1 parent 2e0c074 commit 1b9471c
2 files changed
Lines changed: 19 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
| 702 | + | |
702 | 703 | | |
703 | 704 | | |
704 | 705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
31 | | - | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | | - | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | | - | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | | - | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | | - | |
| 56 | + | |
49 | 57 | | |
50 | 58 | | |
51 | | - | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | | - | |
| 62 | + | |
55 | 63 | | |
56 | 64 | | |
57 | | - | |
| 65 | + | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
61 | | - | |
| 69 | + | |
62 | 70 | | |
63 | 71 | | |
64 | 72 | | |
| |||
0 commit comments