Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat(generate:typetests)!: Make type tests configurable per-branch #12849
feat(generate:typetests)!: Make type tests configurable per-branch #12849
Changes from 13 commits
f9f1d87
33dbc02
27f79ac
15d724c
67db2ee
f4d713f
f600918
55246d0
7ed8899
63fb832
fdca17a
e38061a
56b33ed
2c0b042
3561aaa
bb70fb0
5f6756b
eb72d80
8041644
361c9e5
7025b2b
4eda596
4a758e5
3dbdff3
85df5c8
71ea4ae
b597817
29cd509
8fba738
5660bd2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you clarify --packages: "Run on all independent packages in the repo." ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a shortcut to run generation on all independent packages, like build-common, common-utils, etc. The alternative is to use the
--dir
option and pass the path to the package, but this is more convenient when you're updating them all. Clarified in the flag docs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious on your thoughts WRT conventions for where to put link aliases. I find it useful to be able to look in a single place in a given document for the links so I know what things I can re-use and what I need to define as I go.
Would it make sense to move this to the bottom under a "links" comment like we generate for content on the website?
Feel free to disregard in the context of the PR - it just took me a few seconds to find where this was defined as I was reviewing, since I wanted to make sure it was defined somewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually put them at the end of the section in which they're used unless they're used in several places. Reason being that sections get moved/reorganized, and links sometimes break when they're far away from the content. But I don't care too much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe some super-short description here on "base" would be helpful. When I think of "previous" I think about previous to existing branch version, but "base" I cannot fit into my mental model, or at least I assume we don't want to run compat tests against self :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarified both here and in the tsdocs:
The "base" versions are calculated by zeroing out all version segments lower than the base. That is, for a version v,
the baseMajor version is
${v.major}.0.0
and the baseMinor version is${v.major}.${v.minor}.0
.The "previous" versions work similarly, but the major/minor/patch segment is reduced by 1. That is, for a version v,
the previousMajor version is
${min(v.major - 1, 1)}.0.0
, the previousMinor version is${v.major}.${min(v.minor - 1, 0)}.0
, and the previousPatch is${v.major}.${v.minor}.${min(v.patch - 1, 0)}.0
.The "previous" versions never roll back below 1 for the major version and 0 for minor and patch. That is, the
previousMajor, previousMinor, and previousPatch versions for
1.0.0
are all1.0.0
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we generate this list from the
PreviousVersionStyle
type?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a union type, so no, not as far as I know.