pnpm 10.19
· 一分钟阅读
这个版本为两个设置添加了版本控制功能:[[only BuiltDependencies] 和 [minimumReleaseAgeExclude`]。
次要更改
onlyBuiltDependencies 中的版本
你现在可以允许特定版本的依赖项运行安装后脚本。 onlyBuiltDependencies 接受具有精确版本的包名称(以及通过|| 分离)。 示例:
onlyBuiltDependencies:
- nx@21.6.4 || 21.6.5
- esbuild@0.25.1
相关 PR:#10104。
minimumReleaseAgeExclude 中的版本
在 minimumReleaseAgeExclude 中添加了对精确版本的支持。 这使你可以选择特定的版本离开由 [minimumReleaseAge ] 强制执行的到期窗口。
你可以列出 pnpm 应该允许安装的一个或多个特定版本: 即使这些版本不符合 minimumReleaseAge 所规定的到期要求。 示例:
minimumReleaseAge: 1440
minimumReleaseAgeExclude:
- nx@21.6.5
- webpack@4.47.0 || 5.102.1
相关问题: #9985。