Skip to content

Commit

Permalink
Merge pull request #522 from brown-ccv/build-deps
Browse files Browse the repository at this point in the history
build: Upgrade and cleanup dependencies
  • Loading branch information
RobertGemmaJr authored Aug 5, 2024
2 parents 9764ffa + c1e6db7 commit 02a5521
Show file tree
Hide file tree
Showing 3 changed files with 10,637 additions and 22,401 deletions.
15 changes: 7 additions & 8 deletions cli.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { checkbox, confirm, expand, input, select } from "@inquirer/prompts";
import fsExtra from "fs-extra";

// TODO @brown-ccv #183: Upgrade to modular SDK instead of compat
import { cert, initializeApp } from "firebase-admin/app";
import { getFirestore } from "firebase-admin/firestore";
import { cert, initializeApp } from "firebase-admin/app"; // eslint-disable-line import/no-unresolved
import { getFirestore } from "firebase-admin/firestore"; // eslint-disable-line import/no-unresolved

/** -------------------- GLOBALS -------------------- */

Expand Down Expand Up @@ -171,13 +170,13 @@ async function deploymentPrompt() {
const app = initializeApp({ credential: cert("firebase-service-account.json") });
FIRESTORE = getFirestore(app);
} catch (error) {
throw new Error(
// Failed to connext to Firebase, exit
console.error(
"Unable to connect to Firebase\n\n" +
'Your secret key must be called "firebase-service-account.json" ' +
"and stored in the root of your repository.\n" +
"More information: https://firebase.google.com/support/guides/service-accounts\n\n" +
error.stack
'Your secret key must be called "firebase-service-account.json" and stored in the root of your repository.\n' +
"More information: https://firebase.google.com/support/guides/service-accounts"
);
process.exit(1);
}
}

Expand Down
Loading

0 comments on commit 02a5521

Please sign in to comment.