Skip to content

Commit a4367cf

Browse files
committed
build(nix): add shellHook for MCP mock server dependencies
- Add automatic pnpm install for vendor/stackone-ai-node in shellHook - Update submodule to latest commit - Fix pnpm version reference (pnpm -> pnpm_10)
1 parent d0411ac commit a4367cf

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

flake.nix

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,28 @@
101101

102102
# Node.js for MCP mock server
103103
bun
104-
pnpm
104+
pnpm_10
105105
typescript-go
106106
];
107107

108108
shellHook = ''
109109
echo "StackOne AI Python SDK development environment"
110110
111-
# Install dependencies only if .venv is missing or uv.lock is newer
111+
# Install Python dependencies only if .venv is missing or uv.lock is newer
112112
if [ ! -d .venv ] || [ uv.lock -nt .venv ]; then
113-
echo "📦 Installing dependencies..."
113+
echo "📦 Installing Python dependencies..."
114114
uv sync --all-extras
115115
fi
116116
117+
# Install Node.js dependencies for MCP mock server (used in tests)
118+
if [ -d vendor/stackone-ai-node ]; then
119+
if [ ! -f vendor/stackone-ai-node/node_modules/.pnpm/lock.yaml ] || \
120+
[ vendor/stackone-ai-node/pnpm-lock.yaml -nt vendor/stackone-ai-node/node_modules/.pnpm/lock.yaml ]; then
121+
echo "📦 Installing MCP mock server dependencies..."
122+
(cd vendor/stackone-ai-node && pnpm install --frozen-lockfile)
123+
fi
124+
fi
125+
117126
# Install git hooks
118127
${config.pre-commit.installationScript}
119128
'';

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)