Skip to content

Commit

Permalink
warn when no main found
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Dec 30, 2014
1 parent ebbd8f2 commit 2d5c923
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/package.js
Expand Up @@ -644,8 +644,10 @@ exports.createMain = function(pkg, pjson, downloadDir) {
})
.then(function(exists) {
// don't create a main if it doesn't exist
if (!exists)
if (!exists) {
ui.log('warn', 'No main entry point detected for `' + pkg.exactName + '`. Try adding an override.');
return;
}

// detect the format of the main
return asp(fs.readFile)(mainPath)
Expand Down

0 comments on commit 2d5c923

Please sign in to comment.