ci: copy react-devtools-core stub instead of symlink
Some checks failed
CI/CD / lint (push) Successful in 41s
CI/CD / test (push) Successful in 55s
CI/CD / typecheck (push) Successful in 10m58s
CI/CD / build (push) Successful in 11m54s
CI/CD / docker (push) Failing after 28s
CI/CD / publish-rpm (push) Successful in 38s
CI/CD / deploy (push) Has been skipped

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 <noreply@anthropic.com>
This commit is contained in:
Michal
2026-03-09 08:17:45 +00:00
parent 201189d914
commit cf8c7d8d93

View File

@@ -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