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
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:
@@ -120,8 +120,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
# Stub for optional dep that Ink tries to import (only used when DEV=true)
|
# Stub for optional dep that Ink tries to import (only used when DEV=true)
|
||||||
if [ ! -e node_modules/react-devtools-core ]; then
|
# Copy instead of symlink — bun can't read directory symlinks
|
||||||
ln -s ../src/cli/stubs/react-devtools-core node_modules/react-devtools-core
|
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
|
fi
|
||||||
bun build src/cli/src/index.ts --compile --outfile dist/mcpctl
|
bun build src/cli/src/index.ts --compile --outfile dist/mcpctl
|
||||||
bun build src/mcplocal/src/main.ts --compile --outfile dist/mcpctl-local
|
bun build src/mcplocal/src/main.ts --compile --outfile dist/mcpctl-local
|
||||||
|
|||||||
Reference in New Issue
Block a user