-
Notifications
You must be signed in to change notification settings - Fork 2
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
Web 1146 shared helpers #90
base: master
Are you sure you want to change the base?
Conversation
1b14259
to
1b4ca80
Compare
@@ -9,18 +9,18 @@ import type { Module, PackageAfterDetermineVersion } from '../../types'; | |||
import { logger } from '../../helpers/logger'; | |||
|
|||
import { getReleasablePackages } from '../../helpers/get-releasable-packages'; | |||
import { missingEnvAttrError } from '../../helpers/validation-errors'; |
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.
You could implement this inside helpers/logger
. There you already have the topic. Makes the API much simpler.
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'd also name it throwMissingAttrError
. Makes it more clear, that we throw an error inside.
|
||
const topic = '[analyse] adapt dependencies'; |
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.
Then you also don't have to extract topic.
1b4ca80
to
9fd08a3
Compare
No description provided.