-
-
Notifications
You must be signed in to change notification settings - Fork 5
Discourage postponing release of changed packages #29
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
Conversation
} | ||
|
||
const errors: { message: string | string[]; lineNumber: number }[] = []; | ||
const errors: { message: string | string[]; lineNumber?: number }[] = []; |
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 have plans to refactor this function as I know it's getting a bit out of hand. Sorry that this is hard to read in the meantime.
6c124d0
to
34ccbf1
Compare
0ba3ffd
to
68165a3
Compare
Rebased! |
3b55821
to
00b7396
Compare
When the tool generates a release spec, it will list all packages that have changed since their last release. Editing the release spec to remove a package so that it is no longer included in the release is potentially dangerous, because it means that any package which relies on that package that *is* included in the release could be broken in production. Since it's sometimes necessary to delay the release of a package, this commit changes the release spec validation step such that if it detects that a package that should be listed in the release spec *isn't*, it will throw an error, advising the user of the danger, yet provide a hidden option should the user really want to proceed.
68165a3
to
6bf8b36
Compare
Rebased again. |
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.
LGTM! Just a couple of questions, and one suggested additional test.
The hidden "intentionally-skip" flag seems like a great idea. It's well documented, but only in the case you run into it. Good compromise for something we want to discourage. |
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
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.
LGTM!
When the tool generates a release spec, it will list all packages that
have changed since their last release. Editing the release spec to
remove a package so that it is no longer included in the release is
potentially dangerous, because it means that any package which relies on
that package that is included in the release could be broken in
production.
Since it's sometimes necessary to delay the release of a package, this
commit changes the release spec validation step such that if it detects
that a package that should be listed in the release spec isn't, it
will throw an error, advising the user of the danger, yet provide a
hidden option should the user really want to proceed.
Fixes #10.