package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "@firebase/database-compat",
  3. "version": "0.3.4",
  4. "description": "The Realtime Database component of the Firebase JS SDK.",
  5. "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
  6. "main": "dist/index.js",
  7. "browser": "dist/index.esm2017.js",
  8. "module": "dist/index.esm2017.js",
  9. "esm5": "dist/index.esm5.js",
  10. "license": "Apache-2.0",
  11. "typings": "dist/database-compat/src/index.d.ts",
  12. "files": [
  13. "dist",
  14. "standalone/package.json"
  15. ],
  16. "exports": {
  17. ".": {
  18. "types": "./dist/database-compat/src/index.d.ts",
  19. "node": {
  20. "types": "./dist/database-compat/src/index.node.d.ts",
  21. "import": "./dist/node-esm/index.js",
  22. "require": "./dist/index.js"
  23. },
  24. "esm5": "./dist/index.esm5.js",
  25. "browser": {
  26. "require": "./dist/index.js",
  27. "import": "./dist/index.esm2017.js"
  28. },
  29. "default": "./dist/index.esm2017.js"
  30. },
  31. "./standalone": {
  32. "types": "./dist/database-compat/src/index.standalone.d.ts",
  33. "node": "./dist/index.standalone.js",
  34. "default": "./dist/index.standalone.js"
  35. },
  36. "./package.json": "./package.json"
  37. },
  38. "scripts": {
  39. "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
  40. "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
  41. "prettier": "prettier --write '*.js' '*.ts' '@(src|test)/**/*.ts'",
  42. "build": "rollup -c rollup.config.js",
  43. "build:release": "yarn build && yarn add-compat-overloads",
  44. "build:deps": "lerna run --scope @firebase/database-compat --include-dependencies build",
  45. "dev": "rollup -c -w",
  46. "test": "run-p lint test:browser test:node",
  47. "test:ci": "node ../../scripts/run_tests_in_ci.js -s test",
  48. "test:browser": "karma start --single-run",
  49. "test:node": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
  50. "add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../database/dist/public.d.ts -o dist/database-compat/src/index.d.ts -a -r Database:types.FirebaseDatabase -r Query:types.Query -r DatabaseReference:types.Reference -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/database"
  51. },
  52. "dependencies": {
  53. "@firebase/database": "0.14.4",
  54. "@firebase/database-types": "0.10.4",
  55. "@firebase/logger": "0.4.0",
  56. "@firebase/util": "1.9.3",
  57. "@firebase/component": "0.6.4",
  58. "tslib": "^2.1.0"
  59. },
  60. "devDependencies": {
  61. "@firebase/app-compat": "0.2.4",
  62. "typescript": "4.7.4"
  63. },
  64. "repository": {
  65. "directory": "packages/database-compat",
  66. "type": "git",
  67. "url": "https://github.com/firebase/firebase-js-sdk.git"
  68. },
  69. "bugs": {
  70. "url": "https://github.com/firebase/firebase-js-sdk/issues"
  71. }
  72. }