Skip to content

Commit bf26e63

Browse files
Claudeclaude
authored andcommitted
fix: build-and-run.sh fails with multiple tarballs in repo root
npm pack glob matched stale tarballs causing mv to fail with "is not a directory". Use --pack-destination and exact filename from npm pack output instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 655238c commit bf26e63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/clean-room/build-and-run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ if [[ "$MODE" == "local" ]]; then
4040
echo "--- Building local tarball ---"
4141
cd "$REPO_DIR"
4242
npm run build
43-
npm pack
44-
mv gitmem-mcp-*.tgz "$SCRIPT_DIR/gitmem-mcp-local.tgz"
43+
TARBALL=$(npm pack --pack-destination "$SCRIPT_DIR" 2>/dev/null | tail -1)
44+
mv "$SCRIPT_DIR/$TARBALL" "$SCRIPT_DIR/gitmem-mcp-local.tgz"
4545
echo "--- Tarball ready ---"
4646
fi
4747

0 commit comments

Comments
 (0)