package.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {
  2. "name": "@firebase/firestore",
  3. "version": "3.13.0",
  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' 'test/unit/remote/bloom_filter_golden_test_data/*.json'",
  24. "test:lite": "ts-node ./scripts/run-tests.ts --emulator --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'",
  25. "test:lite:prod": "ts-node ./scripts/run-tests.ts --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 --targetBackend=emulator",
  34. "test:browser:emulator": "karma start --single-run --targetBackend=emulator",
  35. "test:browser:nightly": "karma start --single-run --targetBackend=nightly",
  36. "test:browser:prod": "karma start --single-run --targetBackend=prod",
  37. "test:browser:unit": "karma start --single-run --unit",
  38. "test:browser:debug": "karma start --browsers=Chrome --auto-watch",
  39. "test:node": "ts-node ./scripts/run-tests.ts --main=test/register.ts --emulator 'test/{,!(browser|lite)/**/}*.test.ts'",
  40. "test:node:prod": "ts-node ./scripts/run-tests.ts --main=test/register.ts 'test/{,!(browser|lite)/**/}*.test.ts'",
  41. "test:node:persistence": "ts-node ./scripts/run-tests.ts --main=test/register.ts --persistence --emulator 'test/{,!(browser|lite)/**/}*.test.ts'",
  42. "test:node:persistence:prod": "ts-node ./scripts/run-tests.ts --main=test/register.ts --persistence 'test/{,!(browser|lite)/**/}*.test.ts'",
  43. "test:travis": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/firestore-test-runner.ts",
  44. "test:minified": "(cd ../../integration/firestore ; yarn test)",
  45. "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",
  46. "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",
  47. "api-report:api-json": "rm -rf temp && api-extractor run --local --verbose",
  48. "api-report": "run-s api-report:main api-report:lite && yarn api-report:api-json",
  49. "doc": "api-documenter markdown --input temp --output docs",
  50. "typings:public": "node ../../scripts/build/use_typings.js ./dist/index.d.ts"
  51. },
  52. "exports": {
  53. ".": {
  54. "types": "./dist/index.d.ts",
  55. "node": {
  56. "require": "./dist/index.node.cjs.js",
  57. "import": "./dist/index.node.mjs"
  58. },
  59. "react-native": "./dist/index.rn.js",
  60. "esm5": "./dist/index.esm5.js",
  61. "browser": {
  62. "require": "./dist/index.cjs.js",
  63. "import": "./dist/index.esm2017.js"
  64. },
  65. "default": "./dist/index.esm2017.js"
  66. },
  67. "./lite": {
  68. "types": "./dist/lite/index.d.ts",
  69. "node": {
  70. "require": "./dist/lite/index.node.cjs.js",
  71. "import": "./dist/lite/index.node.mjs"
  72. },
  73. "react-native": "./dist/lite/index.rn.esm2017.js",
  74. "esm5": "./dist/lite/index.browser.esm5.js",
  75. "browser": {
  76. "require": "./dist/lite/index.cjs.js",
  77. "import": "./dist/lite/index.browser.esm2017.js"
  78. },
  79. "default": "./dist/lite/index.browser.esm2017.js"
  80. },
  81. "./package.json": "./package.json"
  82. },
  83. "main": "dist/index.node.cjs.js",
  84. "main-esm": "dist/index.node.mjs",
  85. "react-native": "dist/index.rn.js",
  86. "browser": "dist/index.esm2017.js",
  87. "module": "dist/index.esm2017.js",
  88. "esm5": "dist/index.esm5.js",
  89. "license": "Apache-2.0",
  90. "files": [
  91. "dist",
  92. "lite/package.json"
  93. ],
  94. "dependencies": {
  95. "@firebase/component": "0.6.4",
  96. "@firebase/logger": "0.4.0",
  97. "@firebase/util": "1.9.3",
  98. "@firebase/webchannel-wrapper": "0.10.1",
  99. "@grpc/grpc-js": "~1.7.0",
  100. "@grpc/proto-loader": "^0.6.13",
  101. "node-fetch": "2.6.7",
  102. "tslib": "^2.1.0"
  103. },
  104. "peerDependencies": {
  105. "@firebase/app": "0.x"
  106. },
  107. "devDependencies": {
  108. "@firebase/app": "0.9.13",
  109. "@firebase/app-compat": "0.2.13",
  110. "@firebase/auth": "0.23.2",
  111. "@rollup/plugin-alias": "3.1.9",
  112. "@rollup/plugin-json": "4.1.0",
  113. "@types/eslint": "7.29.0",
  114. "@types/json-stable-stringify": "1.0.34",
  115. "chai-exclude": "2.1.0",
  116. "json-stable-stringify": "1.0.2",
  117. "protobufjs": "6.11.3",
  118. "rollup": "2.79.1",
  119. "rollup-plugin-copy": "3.4.0",
  120. "rollup-plugin-copy-assets": "2.0.3",
  121. "rollup-plugin-replace": "2.2.0",
  122. "rollup-plugin-sourcemaps": "0.6.3",
  123. "rollup-plugin-terser": "7.0.2",
  124. "rollup-plugin-typescript2": "0.31.2",
  125. "ts-node": "10.9.1",
  126. "typescript": "4.7.4"
  127. },
  128. "repository": {
  129. "directory": "packages/firestore",
  130. "type": "git",
  131. "url": "https://github.com/firebase/firebase-js-sdk.git"
  132. },
  133. "bugs": {
  134. "url": "https://github.com/firebase/firebase-js-sdk/issues"
  135. },
  136. "typings": "./dist/index.d.ts",
  137. "nyc": {
  138. "extension": [
  139. ".ts"
  140. ],
  141. "reportDir": "./coverage/node"
  142. }
  143. }