package.json 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "name": "@firebase/database-compat",
  3. "version": "1.0.10",
  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. "license": "Apache-2.0",
  10. "typings": "dist/database-compat/src/index.d.ts",
  11. "files": [
  12. "dist",
  13. "standalone/package.json"
  14. ],
  15. "exports": {
  16. ".": {
  17. "types": "./dist/database-compat/src/index.d.ts",
  18. "node": {
  19. "types": "./dist/database-compat/src/index.node.d.ts",
  20. "import": "./dist/node-esm/index.js",
  21. "require": "./dist/index.js"
  22. },
  23. "browser": {
  24. "require": "./dist/index.js",
  25. "import": "./dist/index.esm2017.js"
  26. },
  27. "default": "./dist/index.esm2017.js"
  28. },
  29. "./standalone": {
  30. "types": "./dist/database-compat/src/index.standalone.d.ts",
  31. "node": "./dist/index.standalone.js",
  32. "default": "./dist/index.standalone.js"
  33. },
  34. "./package.json": "./package.json"
  35. },
  36. "scripts": {
  37. "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
  38. "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
  39. "prettier": "prettier --write '*.js' '*.ts' '@(src|test)/**/*.ts'",
  40. "build": "rollup -c rollup.config.js",
  41. "build:release": "yarn build && yarn add-compat-overloads",
  42. "build:deps": "lerna run --scope @firebase/database-compat --include-dependencies build",
  43. "dev": "rollup -c -w",
  44. "test": "run-p --npm-path npm lint test:browser test:node",
  45. "test:ci": "node ../../scripts/run_tests_in_ci.js -s test",
  46. "test:browser": "karma start",
  47. "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",
  48. "trusted-type-check": "tsec -p tsconfig.json --noEmit",
  49. "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"
  50. },
  51. "dependencies": {
  52. "@firebase/database": "1.0.9",
  53. "@firebase/database-types": "1.0.6",
  54. "@firebase/logger": "0.4.3",
  55. "@firebase/util": "1.10.1",
  56. "@firebase/component": "0.6.10",
  57. "tslib": "^2.1.0"
  58. },
  59. "devDependencies": {
  60. "@firebase/app-compat": "0.2.44",
  61. "typescript": "4.7.4"
  62. },
  63. "repository": {
  64. "directory": "packages/database-compat",
  65. "type": "git",
  66. "url": "git+https://github.com/firebase/firebase-js-sdk.git"
  67. },
  68. "bugs": {
  69. "url": "https://github.com/firebase/firebase-js-sdk/issues"
  70. }
  71. }