Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/curly-mirrors-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@manypkg/cli": minor
---

Change the default value of the `defaultBranch` config from `"master"` to `"main"``
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ Manypkg supports a number of options. Options can be provided using the `manypkg

### `defaultBranch`

Used by the [Incorrect `repository` field](#incorrect-repository-field) rule to determine the correct name for repositories. The default value is `master`.
Used by the [Incorrect `repository` field](#incorrect-repository-field) rule to determine the correct name for repositories. The default value is `main`.

```json
{
"manypkg": {
"defaultBranch": "master"
"defaultBranch": "main"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type PackagesWithConfig = Packages & {
};

let defaultOptions = {
defaultBranch: "master",
defaultBranch: "main",
};

let runChecks = (
Expand Down