mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
584661f37f
Changesets' shouldBumpMajor rule force-bumps a dependent to MAJOR when a peerDependency receives any non-patch bump. Combined with workspace:* being resolved as an exact version pin (always out of range on any vinext change), @vinext/cloudflare was majored on essentially every release (e.g. 0.0.1 -> 1.0.0 in PR #1759), even with zero cloudflare changes. Fix is two parts: - .changeset/config.json: enable onlyUpdatePeerDependentsWhenOutOfRange so peer-dependent bumps respect the declared range instead of force-majoring. - packages/cloudflare/package.json: widen the published peer range off the exact-pin (workspace:* -> >=0.0.0). devDependencies.vinext: workspace:* is kept so local linking is unaffected.
16 lines
441 B
JSON
16 lines
441 B
JSON
{
|
|
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
|
|
"changelog": "@changesets/cli/changelog",
|
|
"commit": false,
|
|
"fixed": [],
|
|
"linked": [],
|
|
"access": "public",
|
|
"baseBranch": "main",
|
|
"updateInternalDependencies": "patch",
|
|
"ignore": [],
|
|
"privatePackages": { "version": false, "tag": false },
|
|
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
|
|
"onlyUpdatePeerDependentsWhenOutOfRange": true
|
|
}
|
|
}
|