Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: throwing error on require nodemon
Browse files Browse the repository at this point in the history
     Fixes remy#1292

     Null was not being checked on index.js
chakradeb committed Mar 13, 2018
1 parent 8637e52 commit d0f26b0
Showing 3 changed files with 13 additions and 57 deletions.
2 changes: 1 addition & 1 deletion lib/utils/index.js
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ var utils = (module.exports = {
var p = module.parent;
while (p) {
// in electron.js engine it happens
if (p.filename === undefined) {
if (!p.filename) {
return true;
}
if (p.filename.indexOf('bin' + path.sep + 'nodemon.js') !== -1) {
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 0 additions & 44 deletions test/fork/config.test.js

This file was deleted.

0 comments on commit d0f26b0

Please sign in to comment.