Skip to content

Conversation

@paul-soporan
Copy link
Member

What's the problem this PR addresses?

  • The version plugin didn't validate the versions from the release files / applied by yarn version.
  • The version plugin didn't support applying releases using the : decline syntax

How did you fix it?

I also wanted to add tests testing manual modifications to the version files but I haven't managed to get them to work.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@paul-soporan paul-soporan requested a review from arcanis as a code owner July 22, 2021 00:49
arcanis
arcanis previously approved these changes Jul 22, 2021
Copy link
Member

@arcanis arcanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - I'd just change the 'package.json' as Filename.manifest

throw new Error(`Assertion failed: Invalid value for enumeration`);
const values = Object.values(def);

if (!values.includes(value as any))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because of that, we can't apply a valid semver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants