Repository navigation
fix: replace deprecated npm -ws shorthand (fixes broken example/build setup) - #3477
Merged
nkaradzhov merged 1 commit intoSep 28, 2026
Merged
Conversation
`npm install -ws` is treated as an invalid flag on current npm and installs only the workspaces' runtime dependencies, skipping the root devDependencies (including typescript). Following the documented setup then fails: `npm run build` errors with `tsc: command not found`, packages/redis/dist is never built, and running an example throws ERR_MODULE_NOT_FOUND (issue redis#3114). - 6 install sites (examples/README.md, doctests/README.md, benchmark ymls): `npm install -ws` -> `npm install`. Plain root install already covers all workspaces and installs root devDependencies, so the build works. - 2 test-fan-out sites (package.json, run-tests action): `npm run test -ws` -> `npm run test --workspaces`. Same intended per-workspace fan-out; only the deprecated spelling changes. Matches the existing release script.
nkaradzhov
requested review from
PavelPashov and
bobymicroby
and removed request for
PavelPashov
September 28, 2026 09:02
bobymicroby
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request resolves #3114 and removes the deprecated npm
-wsshorthand across the repository.Background
Following the documented setup in
examples/README.mdanddoctests/README.md(npm install -ws && npm run build) fails on npm 11 / Node 25.-wsis no longer a valid single-hyphen flag ("−ws is not a valid single-hyphen cli flag and will be removed in the future"); npm installs only the workspaces' runtime dependencies and skips the rootdevDependencies, sotypescriptis absent,npm run buildfails withsh: tsc: command not found,packages/redis/dist/index.jsis never produced, and running an example throwsERR_MODULE_NOT_FOUND. This was reproduced end-to-end on a fresh clone.Changes
examples/README.md,doctests/README.md,benchmark/lib/ping/ping.yml,benchmark/lib/set-get-delete-string/{1KB,1MB,8B}.yml):npm install -ws→npm install. Plain root install already covers all workspaces and installs rootdevDependencies, so the build works.package.jsontestscript,.github/actions/run-tests/action.yml):npm run test -ws→npm run test --workspaces. The per-workspace fan-out is intended; only the deprecated spelling changes. This matches the existingreleasescript, and the targeted workspace set is unchanged.Notes
No runtime/library change; published-package users are unaffected. The two test-script edits are a spelling normalization with an identical workspace fan-out.
Note
Low Risk
Docs, benchmark bootstrap, and npm CLI spelling only; no library or runtime behavior changes.
Overview
Replaces the deprecated npm
-wsshorthand so setup and CI work on newer npm (e.g. npm 11), where that flag is invalid and can skip root devDependencies and breaknpm run build.Install paths (
examples/README.md,doctests/README.md, and four benchmark YAML client configs) now usenpm installinstead ofnpm install -ws, which still installs workspaces and root tooling needed fortsc.Test fan-out in root
package.jsonand.github/actions/run-tests/action.ymlusesnpm run test --workspacesinstead ofnpm run test -ws, matching the existingreleasescript spelling with the same workspace behavior.Reviewed by Cursor Bugbot for commit d708246. Bugbot is set up for automated code reviews on this repo. Configure here.