ITADN

Incorrect dedupe tool used in pnpm toolchain plugin

#114OpenDanSnow 创建于 2026-03-01
D
DanSnowcommented
## Description The `moon` pnpm toolchain plugin incorrectly utilizes the `pnpm-deduplicate` package to perform dependency deduping instead of the built-in `pnpm dedupe` command. This occurs even when `pnpm` version is explicitly set to `10.30.3` and `dedupeOnLockfileChange` is enabled. ## Logs ```text [DEBUG 14:16:44.460] moon_actions::actions::install_dependencies Deduping JavaScript dependencies root="." toolchain_id="javascript" [DEBUG 14:16:44.461] proto_core::flow::resolve Resolving a semantic version or alias tool="pnpm" spec="10.30.3" [DEBUG 14:16:44.461] proto_core::flow::resolve Loading available versions tool="pnpm" [DEBUG 14:16:44.462] proto_core::flow::resolve Resolved to 10.30.3 tool="pnpm" spec="10.30.3" [DEBUG 14:16:44.462] proto_core::flow::locate Locating globals directories for tool tool="pnpm" [DEBUG 14:16:44.462] proto_core::flow::locate Located possible globals directories tool="pnpm" dirs=["~/Library/pnpm"] [DEBUG 14:16:44.462] proto_core::flow::locate No usable globals directory found, falling back to the last entry tool="pnpm" dir="~/Library/pnpm" [DEBUG 14:16:44.463] proto_core::flow::locate Locating primary executable for tool tool="pnpm" [DEBUG 14:16:44.463] proto_core::flow::locate Found an executable tool="pnpm" exe_path="~/.proto/tools/pnpm/10.30.3/shims/pnpm" [DEBUG 14:16:44.463] moon_process::exec_command Running command /bin/zsh -c - npx --quiet --package pnpm-deduplicate -- pnpm-deduplicate pid=35030 shell="zsh" env={} cwd="tanstack-start-template/" ▮▮▮▮ npx --quiet --package pnpm-deduplicate -- pnpm-deduplicate ``` ## toolchains.yml ```yaml $schema: https://moonrepo.dev/schemas/toolchain.json node: {} javascript: packageManager: pnpm dedupeOnLockfileChange: true inferTasksFromScripts: false syncProjectWorkspaceDependencies: true syncPackageManagerField: false pnpm: version: 10.30.3 ``` ## Environment * **OS:** macOS * **Node:** 24.14.0 * **pnpm:** 10.30.3 * **moon:** 2.0.3 * **pnpm toolchain plugin:** 1.0.2
1 条评论