Uh oh!
There was an error while loading. Please reload this page.
fix: use parent directory name for index.ts plugins in deduplication - #9321
fix: use parent directory name for index.ts plugins in deduplication#9321ShamanicArts wants to merge 1 commit into
Conversation
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate FoundPR #8758: fix: use full URL for file:// plugin deduplication This PR is related to the same deduplication issue for file:// plugins. While it appears to address the plugin deduplication problem differently (using full URL rather than parent directory name), it's addressing the same core issue of duplicate plugin detection when using local file:// URLs. You may want to check if these approaches should be unified or if PR #8758 is already resolved. |
ShamanicArts
commented
Jan 19, 2026
claude PR before I wanted him too. tut tut claude |
Summary
index.tsas their filenameindex.tsorindex.js, the parent directory name is used instead for deduplicationProblem
When configuring multiple local plugins with
file://URLs that use the commonindex.tsnaming convention:{ "plugin": [ "file:///path/to/my-plugin/index.ts", "file:///path/to/other-plugin/index.ts" ] }Both plugins resolve to the name
index, causing the deduplication logic to keep only the last one.Solution
The
getPluginNamefunction now checks if the filename isindexand uses the parent directory name instead:file:///path/to/my-plugin/index.ts→my-pluginfile:///path/to/other-plugin/index.ts→other-plugin