Skip to content

Commit

Permalink
fix(local): do not replace version with workspace:*
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Aug 21, 2023
1 parent f016552 commit d8a4eaa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/get-version-groups/standard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ export class StandardVersionGroup extends Data.TaggedClass('Standard')<{
}),
);
}
if (hasNonSemverSpecifiers(instances)) {
return Effect.fail(
new VersionGroupReport.NonSemverMismatch({
name,
instances,
isValid: false,
}),
);
}
const localPackageInstance = getLocalPackageInstance(instances);
const localPackageFile = localPackageInstance?.packageJsonFile;
const localPackageVersion = localPackageFile?.contents?.version;
Expand All @@ -70,6 +61,15 @@ export class StandardVersionGroup extends Data.TaggedClass('Standard')<{
}),
);
}
if (hasNonSemverSpecifiers(instances)) {
return Effect.fail(
new VersionGroupReport.NonSemverMismatch({
name,
instances,
isValid: false,
}),
);
}
const preferVersion = this.config.preferVersion;
const expectedVersion = getExpectedVersion(preferVersion, instances);
return Effect.fail(
Expand Down

0 comments on commit d8a4eaa

Please sign in to comment.