src/extendWithFirebaseConfig.js
function loadFirebaseRc() {
  const rcFilePath = `${process.cwd()}/.firebaserc`;
  if (!fs.existsSync(rcFilePath)) {
    throw new Error('.firebaserc file not found');
  }
  try {
    const fileStr = fs.readFileSync(rcFilePath);
    return JSON.parse(fileStr);
  } catch (err) {
    console.log('Error loading .firebaserc: ', err); // eslint-disable-line no-console
    throw err;
  }
}
function loadFirebaseRc() {
  const rcFilePath = `${process.cwd()}/.firebaserc`;
  if (!fs.existsSync(rcFilePath)) {
    throw new Error('.firebaserc file not found');
  }
  try {
    const fileStr = fs.readFileSync(rcFilePath);
    return JSON.parse(fileStr);
  } catch (err) {
    console.log('Error loading .firebaserc: ', err); // eslint-disable-line no-console
    throw err;
  }
}
function loadFirebaseRc ( ) { const rcFilePath = ` ${ process . cwd ( ) } ` ; if ( ! fs . existsSync ( rcFilePath ) ) { throw new Error ( '.firebaserc file not found' ) ; } try { const fileStr = fs . readFileSync ( rcFilePath ) ; return JSON . parse ( fileStr ) ; } catch ( err ) { console . log ( 'Error loading .firebaserc: ' , err ) ; // eslint-disable-line no-console throw err ; } }
Load .firebaserc file
Load . firebaserc file