mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 13:50:25 +03:00
feat: allow running driver with preinstalled node.js (#16518)
This commit is contained in:
parent
09e6bb9c0f
commit
ed1e5efc5c
@ -1,3 +1,6 @@
|
||||
#!/bin/sh
|
||||
SCRIPT_PATH="$(cd "$(dirname "$0")" ; pwd -P)"
|
||||
"$SCRIPT_PATH/node" "$SCRIPT_PATH/package/lib/cli/cli.js" "$@"
|
||||
if [[ -z "$PLAYWRIGHT_NODEJS_PATH" ]]; then
|
||||
PLAYWRIGHT_NODEJS_PATH="$SCRIPT_PATH/node"
|
||||
fi
|
||||
"$PLAYWRIGHT_NODEJS_PATH" "$SCRIPT_PATH/package/lib/cli/cli.js" "$@"
|
||||
|
@ -1,3 +1,4 @@
|
||||
@ECHO OFF
|
||||
SETLOCAL
|
||||
"%~dp0\node.exe" "%~dp0\package\lib\cli\cli.js" %*
|
||||
IF %PLAYWRIGHT_NODEJS_PATH%x == x SET PLAYWRIGHT_NODEJS_PATH="%~dp0\node.exe"
|
||||
"%PLAYWRIGHT_NODEJS_PATH%" "%~dp0\package\lib\cli\cli.js" %*
|
||||
|
Loading…
Reference in New Issue
Block a user