function findConfigs (err) { if (err) { return callback(err) } var name = configNames.shift() if (!name) { return runGyp() } var fullPath = path.resolve(name) log.verbose(name, 'checking for gypi file: %s', fullPath) fs.stat(fullPath, function (err) { if (err) { if (err.code === 'ENOENT') { findConfigs() // check next gypi filename } else { callback(err) } } else { log.verbose(name, 'found gypi file') configs.push(fullPath) findConfigs() } }) }
if (!file) return done(null, results); file = dir + '/' + file; fs.stat(file, function(err, stat) { if (stat && stat.isDirectory()) { walk(file, function(err, res) {
if (!pinflight) { pinflight = require('promise-inflight') } return pinflight('cacache-move-file:' + dest, () => { return BB.promisify(fs.stat)(dest).catch(err => { if (err.code !== 'ENOENT') {
var addonGypi = path.resolve(__dirname, '..', 'addon.gypi') var commonGypi = path.resolve(nodeDir, 'include/node/common.gypi') fs.stat(commonGypi, function (err) { if (err) { commonGypi = path.resolve(nodeDir, 'common.gypi')