From 9c376e70d48a281f8fa25e54065a5ba1119c2791 Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Fri, 6 Mar 2026 13:31:13 -0300 Subject: [PATCH] fix: update rp2040js build process to conditionally run based on package.json presence --- Dockerfile.standalone | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.standalone b/Dockerfile.standalone index 6138f78..3077da3 100644 --- a/Dockerfile.standalone +++ b/Dockerfile.standalone @@ -8,10 +8,10 @@ COPY wokwi-libs/avr8js/ wokwi-libs/avr8js/ WORKDIR /app/wokwi-libs/avr8js RUN npm install && npm run build --if-present -# Build rp2040js (dist may already be committed; build only if script exists) +# Build rp2040js (submodule may be empty on CI; skip if no package.json) COPY wokwi-libs/rp2040js/ wokwi-libs/rp2040js/ WORKDIR /app/wokwi-libs/rp2040js -RUN npm install && npm run build --if-present +RUN if [ -f package.json ]; then npm install && npm run build --if-present; fi # Build wokwi-elements COPY wokwi-libs/wokwi-elements/ wokwi-libs/wokwi-elements/