-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
199f6d0
commit 9a9f133
Showing
19 changed files
with
288 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
'@microsoft/m365-renovate-config': major | ||
--- | ||
|
||
`m365-renovate-config` version 2 makes the default preset a bit more opinionated based on testing, streamlines preset naming, and updates settings to better reflect recent improvements in Renovate. | ||
|
||
**These changes have been picked up automatically** unless you specified a ref (e.g. `#v1`) as part of the preset names in your `extends` config. | ||
|
||
Note: `<m365>` in preset names referenced below is a shorthand for `github>microsoft/m365-renovate-config`. This is just for readability of the readme and will _**not**_ work in actual configs (you must use the full repo prefix). | ||
|
||
#### Default preset changes | ||
|
||
The default preset (`github>microsoft/m365-renovate-config`) is now a bit more "opinionated" and includes the settings that were previously defined in `<m365>:libraryRecommended`. These settings can be disabled either individually or using the `excludePresets` option. | ||
|
||
The dependency version update strategy (`rangeStrategy`) has also changed as described below. | ||
|
||
#### Major preset changes and deprecations | ||
|
||
Deprecated presets still exist for now to avoid immediate breaks in consuming repos, but will be removed in version 3. | ||
|
||
- `<m365>:libraryRecommended` is deprecated in favor of this repo's default preset. | ||
- `<m365>:beachballLibraryRecommended` is renamed to `<m365>:beachball`. | ||
|
||
#### Dependency version update strategy | ||
|
||
Previously, Renovate's `config:base` would pin `devDependencies` and possibly also `dependencies` to exact versions. Pinning `dependencies` is not desirable for libraries, so `v1` of `m365-renovate-config` omitted any pinning behavior in its default preset, and enabled pinning _only_ `devDependencies` in its `<m365>:libraryRecommended` preset. | ||
|
||
A [recent Renovate update](https://docs.renovatebot.com/release-notes-for-major-versions/#version-35) included greatly expanded support for doing in-range updates (e.g. updating the installed version for `"foo": "^1.0.0"` from `1.1.0` to `1.2.0`) by changing only the lockfile. Therefore, Renovate's default [`rangeStrategy: "auto"`](https://docs.renovatebot.com/configuration-options/#rangestrategy) was changed to do lockfile-only updates when possible (instead of pinning or replacing versions), and `config:base` no longer includes any pinning of versions. | ||
|
||
Since the lockfile-only updates are likely a good strategy for `devDependencies` in most repos, `m365-renovate-config`'s default preset (which supersedes `<m365>:libraryRecommended`) has been updated as follows: | ||
|
||
- Use `rangeStrategy: "replace"` for `dependencies` (production) to reduce the chance of breaks for library consumers. | ||
- Remove overrides (use `rangeStrategy: "auto"`) for other dependency types. | ||
|
||
To restore the previous behavior of `<m365>:libraryRecommended`, extend the Renovate preset [`:pinOnlyDevDependencies`](https://docs.renovatebot.com/presets-default/#pinonlydevdependencies). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
|
||
"description": "Recommended config for library repos which use Beachball for publishing.", | ||
|
||
"extends": [ | ||
"github>microsoft/m365-renovate-config", | ||
"github>microsoft/m365-renovate-config:beachballPostUpgrade" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,10 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
|
||
"description": "Dependency management strategy for library repos, including Beachball change file generation.", | ||
"description": "DEPRECATED; use this repo's `beachball` preset instead.", | ||
|
||
"extends": ["github>microsoft/m365-renovate-config:libraryRecommended"], | ||
|
||
"gitAuthor": "Renovate Bot <[email protected]>", | ||
|
||
"postUpgradeTasks": { | ||
"commands": [ | ||
"git add --all", | ||
"npx beachball change --no-fetch --no-commit --type patch --message '{{{commitMessage}}}'", | ||
"git reset" | ||
], | ||
"fileFilters": ["**/*"], | ||
"executionMode": "branch" | ||
}, | ||
|
||
"pin": { | ||
"group": { | ||
"postUpgradeTasks": { | ||
"commands": [ | ||
"git add --all", | ||
"npx beachball change --no-fetch --no-commit --type none --message '{{{commitMessage}}}'", | ||
"git reset" | ||
], | ||
"fileFilters": ["**/*"], | ||
"executionMode": "branch" | ||
} | ||
} | ||
}, | ||
|
||
"lockFileMaintenance": { | ||
"postUpgradeTasks": { | ||
"commands": [ | ||
"git add --all", | ||
"npx beachball change --no-fetch --no-commit --type none --message '{{{commitMessage}}}'", | ||
"git reset" | ||
], | ||
"fileFilters": ["**/*"], | ||
"executionMode": "branch" | ||
} | ||
}, | ||
|
||
"packageRules": [ | ||
{ | ||
"matchDepTypes": ["devDependencies"], | ||
"postUpgradeTasks": { | ||
"commands": [ | ||
"git add --all", | ||
"npx beachball change --no-fetch --no-commit --type none --message '{{{commitMessage}}}'", | ||
"git reset" | ||
], | ||
"fileFilters": ["**/*"], | ||
"executionMode": "branch" | ||
} | ||
} | ||
"extends": [ | ||
"github>microsoft/m365-renovate-config", | ||
"github>microsoft/m365-renovate-config:beachballPostUpgrade" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
|
||
"description": "Run `beachball change` as a post-upgrade task.", | ||
|
||
"gitAuthor": "Renovate Bot <[email protected]>", | ||
|
||
"postUpgradeTasks": { | ||
"commands": [ | ||
"git add --all", | ||
"npx beachball change --no-fetch --no-commit --type patch --message '{{{commitMessage}}}'", | ||
"git reset" | ||
], | ||
"fileFilters": ["**/*"], | ||
"executionMode": "branch" | ||
}, | ||
|
||
"lockFileMaintenance": { | ||
"postUpgradeTasks": { | ||
"commands": [ | ||
"git add --all", | ||
"npx beachball change --no-fetch --no-commit --type none --message '{{{commitMessage}}}'", | ||
"git reset" | ||
], | ||
"fileFilters": ["**/*"], | ||
"executionMode": "branch" | ||
} | ||
}, | ||
|
||
"packageRules": [ | ||
{ | ||
"matchDepTypes": ["devDependencies"], | ||
"postUpgradeTasks": { | ||
"commands": [ | ||
"git add --all", | ||
"npx beachball change --no-fetch --no-commit --type none --message '{{{commitMessage}}}'", | ||
"git reset" | ||
], | ||
"fileFilters": ["**/*"], | ||
"executionMode": "branch" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
|
||
"description": "Group D3 updates (except when initially pinning).", | ||
"description": "Group D3 updates.", | ||
|
||
"packageRules": [ | ||
{ | ||
"groupName": "D3 packages", | ||
"matchPackagePrefixes": ["d3-", "@types/d3-"], | ||
"matchUpdateTypes": ["major", "minor", "patch", "bump", "digest"] | ||
"matchPackagePrefixes": ["d3-", "@types/d3-"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
|
||
"description": "Group all rollup-related updates (except when initially pinning).", | ||
"description": "Group all Rollup-related updates.", | ||
|
||
"packageRules": [ | ||
{ | ||
"groupName": "rollup packages", | ||
"matchPackagePrefixes": ["@rollup"], | ||
"matchPackagePatterns": ["^rollup"], | ||
"matchUpdateTypes": ["major", "minor", "patch", "bump", "digest"] | ||
"matchPackagePatterns": ["^rollup"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
|
||
"description": "Group yargs, yargs-parser, and their types (except when initially pinning).", | ||
"description": "Group yargs, yargs-parser, and their types.", | ||
|
||
"packageRules": [ | ||
{ | ||
"groupName": "yargs packages", | ||
"matchPackageNames": ["yargs", "yargs-parser", "@types/yargs", "@types/yargs-parser"], | ||
"matchUpdateTypes": ["major", "minor", "patch", "bump", "digest"] | ||
"matchPackageNames": ["yargs", "yargs-parser", "@types/yargs", "@types/yargs-parser"] | ||
} | ||
] | ||
} |
Oops, something went wrong.