-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
readPackageSync()
could be simplified, 17 fewer deps
#2853
Comments
I don't think we need enhanced error messages here, if the |
I would like to work on that, if no one is assigned to it :) |
Neat, now I don't have to 😃
…On Mon, Oct 4, 2021 at 5:32 PM Alessandro Menezes ***@***.***> wrote:
I would like to work on that, if no one is assigned to it :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2853 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADJNN3SCURCNFJTQR3I2F3UFJBQVANCNFSM5FEVG2SQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hi. I've opened a draft PR for this (#2863). I tried my best to do a minimal change to the Well, if you have any suggestions, please let me know. |
@novemberborn @live627 Hello, the PR is ready for a few days now. Is there anything else I should do to get it approved & merged? Please let me know. |
@alessandroasm I haven't had a chance to look at it yet. |
read-pkg
is designated to read package files and optionally normalize them usingnormalize-package-data
. Thing is, only the type attribute is used.ava/lib/cli.js
Lines 314 to 323 in b0b76a0
Doesn't need to be normalized because it is validated
ava/lib/module-types.js
Lines 1 to 25 in b0b76a0
Could this be simplified?
read-pkg
could then be droppedand replaced with
parse-json
That in turn could also be dropped in favor of
JSON.parse
, but then the enhanced error messages would be lost.The text was updated successfully, but these errors were encountered: