From cf8c7d8d93ec7571134e02fcb63230504b13cb19 Mon Sep 17 00:00:00 2001 From: Michal Date: Mon, 9 Mar 2026 08:17:45 +0000 Subject: [PATCH] ci: copy react-devtools-core stub instead of symlink Bun's bundler can't read directory symlinks (EISDIR). Copy the stub files directly into node_modules instead. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 710330e..c5780fc 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -120,8 +120,10 @@ jobs: run: | mkdir -p dist # Stub for optional dep that Ink tries to import (only used when DEV=true) - if [ ! -e node_modules/react-devtools-core ]; then - ln -s ../src/cli/stubs/react-devtools-core node_modules/react-devtools-core + # Copy instead of symlink — bun can't read directory symlinks + if [ ! -e node_modules/react-devtools-core/package.json ]; then + rm -rf node_modules/react-devtools-core + cp -r src/cli/stubs/react-devtools-core node_modules/react-devtools-core fi bun build src/cli/src/index.ts --compile --outfile dist/mcpctl bun build src/mcplocal/src/main.ts --compile --outfile dist/mcpctl-local