dojo / cli

:rocket: Dojo - command line tooling.
http://dojo.io
Other
25 stars 34 forks source link

Running CLI and commands without package.json throws errors #252

Closed JamesLMilner closed 6 years ago

JamesLMilner commented 6 years ago

Enhancement

When dojo or associated commands are run in a directory without a package.json file, the CLI throws errors such as Path must be a string. Received null

Package Version: 3.0.0

Code

dojo or dojo init in any directory without a package.json

Expected behavior:

The CLI to either behave as best as possible or give a meaningful error message if not.

Actual behavior:

Unhelpful end user errors