Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build-cli): Require versionConstraint flag in generate:typetests #12582

Merged
merged 2 commits into from
Oct 19, 2022

Conversation

tylerbutler
Copy link
Member

The generate:typetests command was incorrectly calculating the previous version when running in generate only mode. There was also not a way to indicate what version style to use, since the flag was exclusive with the --generate flag.

This change makes the -s flag required, so the user has to choose a style explicitly.

@github-actions github-actions bot added the base: main PRs targeted against main branch label Oct 19, 2022
@tylerbutler tylerbutler marked this pull request as ready for review October 19, 2022 16:55
@tylerbutler tylerbutler requested a review from a team as a code owner October 19, 2022 16:55
@@ -63,7 +62,7 @@ export default class GenerateTypeTestsCommand extends BaseCommand<
"baseMinor",
"baseMajor",
],
default: "baseMinor",
required: true,
Copy link

Choose a reason for hiding this comment

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

I like this change. We discussed some of the reasoning on the other PR.

@tylerbutler tylerbutler merged commit 91317a9 into microsoft:main Oct 19, 2022
@tylerbutler tylerbutler deleted the cli/typetests-fix branch October 19, 2022 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants