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

fix(did-you-mean): succeed if cwd is not a package #3747

Merged
merged 1 commit into from Sep 13, 2021

Commits on Sep 13, 2021

  1. fix(did-you-mean): succeed if cwd is not a package

    The did-you-mean code was trying to parse a local package.json to
    suggest scripts and bins, which was causing an exception if you ran npm
    outside of a directory with a valid package.json.
    
    This fixes that.
    
    PR-URL: #3747
    Credit: @wraithgar
    Close: #3747
    Reviewed-by: @nlf
    wraithgar committed Sep 13, 2021
    Copy the full SHA
    5974397 View commit details
    Browse the repository at this point in the history