lib/meteor/build.js
function checkIfMeteorIsRunning(pathToApp) {
  var pathToMongoLock = path.join(pathToApp, '.meteor', 'local', 'db', 'mongod.lock');
  return new Promise(function (resolve, reject) {
    fs.readFile(pathToMongoLock, { encoding: 'utf8' }, function (err, data) {
      if (err) {
        // if the file does not exist, then we are ok anyway
        return err.code !== 'ENOENT' ? reject(err) : resolve();
      } else {
        // isLocked iff the content is non empty
        resolve(!!data);
      }
    });
  });
}
function checkIfMeteorIsRunning(pathToApp) {
  var pathToMongoLock = path.join(pathToApp, '.meteor', 'local', 'db', 'mongod.lock');
  return new Promise(function (resolve, reject) {
    fs.readFile(pathToMongoLock, { encoding: 'utf8' }, function (err, data) {
      if (err) {
        // if the file does not exist, then we are ok anyway
        return err.code !== 'ENOENT' ? reject(err) : resolve();
      } else {
        // isLocked iff the content is non empty
        resolve(!!data);
      }
    });
  });
}
function checkIfMeteorIsRunning ( pathToApp ) { var pathToMongoLock = path . join ( pathToApp , '.meteor' , 'local' , 'db' , 'mongod.lock' ) ; return new Promise ( function ( resolve , reject ) { fs . readFile ( pathToMongoLock , { encoding : 'utf8' } , function ( err , data ) { if ( err ) { // if the file does not exist, then we are ok anyway return err . code !== 'ENOENT' ? reject ( err ) : resolve ( ) ; } else { // isLocked iff the content is non empty resolve ( ! ! data ) ; } } ) ; } ) ; }
Guess if "develop" meteor is currently running.

@param {string} pathToApp
Guess if develop meteor is currently running .