sindresorhus/load-grunt-tasks

Fail with descriptive error if package.json is missing

ryanburnette opened this issue · 3 comments

Issuehunt badges

It would be good to fail with a descriptive error if package.json is missing.

Clearly, others have had the same issue.

Loading "Gruntfile.js" tasks...ERROR
>> TypeError: Cannot read property 'dependencies' of null
Warning: Task "rsync" not found. Use --force to continue.

IssueHunt Summary

nunospot nunospot has been rewarded.

Backers (Total: $20.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

@IssueHunt has funded $20.00 to this issue.


@sindresorhus has rewarded $18.00 to @nunospot. See it on IssueHunt

  • 💰 Total deposit: $20.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $2.00

Fixed by #61