From 1e49ec379c34c8d0a7bf45bf78c97174f7222833 Mon Sep 17 00:00:00 2001 From: Piotr Pasza Storozenko Date: Mon, 11 Mar 2024 15:35:40 +0100 Subject: [PATCH] fix: playwright on devcontainer creation --- .devcontainer/devcontainer.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e20b5ea..01a1077 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,14 +7,15 @@ // Features to add to the dev container. More info: https://containers.dev/features. "features": { - "ghcr.io/devcontainers-contrib/features/poetry:2": {} + "ghcr.io/devcontainers-contrib/features/poetry:2": {}, + "ghcr.io/devcontainers/features/node:1": {} }, // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "poetry install && playwright install", + "postCreateCommand": "poetry install && npm init playwright@latest && npx playwright install --with-deps", // Configure tool-specific properties. "customizations": {