Skip to content

更新底部依赖触发上层依赖更新

配置 updateInternalDependentsonlyUpdatePeerDependentsWhenOutOfRange 即可。

值得注意的是,这个配置现在是普遍关闭的,因为大家很不喜欢这种发版版本号变更策略,因为版本号变更过于频繁,而且语义化不强。

除非需要做到那种强制通知的效果,才需要这种配置。

核心配置如下:

json
{
	"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
	"updateInternalDependencies": "patch",
	"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
		"onlyUpdatePeerDependentsWhenOutOfRange": true,
		"updateInternalDependents": "always"
	}
}

贡献者

The avatar of contributor named as ruan-cat ruan-cat

页面历史

最近更新