Repository navigation
docs(testing): explain npm launcher selection in PowerShell - #8774
Closed
ShuaixinHuang wants to merge 1 commit into
Closed
ShuaixinHuang wants to merge 1 commit into
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. |
Contributor
[Low impact] The documentation change appears safe to merge. SummaryAdds Windows PowerShell guidance to
Supersession could not be checked because GitHub authentication was unavailable. No commands were run to verify Windows behavior. Reviews (1) · Last reviewed commit: "docs(testing): explain npm launcher sele..." · Reviewed by Greptile |
This was referenced Nov 3, 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.
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.