Skip to content

Commit

Permalink
Update disallowedChangeTypes for newly created packages, to allow onl…
Browse files Browse the repository at this point in the history
…y 'prerelease' change types by default (#24763)
  • Loading branch information
behowell authored Sep 13, 2022
1 parent a790320 commit e0a0ab1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions scripts/create-package/plop-templates-react/package.json.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,12 @@
"@types/react-dom": "",
"react": "",
"react-dom": ""
},
"beachball": {
"disallowedChangeTypes": [
"major",
"minor",
"patch"
]
}
}
4 changes: 0 additions & 4 deletions scripts/create-package/plopfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ function replaceVersionsFromReference(
if (packageJsons[0].version?.[0] !== '9') {
throw new Error(`Converged reference package ${packageJsons[0].name} does not appear to have version 9.x`);
}
// Update beachball config in package.json to match the current v9
if (packageJsons[0].beachball) {
newPackageJson.beachball = packageJsons[0].beachball;
}
}
}

Expand Down

0 comments on commit e0a0ab1

Please sign in to comment.