package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "name": "@firebase/functions-compat",
  3. "version": "0.3.5",
  4. "description": "",
  5. "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
  6. "main": "dist/index.node.cjs.js",
  7. "browser": "dist/index.esm2017.js",
  8. "module": "dist/index.esm2017.js",
  9. "esm5": "dist/index.esm5.js",
  10. "exports": {
  11. ".": {
  12. "types": "./dist/src/index.d.ts",
  13. "node": {
  14. "import": "./dist/node-esm/index.node.esm.js",
  15. "require": "./dist/index.node.cjs.js"
  16. },
  17. "esm5": "./dist/index.esm5.js",
  18. "browser": {
  19. "require": "./dist/index.cjs.js",
  20. "import": "./dist/index.esm2017.js"
  21. },
  22. "default": "./dist/index.esm2017.js"
  23. },
  24. "./package.json": "./package.json"
  25. },
  26. "files": [
  27. "dist"
  28. ],
  29. "license": "Apache-2.0",
  30. "peerDependencies": {
  31. "@firebase/app-compat": "0.x"
  32. },
  33. "devDependencies": {
  34. "@firebase/app-compat": "0.2.11",
  35. "rollup": "2.79.1",
  36. "@rollup/plugin-json": "4.1.0",
  37. "rollup-plugin-typescript2": "0.31.2",
  38. "typescript": "4.7.4"
  39. },
  40. "repository": {
  41. "directory": "packages/functions-compat",
  42. "type": "git",
  43. "url": "https://github.com/firebase/firebase-js-sdk.git"
  44. },
  45. "bugs": {
  46. "url": "https://github.com/firebase/firebase-js-sdk/issues"
  47. },
  48. "scripts": {
  49. "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
  50. "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
  51. "build": "rollup -c",
  52. "build:deps": "lerna run --scope @firebase/functions-compat --include-dependencies build",
  53. "build:release": "rollup -c rollup.config.release.js && yarn add-compat-overloads",
  54. "dev": "rollup -c -w",
  55. "test": "run-p lint test:all",
  56. "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all",
  57. "test:all": "run-p test:browser test:node",
  58. "test:browser": "karma start --single-run",
  59. "test:browser:debug": "karma start --browsers=Chrome --auto-watch",
  60. "test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
  61. "test:emulator": "env FIREBASE_FUNCTIONS_HOST=http://localhost FIREBASE_FUNCTIONS_PORT=5005 run-p test:node",
  62. "add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../functions/dist/functions-public.d.ts -o dist/src/index.d.ts -a -r Functions:types.FirebaseFunctions -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/functions"
  63. },
  64. "typings": "dist/src/index.d.ts",
  65. "dependencies": {
  66. "@firebase/component": "0.6.4",
  67. "@firebase/functions": "0.10.0",
  68. "@firebase/functions-types": "0.6.0",
  69. "@firebase/util": "1.9.3",
  70. "tslib": "^2.1.0"
  71. },
  72. "nyc": {
  73. "extension": [
  74. ".ts"
  75. ],
  76. "reportDir": "./coverage/node"
  77. }
  78. }