Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Throw error when top-level package.json is missing #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

copperwall
Copy link

This add an error case when loading the package manifest and the file doesn't exist. Now instead of failing on an undefined TypeError when this.manifest is undefined or null later in the command, it fails with an uncaught error with a message of "No top-level package.json manifest found.".

Right now this shows up as an uncaught error with a stacktrace and everything, but if it's better to print this with console.error and then end the process I can make those changes.

Fixes #76

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throws TypeError when top-level package.json does not exist
1 participant