Jiaoyc224/dsh-plugin-dedupe

插件 ⭐ 1 MIT other

安装

## 功能

1. **启动时扫描**:作为 DSH 插件加载时,自动扫描当前 profile 的 `package.json` 依赖和 `node_modules` 实际安装,检测:
   - 同名插件在 `package.json` 中多次声明(不同来源:npm / github / file / link)
   - `node_modules` 中同名包出现多次(不同版本/来源并存)
   - 未声明但已安装的 `dsh-*` 残留插件
   - 同一包在 `dependencies`/`devDependencies` 中声明且来源协议相同(降级为警告,非错误)

2. **preinstall 钩子**:作为 `pnpm install` 的 `preinstall` 钩子,安装前自动检查,发现错误时返回非零退出码,**阻断安装**,防止重复插件被下载。

## 安装

### 1. 通过 GitHub 安装(推荐)

在 DSH profile 目录下:

Jiaoyc224/dsh-plugin-dedupe 加入你的 DSH 配置(web profile)即可启用。

README

展开完整 README 收起

README 内容为空。