From 4ba114bca167956af415b324269a27d6e907d246 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Fri, 7 Jul 2023 10:30:19 +0200 Subject: [PATCH] - improve the devcontainer by also building the `pr-collector` within --- .devcontainer/devcontainer.json | 2 +- .devcontainer/postCreateCommand.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 .devcontainer/postCreateCommand.sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c48dab4..26199cd 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,7 +15,7 @@ // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "npm install", + "postCreateCommand": "./.devcontainer/postCreateCommand.sh", // Configure tool-specific properties. // "customizations": {}, diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh new file mode 100755 index 0000000..bf9a236 --- /dev/null +++ b/.devcontainer/postCreateCommand.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +npm install + +# also install dependencies for `pr-collector` +cd pr-collector +npm install +npm run build && npm run package + +cd .. \ No newline at end of file