Skip to content

Commit 1a063c7

Browse files
Install browser
1 parent 362f0c8 commit 1a063c7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.devcontainer/post-create.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ ln -sfn "$DEVCONTAINER_ENV_DIR" "$DEVCONTAINER_PYTHON_DIR"
3636
export PATH="$DEVCONTAINER_PYTHON_DIR/bin:$PATH"
3737
export PYTHONPATH="$REPO_ROOT/src${PYTHONPATH:+:$PYTHONPATH}"
3838

39+
echo "Installing Playwright browsers..."
40+
"${HATCH_CMD[@]}" run devcontainer:install_playwright
41+
3942
if ! command -v bun >/dev/null 2>&1; then
4043
echo "Installing Bun..."
4144
curl -fsSL https://bun.sh/install | bash

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ extra-dependencies = [
212212
]
213213

214214
[tool.hatch.envs.devcontainer.scripts]
215+
install_playwright = ['python "src/build_scripts/install_playwright.py"']
215216
type_check = ["pyright src/reactpy"]
216217

217218
############################

0 commit comments

Comments
 (0)