Repository navigation
docs(testing): explain npm launcher selection in PowerShell - #8855
ShuaixinHuang wants to merge 1 commit into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] This documentation change appears safe to merge. SummaryAdds Windows PowerShell guidance to
Review limits: Windows commands were not rerun during this review. ShuaixinHuang explicitly reported that validation used npm 10.9.3 rather than pinned npm 11.16.0 and left pinned-npm CI verification separate. Supersession: The supplied description says this PR supersedes #8774. Whether a later PR supersedes #8855 could not be checked because GitHub access required authentication. Reviews (1) · Last reviewed commit: "docs(testing): explain npm launcher sele..." · Reviewed by Greptile |
Superseded by #8895 at the author's request; no code change.
Summary
Explain how Windows contributors can run the documented npm checks when PowerShell selects
npm.ps1and script execution is restricted. Use the installednpm.cmdlauncher instead of changing execution policy.Problem and expected behavior
On this Windows host, a child Windows PowerShell session with
-ExecutionPolicy Restrictedrejectsnpm --versionwith aPSSecurityExceptionnamingnpm.ps1, whilenpm.cmd --versionsucceeds. The testing guide currently lists bare npm commands without this recovery.Change and scope
Add 14 lines to the developer-command section of
docs/testing.md, with the existing source-test and fast-check commands spelled asnpm.cmd. Explain that this does not install a toolchain, replace dependency setup, or exempt scripts launched by npm from their own checks. No related issue; found while exercising documented checks on Windows. This contributor workflow is separate from the client launch-environment guidance in #8762.Validation performed
npmrejected atnpm.ps1;npm.cmd --versionsucceeded.npm.cmd run test:local -- src/config.test.ts— 84 passed.npm.cmd run check:fast— typecheck and lint passed, 43.251 seconds.npm.cmd run docs:check— passed, including 9 conformance tests.npm.cmd run docs:build— passed, 15.60 seconds.git diff --check— passed.Verification limits: Windows host with existing launchers and dependencies; check subprocesses used Node 24.22.1, while the installed npm launcher reports 10.9.3 (repository pins npm 11.16.0). Pinned-npm CI remains a separate verification. No machine or user execution-policy settings were changed, no dependencies installed, and no real provider or desktop-client behavior is claimed. Documentation-only; no new automated regression suite.
Author readiness
Human owner: @ShuaixinHuang
Before merge
type(scope): outcome.Supersedes #8774.