Skip to content

Commit fcda2db

Browse files
committed
drop npm support; thank you firebase/firebase-admin-node#1666 (comment)
1 parent 8ffcb1e commit fcda2db

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"dev": "nodemon --exec ts-node src/index.ts",
8+
"dev": "bun --watch src/index.ts",
99
"build": "tsc",
10-
"serve": "node target/index.js"
10+
"serve": "bun target/index.js"
1111
},
1212
"prisma": {
13-
"seed": "ts-node src/seeds/seed.ts"
13+
"seed": "bun src/seeds/seed.ts"
1414
},
1515
"keywords": [],
1616
"author": "",

server/src/firebase/init.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import * as firebase from "firebase-admin";
1+
import { initializeApp } from "firebase-admin/app";
22

3-
const options: firebase.AppOptions = {
3+
const options = {
44
projectId: process.env.FIREBASE_PROJECT_ID,
55
};
66

77
if (!options.projectId)
88
throw new Error("FIREBASE_PROJECT_ID required in server/.env");
99

10-
const app = firebase.initializeApp(options);
10+
const app = initializeApp(options);
1111

1212
export { app };

0 commit comments

Comments
 (0)