From 51a0283d28b4430c92f71fbbfe4267c05e8fb664 Mon Sep 17 00:00:00 2001 From: Josh Abernathy Date: Fri, 4 Nov 2022 17:30:02 +0000 Subject: [PATCH] Move dependencies into `updateContentCommand` and wait for `onCreateCommand` This lets us connect sooner if we don't have a prebuild --- .devcontainer/devcontainer.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8ed2075c2..386ae89eb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,18 +1,18 @@ { "hostRequirements": {"cpus": 4}, - - "onCreateCommand": "npm install && npm run build", + + "waitFor": "onCreateCommand", + "updateContentCommand": "npm install", "postCreateCommand": "", - + "postAttachCommand": { + "server": "npm start", + }, + "customizations": { "codespaces": { "openFiles": ["src/App.js"] } }, - - "postAttachCommand": { - "server": "npm start", - }, "portsAttributes": { "3000": {