diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 1af6f26..e019045 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -21,7 +21,7 @@ "hooks": [ { "type": "command", - "command": "diff -q \"${CLAUDE_PLUGIN_ROOT}/package.json\" \"${CLAUDE_PLUGIN_DATA}/package.json\" >/dev/null 2>&1 || (cd \"${CLAUDE_PLUGIN_DATA}\" && cp \"${CLAUDE_PLUGIN_ROOT}/package.json\" . && npm install --production) || rm -f \"${CLAUDE_PLUGIN_DATA}/package.json\"" + "command": "diff -q \"${CLAUDE_PLUGIN_ROOT}/package.json\" \"${CLAUDE_PLUGIN_DATA}/package.json\" >/dev/null 2>&1 || (cd \"${CLAUDE_PLUGIN_DATA}\" && cp \"${CLAUDE_PLUGIN_ROOT}/package.json\" . && npm install --production) || rm -f \"${CLAUDE_PLUGIN_DATA}/package.json\"; ln -sfn \"${CLAUDE_PLUGIN_DATA}/node_modules\" \"${CLAUDE_PLUGIN_ROOT}/node_modules\"" } ] } @@ -30,10 +30,7 @@ "mcpServers": { "browser-feedback": { "command": "node", - "args": ["${CLAUDE_PLUGIN_ROOT}/src/server.js"], - "env": { - "NODE_PATH": "${CLAUDE_PLUGIN_DATA}/node_modules" - } + "args": ["${CLAUDE_PLUGIN_ROOT}/src/server.js"] } } } diff --git a/CHANGELOG.md b/CHANGELOG.md index 00bfa2a..13fb72a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Fix plugin dependency resolution for ES modules — `NODE_PATH` is ignored by Node.js ESM, so the `SessionStart` hook now symlinks `node_modules` into the plugin root instead + ## [0.6.4] - 2026-04-21 ### Fixed