forked from typesense/firestore-typesense-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
30 lines (30 loc) · 1.78 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
{
"name": "firebase-typesense-search-extension",
"description": "Firebase extension that indexes Firestore documents into Typesense",
"scripts": {
"emulator": "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-part-1 && npm run test-part-2",
"test-part-1": "cp -f extensions/test-params-flatten-nested-true.local.env extensions/firestore-typesense-search.env.local && NODE_OPTIONS=--experimental-vm-modules DOTENV_CONFIG=extensions/test-params-flatten-nested-true.local.env firebase emulators:exec --only functions,firestore,extensions 'jest --testPathIgnorePatterns=test/indexOnWriteWithoutFlattening.spec.js'",
"test-part-2": "cp -f extensions/test-params-flatten-nested-false.local.env extensions/firestore-typesense-search.env.local && NODE_OPTIONS=--experimental-vm-modules DOTENV_CONFIG=extensions/test-params-flatten-nested-false.local.env firebase emulators:exec --only functions,firestore,extensions 'jest --testPathPattern=test/indexOnWriteWithoutFlattening.spec.js'",
"typesenseServer": "mkdir -p $(pwd)/typesense-server-data && docker run -i -p 8108:8108 -v$(pwd)/typesense-server-data/:/data typesense/typesense:0.25.1 --data-dir /data --api-key=xyz --listen-port 8108 --enable-cors",
"lint": "eslint . --fix"
},
"engines": {
"node": "18"
},
"main": "src/index.js",
"devDependencies": {
"dotenv": "^16.3.1",
"eslint": "^8.52.0",
"eslint-config-google": "^0.14.0",
"firebase-admin": "^11.11.0",
"firebase-functions": "^4.4.1",
"firebase-functions-test": "^3.1.0",
"jest": "^29.7.0",
"jest-dev-server": "^9.0.1",
"jest-junit": "^16.0.0",
"typesense": "^1.7.2"
},
"private": true
}