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

update mrm-task-license — add new entry for author name #94

Merged
merged 2 commits into from
Sep 23, 2020

Conversation

VoloshchenkoAl
Copy link
Contributor

Hi!
Base on npm documentation: https://docs.npmjs.com/files/package.json#people-fields-author-contributors, author field can be an object on an string. In this PR try to add this behavior to mrm task license

@codecov-commenter
Copy link

codecov-commenter commented Sep 22, 2020

Codecov Report

Merging #94 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted Files Coverage Δ
packages/mrm-task-license/index.js 100.00% <100.00%> (ø)

Copy link
Owner

@sapegin sapegin left a comment

Choose a reason for hiding this comment

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

Thanks, that's a good one!

packages/mrm-task-license/index.js Show resolved Hide resolved
const isAnonymouseLicense = name => ANONYMOUS_LICENSES.indexOf(name) > -1;
const isAnonymousLicense = name => ANONYMOUS_LICENSES.includes(name);

function getAuthorName() {
Copy link
Owner

Choose a reason for hiding this comment

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

I think passing pkg or even pkg.get('author') instead of reading package.json again would make more sense here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it makes sense. Thank you for review

@sapegin sapegin merged commit 6a6ff30 into sapegin:master Sep 23, 2020
@VoloshchenkoAl VoloshchenkoAl deleted the license-author-name branch September 23, 2020 08: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.

3 participants