scripts/prepare-release: update to handle workspace ranges

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-11-08 11:47:40 +01:00
parent 53386e0619
commit cee9c22da8
+5 -1
View File
@@ -209,7 +209,11 @@ async function applyPatchVersions(repo, patchVersions) {
const deps = packageJson[depType];
for (const depName of Object.keys(deps ?? {})) {
const currentRange = deps[depName];
if (currentRange === '*' || currentRange === '') {
if (
currentRange === '*' ||
currentRange === '' ||
currentRange.startsWith('workspace:')
) {
continue;
}