mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
fix files for publishing
This commit is contained in:
@@ -20,8 +20,9 @@
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
"*.js",
|
||||
"*.d.ts"
|
||||
"*.d.ts*"
|
||||
],
|
||||
"license": "ISC",
|
||||
"keywords": [
|
||||
@@ -37,7 +38,7 @@
|
||||
"scripts": {
|
||||
"dev": "tsc -w",
|
||||
"build": "tsc",
|
||||
"test": "firebase emulators:exec --only firestore --project next-auth-test jest"
|
||||
"test": "firebase emulators:exec --only firestore --project next-auth-test 'jest -c tests/jest.config.js'"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"firebase-admin": "^11.4.1",
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import { initializeApp, getApps, FirebaseOptions } from "firebase/app"
|
||||
|
||||
export default function getFirebase(firebaseOptions: FirebaseOptions) {
|
||||
const apps = getApps()
|
||||
const app = apps.find((app) => app.name === firebaseOptions.projectId)
|
||||
if (app) {
|
||||
return app
|
||||
} else {
|
||||
return initializeApp(firebaseOptions)
|
||||
}
|
||||
}
|
||||
@@ -6,5 +6,6 @@ export default {
|
||||
...rest,
|
||||
testEnvironmentOptions: {
|
||||
url: testURL
|
||||
}
|
||||
},
|
||||
rootDir: ".."
|
||||
}
|
||||
@@ -18,7 +18,6 @@
|
||||
"src/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"tests",
|
||||
"jest.config.js"
|
||||
"tests"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user