-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathpackage.json
37 lines (37 loc) · 1.94 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"name": "firebase-typesense-search-extension",
"description": "Firebase extension that indexes Firestore documents into Typesense",
"scripts": {
"emulator": "cross-env DOTENV_CONFIG=extensions/test-params-flatten-nested-false.local.env firebase emulators:start --import=emulator_data",
"export": "firebase emulators:export emulator_data",
"test": "npm run test:flatttened && npm run test:unflattened && npm run test:subcollection",
"test:flatttened": "cp -f extensions/test-params-flatten-nested-true.local.env functions/.env && cross-env NODE_OPTIONS=--experimental-vm-modules DOTENV_CONFIG=extensions/test-params-flatten-nested-true.local.env firebase emulators:exec --only functions,firestore,extensions 'jest --testRegex=\"WithFlattening\" --testRegex=\"backfill.spec\"'",
"test:unflattened": "cp -f extensions/test-params-flatten-nested-false.local.env functions/.env && cross-env NODE_OPTIONS=--experimental-vm-modules DOTENV_CONFIG=extensions/test-params-flatten-nested-false.local.env firebase emulators:exec --only functions,firestore,extensions 'jest --testRegex=\"WithoutFlattening\"'",
"test:subcollection": "jest --testRegex=\"writeLogging\" --testRegex=\"Subcollection\" --detectOpenHandles",
"typesenseServer": "docker compose up",
"lint:fix": "eslint . --fix",
"lint": "eslint .",
"format": "prettier --write \"**/*.{js, cjs, md}\"",
"format:check": "prettier --check \"**/*.{js, cjs, md}\""
},
"engines": {
"node": "18"
},
"main": "src/index.js",
"devDependencies": {
"cross-env": "^7.0.3",
"dotenv": "^16.4.7",
"eslint": "^8.52.0",
"eslint-config-google": "^0.14.0",
"firebase-admin": "^13.0.2",
"firebase-functions": "^6.2.0",
"firebase-functions-test": "^3.4.0",
"eslint-config-prettier": "^10.0.1",
"jest": "^29.7.0",
"jest-dev-server": "^10.1.0",
"jest-junit": "^16.0.0",
"prettier": "^3.4.2",
"typesense": "^1.8.2"
},
"private": true
}