UNPKG

@puls-atlas/cli

Version:

The Puls Atlas CLI tool for managing Atlas projects

10 lines 393 B
import fs from 'fs'; import path from 'path'; import logger from './logger.js'; export default () => { const firebaseJsonPath = path.join(process.cwd(), '.firebaserc'); if (!fs.existsSync(firebaseJsonPath)) { logger.error('No .firebaserc file found. ' + 'Make sure you run this command in the root of the Atlas project.'); } return JSON.parse(fs.readFileSync(firebaseJsonPath)); };