File tree 2 files changed +6
-6
lines changed 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1" ,
8
- "dev" : " nodemon --exec ts-node src/index.ts" ,
8
+ "dev" : " bun --watch src/index.ts" ,
9
9
"build" : " tsc" ,
10
- "serve" : " node target/index.js"
10
+ "serve" : " bun target/index.js"
11
11
},
12
12
"prisma" : {
13
- "seed" : " ts-node src/seeds/seed.ts"
13
+ "seed" : " bun src/seeds/seed.ts"
14
14
},
15
15
"keywords" : [],
16
16
"author" : " " ,
Original file line number Diff line number Diff line change 1
- import * as firebase from "firebase-admin" ;
1
+ import { initializeApp } from "firebase-admin/app " ;
2
2
3
- const options : firebase . AppOptions = {
3
+ const options = {
4
4
projectId : process . env . FIREBASE_PROJECT_ID ,
5
5
} ;
6
6
7
7
if ( ! options . projectId )
8
8
throw new Error ( "FIREBASE_PROJECT_ID required in server/.env" ) ;
9
9
10
- const app = firebase . initializeApp ( options ) ;
10
+ const app = initializeApp ( options ) ;
11
11
12
12
export { app } ;
You can’t perform that action at this time.
0 commit comments