UNPKG

6.96 kBJSONView Raw
1{
2 "name": "@firebase/firestore",
3 "version": "2.3.9",
4 "engines": {
5 "node": "^8.13.0 || >=10.10.0"
6 },
7 "description": "The Cloud Firestore component of the Firebase JS SDK.",
8 "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
9 "scripts": {
10 "bundle": "rollup -c",
11 "prebuild": "tsc --emitDeclarationOnly --declaration -p tsconfig.json; yarn api-report",
12 "build": "run-p 'bundle rollup.config.browser.js' 'bundle rollup.config.node.js' 'bundle rollup.config.rn.js' build:lite build:exp && yarn build:compat",
13 "build:scripts": "tsc -moduleResolution node --module commonjs scripts/*.ts && ls scripts/*.js | xargs -I % sh -c 'terser % -o %'",
14 "build:release": "run-p 'bundle rollup.config.browser.js' 'bundle rollup.config.node.js' 'bundle rollup.config.rn.js'",
15 "build:deps": "lerna run --scope @firebase/firestore --include-dependencies build",
16 "build:compat": "run-p 'bundle ./rollup.config.browser.compat.js' 'bundle ./rollup.config.node.compat.js' 'bundle ./rollup.config.rn.compat.js' && yarn add-compat-overloads",
17 "build:console": "node tools/console.build.js",
18 "build:exp": "rollup -c rollup.config.exp.js",
19 "build:lite": "rollup -c rollup.config.lite.js",
20 "build:exp:release": "yarn build:exp && yarn build:lite && yarn build:compat",
21 "postbuild:exp:release": "node ../../scripts/exp/remove-exp.js dist/exp/index.d.ts && node ../../scripts/exp/remove-exp.js dist/lite/index.d.ts",
22 "build:browser": "rollup -c rollup.config.browser.js",
23 "predev": "yarn prebuild",
24 "dev": "rollup -c -w",
25 "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
26 "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
27 "prettier": "prettier --write '*.js' '*.ts' '@(lite|exp|src|test)/**/*.ts'",
28 "pregendeps:exp": "yarn api-report && node scripts/build-bundle.js --input ./exp/index.ts --output ./dist/exp/tmp.js",
29 "gendeps:exp": "../../scripts/exp/extract-deps.sh --types ./dist/exp/index.d.ts --bundle ./dist/exp/tmp.js --output ./dist/exp/dependencies.json",
30 "pregendeps:lite": "yarn api-report && node scripts/build-bundle.js --input ./lite/index.ts --output ./dist/lite/tmp.js",
31 "gendeps:lite": "../../scripts/exp/extract-deps.sh --types ./dist/lite/index.d.ts --bundle ./dist/lite/tmp.js --output ./dist/lite/dependencies.json",
32 "test:lite": "node ./scripts/run-tests.js --emulator --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'",
33 "test:lite:prod": "node ./scripts/run-tests.js --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'",
34 "test:lite:browser": "karma start --single-run --lite",
35 "test:lite:browser:debug": "karma start --browsers=Chrome --lite --auto-watch",
36 "test": "run-s lint test:all",
37 "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all",
38 "test:all": "run-p test:browser test:lite:browser test:travis test:minified",
39 "test:browser": "karma start --single-run",
40 "test:browser:debug": "karma start --browsers=Chrome --auto-watch",
41 "test:node": "node ./scripts/run-tests.js --main=index.node.ts --emulator 'test/{,!(browser|lite)/**/}*.test.ts'",
42 "test:node:prod": "node ./scripts/run-tests.js --main=index.node.ts 'test/{,!(browser|lite)/**/}*.test.ts'",
43 "test:node:persistence": "node ./scripts/run-tests.js --main=index.node.ts --persistence --emulator 'test/{,!(browser|lite)/**/}*.test.ts'",
44 "test:node:persistence:prod": "node ./scripts/run-tests.js --main=index.node.ts --persistence 'test/{,!(browser|lite)/**/}*.test.ts'",
45 "test:travis": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/firestore-test-runner.ts",
46 "test:minified": "(cd ../../integration/firestore ; yarn test)",
47 "api-report:exp": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package firestore --packageRoot . --typescriptDts ./dist/firestore/exp/index.d.ts --rollupDts ./dist/exp/private.d.ts --untrimmedRollupDts ./dist/exp/internal.d.ts --publicDts ./dist/exp/index.d.ts",
48 "api-report:lite": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package firestore --packageRoot . --typescriptDts ./dist/firestore/lite/index.d.ts --rollupDts ./dist/lite/private.d.ts --untrimmedRollupDts ./dist/lite/internal.d.ts --publicDts ./dist/lite/index.d.ts",
49 "api-report:api-json": "rm -rf temp && api-extractor run --local --verbose",
50 "api-report": "run-s api-report:exp api-report:lite && yarn api-report:api-json",
51 "predoc": "node ../../scripts/exp/remove-exp.js temp",
52 "doc": "api-documenter markdown --input temp --output docs",
53 "add-compat-overloads": "ts-node-script ../../scripts/exp/create-overloads.ts -i dist/exp/index.d.ts -o dist/compat/esm2017/firestore/compat/index.d.ts -a -r FirebaseFirestore:types.FirebaseFirestore -r CollectionReference:types.CollectionReference -r DocumentReference:types.DocumentReference -r Query:types.Query -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/firestore"
54 },
55 "main": "dist/node-cjs/index.js",
56 "main-esm2017": "dist/node-esm2017/index.js",
57 "react-native": "dist/rn/index.js",
58 "browser": "dist/esm5/index.js",
59 "module": "dist/esm5/index.js",
60 "esm2017": "dist/esm2017/index.js",
61 "license": "Apache-2.0",
62 "files": [
63 "dist",
64 "memory/package.json",
65 "bundle/package.json",
66 "memory-bundle/package.json"
67 ],
68 "dependencies": {
69 "@firebase/component": "0.5.4",
70 "@firebase/firestore-types": "2.3.0",
71 "@firebase/logger": "0.2.6",
72 "@firebase/util": "1.1.0",
73 "@firebase/webchannel-wrapper": "0.5.1",
74 "@grpc/grpc-js": "^1.3.2",
75 "@grpc/proto-loader": "^0.6.0",
76 "node-fetch": "2.6.1",
77 "tslib": "^2.1.0"
78 },
79 "peerDependencies": {
80 "@firebase/app": "0.x",
81 "@firebase/app-types": "0.x"
82 },
83 "devDependencies": {
84 "@firebase/app": "0.6.28",
85 "@rollup/plugin-alias": "3.1.2",
86 "@rollup/plugin-json": "4.1.0",
87 "@rollup/plugin-node-resolve": "11.2.0",
88 "@types/eslint": "7.2.10",
89 "@types/json-stable-stringify": "1.0.32",
90 "json-stable-stringify": "1.0.1",
91 "protobufjs": "6.11.2",
92 "rollup": "2.52.2",
93 "rollup-plugin-copy": "3.4.0",
94 "rollup-plugin-copy-assets": "2.0.3",
95 "rollup-plugin-replace": "2.2.0",
96 "rollup-plugin-sourcemaps": "0.6.3",
97 "rollup-plugin-terser": "7.0.2",
98 "rollup-plugin-typescript2": "0.30.0",
99 "ts-node": "9.1.1",
100 "typescript": "4.2.2"
101 },
102 "repository": {
103 "directory": "packages/firestore",
104 "type": "git",
105 "url": "https://github.com/firebase/firebase-js-sdk.git"
106 },
107 "bugs": {
108 "url": "https://github.com/firebase/firebase-js-sdk/issues"
109 },
110 "typings": "dist/firestore/index.d.ts",
111 "nyc": {
112 "extension": [
113 ".ts"
114 ],
115 "reportDir": "./coverage/node"
116 }
117}