From 44771eecd63dbfc454458c9dce62523899f26969 Mon Sep 17 00:00:00 2001 From: BossSloth <44511414+tddebart@users.noreply.github.com> Date: Sat, 4 Jan 2025 02:23:16 +0100 Subject: [PATCH] fix: don't add frontend dir into plugin dist as it is not needed (#11) * fix: don't add frontend dir into plugin dist as it is not needed * fix(pr-ci): don't add frontend dir into plugin dist as it is not needed --- .github/workflows/ci.yml | 7 ------- .github/workflows/pr.yml | 7 ------- 2 files changed, 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f196e5c..0e25991 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -128,13 +128,6 @@ jobs: cp -r "backend" ./dist/backend 2>/dev/null || echo "::debug::backend directory not found, skipping." fi - FRONTEND_DIR=$(jq -r '.frontend' plugin.json) - if [ "$FRONTEND_DIR" != "null" ]; then - cp -r "$FRONTEND_DIR" ./dist/"$FRONTEND_DIR" - else - cp -r "frontend" ./dist/frontend 2>/dev/null || echo "::debug::frontend directory not found, skipping." - fi - include=$(jq -r '.include // [] | .[]' plugin.json) if [ -z "$include" ]; then diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index d41d6b3..3728e6b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -59,13 +59,6 @@ jobs: cp -r "backend" ./dist/backend 2>/dev/null || echo "::warning::backend directory not found, skipping." fi - FRONTEND_DIR=$(jq -r '.frontend' plugin.json) - if [ "$FRONTEND_DIR" != "null" ]; then - cp -r "$FRONTEND_DIR" ./dist/"$FRONTEND_DIR" - else - cp -r "frontend" ./dist/frontend 2>/dev/null || echo "::warning::frontend directory not found, skipping." - fi - include=$(jq -r '.include // [] | .[]' plugin.json) if [ -z "$include" ]; then