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

Refactor to use new common packages + remove eik map command #511

Merged
merged 11 commits into from
Aug 17, 2022
Merged

Conversation

benja
Copy link

@benja benja commented Aug 3, 2022

This PR implements the previous eik map command into eik publish, as well as moving over to the new separated common packages.

Copy link
Member

@digitalsadhu digitalsadhu left a comment

Choose a reason for hiding this comment

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

Looks good!

classes/publish/package/tasks/upload-files.js Outdated Show resolved Hide resolved
classes/version.js Show resolved Hide resolved
test/integration/alias.test.js Show resolved Hide resolved

const { ValidationError } = schemas;
Copy link
Contributor

Choose a reason for hiding this comment

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

A little bit of consistency nit picking here, but I find the deconstruction here a little bit inconsistent.

This means that some places we are doing ex so:

schemas.assert.version(this.version);

and other places so:

throw new ValidationError(`Parameter "debug" is not valid`);

I would prefer that we either deconstructed both so we do as follow:

assert.version(this.version);
throw new ValidationError(`Parameter "debug" is not valid`);

or non so we do as follow:

schemas.assert.version(this.version);
throw new schemas.ValidationError(`Parameter "debug" is not valid`);

@trygve-lie trygve-lie self-requested a review August 16, 2022 13:29
Copy link
Contributor

@trygve-lie trygve-lie left a comment

Choose a reason for hiding this comment

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

Looks good to me if we fix my nit picking 👍

@benja benja merged commit b2b62f2 into next Aug 17, 2022
@benja benja deleted the refactor branch August 17, 2022 10:06
@github-actions
Copy link

🎉 This PR is included in version 3.0.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants