dist/utils.js
function findPackage(filename) {
    if (!ctr)
        return;
    filename = filename || require.main.filename;
    var parsed = path_1.parse(filename);
    var curPath = path_1.join(parsed.dir, 'package.json');
    if (!fs_1.existsSync(curPath)) {
        ctr--;
        return findPackage(parsed.dir);
    }
    else {
        return chek_1.tryRequire(curPath, {});
    }
}
function findPackage(filename) {
    if (!ctr)
        return;
    filename = filename || require.main.filename;
    var parsed = path_1.parse(filename);
    var curPath = path_1.join(parsed.dir, 'package.json');
    if (!fs_1.existsSync(curPath)) {
        ctr--;
        return findPackage(parsed.dir);
    }
    else {
        return chek_1.tryRequire(curPath, {});
    }
}
function findPackage ( filename ) { if ( ! ctr ) return ; filename = filename || require . main . filename ; var parsed = path_1 . parse ( filename ) ; var curPath = path_1 . join ( parsed . dir , 'package.json' ) ; if ( ! fs_1 . existsSync ( curPath ) ) { ctr -- ; return findPackage ( parsed . dir ) ; } else { return chek_1 . tryRequire ( curPath , { } ) ; } }
limit recursion.
limit recursion .