1
Fork 0

support earlier Playwright versions

Version 1.7.0 is the first one where the version of Node in the Docker
image supports top-level await.
This commit is contained in:
Conduitry 2022-07-21 10:18:16 -04:00
parent ddc66bcc80
commit d3325eccb4
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
cd "$(dirname "$(readlink --canonicalize "$0")")"
docker run --rm --volume "$PWD":/app:ro mcr.microsoft.com/playwright:v$(node --eval='console.log(require("playwright-core/package.json").version)') node /app $1
docker run --rm --volume "$PWD":/app:ro mcr.microsoft.com/playwright:v$(node --eval='console.log(require("./node_modules/playwright-core/package.json").version)') node /app $1

View File

@ -1,6 +1,6 @@
{
"type": "module",
"dependencies": {
"playwright-core": "^1.16.2"
"playwright-core": "^1.7.0"
}
}