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

nodejs pluging: support for type str bin entries #2501

Merged
merged 2 commits into from
Mar 13, 2019

Conversation

sergiusens
Copy link
Collaborator

@sergiusens sergiusens commented Mar 12, 2019

The plugin was only capable of parsing bin entries inside package.json
of type dict, this adds support for str entries, taking into account
scoped package names.

LP: #1817553
Signed-off-by: Sergio Schvezov sergio.schvezov@canonical.com

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run ./runtests.sh static?
  • Have you successfully run ./runtests.sh tests/unit?

The plugin was only capable of parsing bin entries inside package.json
of type dict, this adds support for str entries, taking into account
scoped package names.

LP: #1817553
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
@sergiusens sergiusens force-pushed the bugfix/1817553/nodejs-bin branch from fb2b29c to 3c572ca Compare March 12, 2019 21:26
@codecov-io
Copy link

codecov-io commented Mar 12, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@4c92c1b). Click here to learn what that means.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2501   +/-   ##
=========================================
  Coverage          ?   89.92%           
=========================================
  Files             ?      198           
  Lines             ?    13364           
  Branches          ?     2023           
=========================================
  Hits              ?    12018           
  Misses            ?      922           
  Partials          ?      424
Impacted Files Coverage Δ
snapcraft/plugins/nodejs.py 90.79% <71.42%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c92c1b...bea8ef0. Read the comment docs.

Copy link
Contributor

@cmatsuoka cmatsuoka left a comment

Choose a reason for hiding this comment

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

Fix seems correct, I would only ask you to update the Copyright notice date if that's not too picky.

@sergiusens sergiusens merged commit 90b875c into canonical:master Mar 13, 2019
@sergiusens sergiusens deleted the bugfix/1817553/nodejs-bin branch March 13, 2019 20:23
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