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

Web 1146 shared helpers #90

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Web 1146 shared helpers #90

wants to merge 3 commits into from

Conversation

irmkr
Copy link
Collaborator

@irmkr irmkr commented Aug 2, 2021

No description provided.

@irmkr irmkr force-pushed the WEB-1146-shared-helpers branch from 1b14259 to 1b4ca80 Compare August 2, 2021 12:15
@@ -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';
Copy link
Collaborator

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.

Copy link
Collaborator

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';
Copy link
Collaborator

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.

@irmkr irmkr force-pushed the WEB-1146-shared-helpers branch from 1b4ca80 to 9fd08a3 Compare August 4, 2021 09:59
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.

2 participants