1 | {
|
2 | "name": "@firebase/firestore",
|
3 | "version": "3.8.3",
|
4 | "engines": {
|
5 | "node": ">=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 build:lite build:main",
|
13 | "build:release": "yarn build && yarn typings:public",
|
14 | "build:scripts": "tsc -moduleResolution node --module commonjs scripts/*.ts && ls scripts/*.js | xargs -I % sh -c 'terser % -o %'",
|
15 | "build:deps": "lerna run --scope @firebase/firestore --include-dependencies build",
|
16 | "build:main": "rollup -c rollup.config.js",
|
17 | "build:lite": "rollup -c rollup.config.lite.js",
|
18 | "build:debug": "rollup -c rollup.config.debug.js",
|
19 | "predev": "yarn prebuild",
|
20 | "dev": "rollup -c -w",
|
21 | "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
22 | "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
23 | "prettier": "prettier --write '*.js' '@(lite|src|test)/**/*.ts'",
|
24 | "test:lite": "node ./scripts/run-tests.js --emulator --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'",
|
25 | "test:lite:prod": "node ./scripts/run-tests.js --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'",
|
26 | "test:lite:browser": "karma start --single-run --lite",
|
27 | "test:lite:browser:debug": "karma start --browsers=Chrome --lite --auto-watch",
|
28 | "test": "run-s lint test:all",
|
29 | "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all:ci",
|
30 | "test:all:ci": "run-p test:browser test:lite:browser test:travis",
|
31 | "test:all": "run-p test:browser test:lite:browser test:travis test:minified",
|
32 | "test:browser": "karma start --single-run",
|
33 | "test:browser:emulator:debug": "karma start --browsers=Chrome --local",
|
34 | "test:browser:emulator": "karma start --single-run --local",
|
35 | "test:browser:unit": "karma start --single-run --unit",
|
36 | "test:browser:debug": "karma start --browsers=Chrome --auto-watch",
|
37 | "test:node": "node ./scripts/run-tests.js --main=test/register.ts --emulator 'test/{,!(browser|lite)/**/}*.test.ts'",
|
38 | "test:node:prod": "node ./scripts/run-tests.js --main=test/register.ts 'test/{,!(browser|lite)/**/}*.test.ts'",
|
39 | "test:node:persistence": "node ./scripts/run-tests.js --main=test/register.ts --persistence --emulator 'test/{,!(browser|lite)/**/}*.test.ts'",
|
40 | "test:node:persistence:prod": "node ./scripts/run-tests.js --main=test/register.ts --persistence 'test/{,!(browser|lite)/**/}*.test.ts'",
|
41 | "test:travis": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/firestore-test-runner.ts",
|
42 | "test:minified": "(cd ../../integration/firestore ; yarn test)",
|
43 | "api-report:main": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package firestore --packageRoot . --typescriptDts ./dist/firestore/src/index.d.ts --rollupDts ./dist/private.d.ts --untrimmedRollupDts ./dist/internal.d.ts --publicDts ./dist/index.d.ts",
|
44 | "api-report:lite": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package firestore-lite --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",
|
45 | "api-report:api-json": "rm -rf temp && api-extractor run --local --verbose",
|
46 | "api-report": "run-s api-report:main api-report:lite && yarn api-report:api-json",
|
47 | "doc": "api-documenter markdown --input temp --output docs",
|
48 | "typings:public": "node ../../scripts/build/use_typings.js ./dist/index.d.ts"
|
49 | },
|
50 | "exports": {
|
51 | ".": {
|
52 | "types": "./dist/index.d.ts",
|
53 | "node": {
|
54 | "require": "./dist/index.node.cjs.js",
|
55 | "import": "./dist/index.node.mjs"
|
56 | },
|
57 | "react-native": "./dist/index.rn.js",
|
58 | "esm5": "./dist/index.esm5.js",
|
59 | "browser": {
|
60 | "require": "./dist/index.cjs.js",
|
61 | "import": "./dist/index.esm2017.js"
|
62 | },
|
63 | "default": "./dist/index.esm2017.js"
|
64 | },
|
65 | "./lite": {
|
66 | "types": "./dist/lite/index.d.ts",
|
67 | "node": {
|
68 | "require": "./dist/lite/index.node.cjs.js",
|
69 | "import": "./dist/lite/index.node.mjs"
|
70 | },
|
71 | "react-native": "./dist/lite/index.rn.esm2017.js",
|
72 | "esm5": "./dist/lite/index.browser.esm5.js",
|
73 | "browser": {
|
74 | "require": "./dist/lite/index.cjs.js",
|
75 | "import": "./dist/lite/index.browser.esm2017.js"
|
76 | },
|
77 | "default": "./dist/lite/index.browser.esm2017.js"
|
78 | },
|
79 | "./package.json": "./package.json"
|
80 | },
|
81 | "main": "dist/index.node.cjs.js",
|
82 | "main-esm": "dist/index.node.mjs",
|
83 | "react-native": "dist/index.rn.js",
|
84 | "browser": "dist/index.esm2017.js",
|
85 | "module": "dist/index.esm2017.js",
|
86 | "esm5": "dist/index.esm5.js",
|
87 | "license": "Apache-2.0",
|
88 | "files": [
|
89 | "dist",
|
90 | "lite/package.json"
|
91 | ],
|
92 | "dependencies": {
|
93 | "@firebase/component": "0.6.3",
|
94 | "@firebase/logger": "0.4.0",
|
95 | "@firebase/util": "1.9.2",
|
96 | "@firebase/webchannel-wrapper": "0.9.0",
|
97 | "@grpc/grpc-js": "~1.7.0",
|
98 | "@grpc/proto-loader": "^0.6.13",
|
99 | "node-fetch": "2.6.7",
|
100 | "tslib": "^2.1.0"
|
101 | },
|
102 | "peerDependencies": {
|
103 | "@firebase/app": "0.x"
|
104 | },
|
105 | "devDependencies": {
|
106 | "@firebase/app": "0.9.3",
|
107 | "@firebase/app-compat": "0.2.3",
|
108 | "@firebase/auth": "0.21.3",
|
109 | "@rollup/plugin-alias": "3.1.9",
|
110 | "@rollup/plugin-json": "4.1.0",
|
111 | "@types/eslint": "7.29.0",
|
112 | "@types/json-stable-stringify": "1.0.34",
|
113 | "chai-exclude": "2.1.0",
|
114 | "json-stable-stringify": "1.0.2",
|
115 | "protobufjs": "6.11.3",
|
116 | "rollup": "2.79.1",
|
117 | "rollup-plugin-copy": "3.4.0",
|
118 | "rollup-plugin-copy-assets": "2.0.3",
|
119 | "rollup-plugin-replace": "2.2.0",
|
120 | "rollup-plugin-sourcemaps": "0.6.3",
|
121 | "rollup-plugin-terser": "7.0.2",
|
122 | "rollup-plugin-typescript2": "0.31.2",
|
123 | "ts-node": "10.9.1",
|
124 | "typescript": "4.7.4"
|
125 | },
|
126 | "repository": {
|
127 | "directory": "packages/firestore",
|
128 | "type": "git",
|
129 | "url": "https://github.com/firebase/firebase-js-sdk.git"
|
130 | },
|
131 | "bugs": {
|
132 | "url": "https://github.com/firebase/firebase-js-sdk/issues"
|
133 | },
|
134 | "typings": "./dist/index.d.ts",
|
135 | "nyc": {
|
136 | "extension": [
|
137 | ".ts"
|
138 | ],
|
139 | "reportDir": "./coverage/node"
|
140 | }
|
141 | }
|