Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

fix(migrate): detect Yarn PnP config even when env overrides nodeLinker

未关闭
#2,001 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@fengmk2 已经在做这个了。

开始于 2026年7月1日。

评估

这个 Issue 还没有评估数据。

描述

bug

vp migrate currently treats YARN_NODE_LINKER=node-modules as enough to skip Yarn PnP handling. However, if the repository itself has .yarnrc.yml with nodeLinker: pnp, migration can complete successfully while leaving unsupported PnP config in the project. Future installs without that environment override will return to PnP mode.

Expected behavior:

  • If .yarnrc.yml explicitly sets nodeLinker: pnp, migration should not silently pass just because YARN_NODE_LINKER=node-modules is set.
  • Preferably, migration should stop and ask the user to change the project config manually, or apply the existing node-modules conversion flow if that is the intended behavior.
  • YARN_NODE_LINKER=pnp should still hard-block migration as today.

Suggested test:

Create a Yarn Berry fixture with:

# .yarnrc.yml
nodeLinker: pnp

Run migrate with:

YARN_NODE_LINKER=node-modules vp migrate --no-interactive

Assert that migration does not report the project as successfully migrated while leaving nodeLinker: pnp unchanged.

主要语言
Rust
星标
5.8k
派生
263
平均合并
1 天 3 小时
30 天内合并 PR
147

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

voidzero-dev/vite-plus 的其他 Issue

查看 voidzero-dev/vite-plus 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。