Skip to content

docs(install): document pnpm, Yarn and bun alongside npm - #51

Merged
alexshapalov merged 1 commit into
mainfrom
docs/package-managers
Sep 17, 2026
Merged

alexshapalov merged 1 commit into
mainfrom
docs/package-managers

Conversation

@alexshapalov

Copy link
Copy Markdown
Contributor

@pgbot/cli already installs cleanly under every Node package manager, but the docs named only npx — so a bun or pnpm user had no signal it was supported. This is a docs-only change; no packaging or wrapper code moves.

What changed

  • README.md — a no-install / project / global matrix for npm, pnpm, Yarn and bun in the Install section, and the table's no-install row is relabelled npx / bunx / pnpm dlx.
  • npm/pgbot/README.md — the same matrix, plus the scoped-name E404 note that previously lived only in the main README.

Both call out why it works everywhere: the wrapper locates the binary at run time and the package ships no lifecycle scripts, so it survives npm ci --ignore-scripts, pnpm's blocked-by-default builds, and bun. Two Yarn wrinkles are documented — yarn dlx is Berry-only, and Berry's PnP linker has no node_modules/.bin, so the invocation is yarn pgbot.

Verification

Installed the published @pgbot/cli@0.8.1 from the real registry with each manager; every path printed pgbot version 0.8.1.

Manager no install project global
npm 10.9
pnpm 9.12
Yarn 1.22 (Classic) n/a
Yarn 4.5 (Berry, PnP) n/a
bun 1.4.2

Each install fetched only @pgbot/darwin-arm64 — the os/cpu fields written by npm/build.mjs are honored by all four resolvers, so nobody pulls six binaries.

Follow-up worth considering

npm/test/pack-smoke.sh exercises npm only. A wrapper change could quietly break bun or Yarn PnP without CI noticing — extending that smoke test to the other managers would close the gap. Not in this PR.

@pgbot/cli already installs cleanly under every Node package manager — the
wrapper resolves the binary at run time and the package ships no lifecycle
scripts — but the docs named only npx, so bun and pnpm users had no signal
it was supported.

Adds a no-install/project/global matrix for npm, pnpm, Yarn and bun to the
Install section and to the npm package README, and notes the two Yarn
wrinkles: `yarn dlx` is Berry-only, and Berry's PnP linker has no
node_modules/.bin, so the command is `yarn pgbot`.

Verified against the published 0.8.1 with npm 10.9, pnpm 9.12, Yarn 1.22,
Yarn 4.5 (PnP) and bun 1.4.2; each fetched only @pgbot/darwin-arm64.
@alexshapalov
alexshapalov merged commit 39092fb into main Sep 17, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant