fix files for publishing

This commit is contained in:
Balázs Orbán
2023-02-05 13:57:39 +01:00
parent 1cd5cbb02a
commit 7bb06892bd
4 changed files with 6 additions and 16 deletions

View File

@@ -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",

View File

@@ -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)
}
}

View File

@@ -6,5 +6,6 @@ export default {
...rest,
testEnvironmentOptions: {
url: testURL
}
},
rootDir: ".."
}

View File

@@ -18,7 +18,6 @@
"src/**/*"
],
"exclude": [
"tests",
"jest.config.js"
"tests"
]
}