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

Correctly detect if np isn't run in a package #512

Merged
merged 3 commits into from
Mar 4, 2020
Merged

Correctly detect if np isn't run in a package #512

merged 3 commits into from
Mar 4, 2020

Conversation

itaisteinherz
Copy link
Collaborator

@itaisteinherz itaisteinherz commented Mar 3, 2020

The issue is that if you run np in a directory that isn't a package, read-pkg-up will throw an error.

// cc @lukeggchapman

The issue is that if you run np in a directory that isn't a package, `read-pkg-up` will throw an exception.
Copy link
Contributor

@lukeggchapman lukeggchapman left a comment

Choose a reason for hiding this comment

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

Whoops, sorry I broke that. Good find @itaisteinherz !

source/util.js Outdated Show resolved Hide resolved
@sindresorhus sindresorhus merged commit b5a7dcf into sindresorhus:master Mar 4, 2020
@itaisteinherz itaisteinherz deleted the fix-issue-outside-package branch March 4, 2020 18:43
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