package.json 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "name": "@firebase/functions",
  3. "version": "0.10.0",
  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.esm.js",
  10. "exports": {
  11. ".": {
  12. "types": "./dist/functions-public.d.ts",
  13. "node": {
  14. "import": "./dist/esm-node/index.node.esm.js",
  15. "require": "./dist/index.node.cjs.js"
  16. },
  17. "esm5": "./dist/index.esm.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. "scripts": {
  30. "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
  31. "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
  32. "build": "rollup -c && yarn api-report",
  33. "build:deps": "lerna run --scope @firebase/functions --include-dependencies build",
  34. "build:release": "rollup -c rollup.config.release.js && yarn api-report",
  35. "dev": "rollup -c -w",
  36. "test": "run-p lint test:all",
  37. "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all",
  38. "test:all": "run-p test:browser test:node",
  39. "test:browser": "karma start --single-run",
  40. "test:browser:debug": "karma start --browsers=Chrome --auto-watch",
  41. "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",
  42. "test:emulator": "env FIREBASE_FUNCTIONS_EMULATOR_ORIGIN=http://localhost:5005 run-p test:node",
  43. "api-report": "api-extractor run --local --verbose",
  44. "doc": "api-documenter markdown --input temp --output docs",
  45. "build:doc": "yarn build && yarn doc",
  46. "typings:public": "node ../../scripts/build/use_typings.js ./dist/functions-public.d.ts"
  47. },
  48. "license": "Apache-2.0",
  49. "peerDependencies": {
  50. "@firebase/app": "0.x"
  51. },
  52. "devDependencies": {
  53. "@firebase/app": "0.9.11",
  54. "rollup": "2.79.1",
  55. "@rollup/plugin-json": "4.1.0",
  56. "rollup-plugin-typescript2": "0.31.2",
  57. "typescript": "4.7.4"
  58. },
  59. "repository": {
  60. "directory": "packages/functions",
  61. "type": "git",
  62. "url": "https://github.com/firebase/firebase-js-sdk.git"
  63. },
  64. "bugs": {
  65. "url": "https://github.com/firebase/firebase-js-sdk/issues"
  66. },
  67. "typings": "./dist/functions-public.d.ts",
  68. "dependencies": {
  69. "@firebase/component": "0.6.4",
  70. "@firebase/messaging-interop-types": "0.2.0",
  71. "@firebase/auth-interop-types": "0.2.1",
  72. "@firebase/app-check-interop-types": "0.3.0",
  73. "@firebase/util": "1.9.3",
  74. "node-fetch": "2.6.7",
  75. "tslib": "^2.1.0"
  76. },
  77. "nyc": {
  78. "extension": [
  79. ".ts"
  80. ],
  81. "reportDir": "./coverage/node"
  82. }
  83. }