Closed filzrev closed 1 week ago
When using CommandUtility.ExistCommand
helper methods.
It need to handle stdout result parse logics.
Because of following reasons.
where
command (Windows)
node
command on current directory by where command.node is
prefix string appended by type
command (Linux/mac)So I've reverted code to PATH
based search logics.
This PR intended to resolve #9396.
Background
Playwright
1.41
or later supports following environment variables. (It's not documented though)PLAYWRIGHT_NODEJS_PATH
PLAYWRIGHT_DRIVER_SEARCH_PATH
So it can remove Node.js runtime from
docfx
package. Instead. it can use locally installed Node.js runtime instead.By this changes.
docfx
packages size can be reduced from208MB
->56 MB
BREAKING CHANGES This PR remove
Node.js
runtime bundles. So it may introduce breaking changes for some users who using docfx without Node.js installation. (e.g. docker image users)I'll try to fix official docker image later. https://github.com/dotnet/docfx/blob/main/Dockerfile