Searched refs:absModulePath (Results 1 – 1 of 1) sorted by relevance
42 function findModuleMain(absModulePath) { argument52 if (path.extname(absModulePath) === '.js') {53 absModulePath = absModulePath.replace(/\..+/, '')56 attempt(absModulePath + '.js')58 var pkg = JSON.parse(fs.readFileSync(absModulePath + '/package.json').toString())59 attempt(path.resolve(absModulePath, pkg.main + '.js'))60 attempt(path.resolve(absModulePath, pkg.main))62 attempt(absModulePath + '/index.js')