package.json 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {
  2. "name": "@firebase/auth",
  3. "version": "0.23.2",
  4. "description": "The Firebase Authenticaton component of the Firebase JS SDK.",
  5. "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
  6. "main": "dist/node/index.js",
  7. "react-native": "dist/rn/index.js",
  8. "browser": "dist/esm2017/index.js",
  9. "module": "dist/esm2017/index.js",
  10. "cordova": "dist/cordova/index.js",
  11. "webworker": "dist/index.webworker.esm5.js",
  12. "esm5": "dist/esm5/index.js",
  13. "exports": {
  14. ".": {
  15. "types": "./dist/auth-public.d.ts",
  16. "node": {
  17. "types": "./dist/node/index.d.ts",
  18. "import": "./dist/node-esm/index.js",
  19. "require": "./dist/node/index.js"
  20. },
  21. "react-native": {
  22. "types": "./dist/rn/index.rn.d.ts",
  23. "default": "./dist/rn/index.js"
  24. },
  25. "cordova": {
  26. "types": "./dist/cordova/index.cordova.d.ts",
  27. "default": "./dist/cordova/index.js"
  28. },
  29. "webworker": {
  30. "types": "./dist/index.webworker.d.ts",
  31. "default": "./dist/index.webworker.esm5.js"
  32. },
  33. "esm5": "./dist/esm5/index.js",
  34. "browser": {
  35. "require": "./dist/browser-cjs/index.js",
  36. "import": "./dist/esm2017/index.js"
  37. },
  38. "default": "./dist/esm2017/index.js"
  39. },
  40. "./cordova": {
  41. "types": "./dist/cordova/index.cordova.d.ts",
  42. "default": "./dist/cordova/index.js"
  43. },
  44. "./react-native": {
  45. "types": "./dist/rn/index.rn.d.ts",
  46. "default": "./dist/rn/index.js"
  47. },
  48. "./internal": {
  49. "types": "./dist/internal/index.d.ts",
  50. "node": {
  51. "types": "./dist/node/internal/index.d.ts",
  52. "import": "./dist/node-esm/internal.js",
  53. "require": "./dist/node/internal.js"
  54. },
  55. "react-native": {
  56. "types": "./dist/rn/internal/index.d.ts",
  57. "default": "./dist/rn/internal.js"
  58. },
  59. "cordova": {
  60. "types": "./dist/cordova/internal/index.d.ts",
  61. "default": "./dist/cordova/internal.js"
  62. },
  63. "esm5": "./dist/esm5/internal.js",
  64. "browser": {
  65. "require": "./dist/browser-cjs/internal.js",
  66. "import": "./dist/esm2017/internal.js"
  67. },
  68. "default": "./dist/esm2017/internal.js"
  69. },
  70. "./package.json": "./package.json"
  71. },
  72. "files": [
  73. "dist",
  74. "cordova/package.json",
  75. "internal/package.json",
  76. "react-native/package.json"
  77. ],
  78. "scripts": {
  79. "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
  80. "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
  81. "build": "rollup -c && yarn api-report",
  82. "build:deps": "lerna run --scope @firebase/auth --include-dependencies build",
  83. "build:release": "yarn build && yarn typings:public",
  84. "build:scripts": "tsc -moduleResolution node --module commonjs scripts/*.ts && ls scripts/*.js | xargs -I % sh -c 'terser % -o %'",
  85. "dev": "rollup -c -w",
  86. "test": "run-p lint test:all",
  87. "test:all": "run-p test:browser:unit test:node:unit test:integration test:browser:integration:prodbackend",
  88. "test:integration": "firebase emulators:exec --project emulatedproject --only auth \"run-s test:browser:integration:local test:node:integration:local test:webdriver\"",
  89. "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all",
  90. "test:integration:local": "run-s test:node:integration:local test:browser:integration:local test:webdriver",
  91. "test:browser": "karma start --single-run --local",
  92. "test:browser:unit": "karma start --single-run --unit",
  93. "test:browser:integration": "karma start --single-run --integration",
  94. "test:browser:integration:local": "karma start --single-run --integration --local",
  95. "test:browser:integration:prodbackend": "karma start --single-run --integration --prodbackend",
  96. "test:browser:debug": "karma start --auto-watch",
  97. "test:browser:unit:debug": "karma start --auto-watch --unit",
  98. "test:cordova": "karma start --single-run --cordova",
  99. "test:cordova:debug": "karma start --auto-watch --cordova",
  100. "test:node": "run-s test:node:unit test:node:integration:local",
  101. "test:node:unit": "ts-node -O '{\"module\": \"commonjs\", \"target\": \"es6\"}' scripts/run_node_tests.ts",
  102. "test:node:integration": "ts-node -O '{\"module\": \"commonjs\", \"target\": \"es6\"}' scripts/run_node_tests.ts --integration",
  103. "test:node:integration:local": "ts-node -O '{\"module\": \"commonjs\", \"target\": \"es6\"}' scripts/run_node_tests.ts --integration --local",
  104. "test:webdriver": "rollup -c test/integration/webdriver/static/rollup.config.js && ts-node -O '{\"module\": \"commonjs\", \"target\": \"es6\"}' scripts/run_node_tests.ts --webdriver",
  105. "api-report": "api-extractor run --local --verbose",
  106. "doc": "api-documenter markdown --input temp --output docs",
  107. "build:doc": "yarn build && yarn doc",
  108. "typings:public": "node ../../scripts/build/use_typings.js ./dist/auth-public.d.ts"
  109. },
  110. "peerDependencies": {
  111. "@firebase/app": "0.x"
  112. },
  113. "dependencies": {
  114. "@firebase/component": "0.6.4",
  115. "@firebase/logger": "0.4.0",
  116. "@firebase/util": "1.9.3",
  117. "node-fetch": "2.6.7",
  118. "tslib": "^2.1.0"
  119. },
  120. "license": "Apache-2.0",
  121. "devDependencies": {
  122. "@firebase/app": "0.9.10",
  123. "@rollup/plugin-json": "4.1.0",
  124. "@rollup/plugin-strip": "2.1.0",
  125. "chromedriver": "98.0.1",
  126. "rollup": "2.79.1",
  127. "rollup-plugin-sourcemaps": "0.6.3",
  128. "rollup-plugin-typescript2": "0.31.2",
  129. "selenium-webdriver": "4.8.0",
  130. "typescript": "4.7.4",
  131. "@types/express": "4.17.17",
  132. "totp-generator": "0.0.14"
  133. },
  134. "repository": {
  135. "directory": "packages/auth",
  136. "type": "git",
  137. "url": "https://github.com/firebase/firebase-js-sdk.git"
  138. },
  139. "bugs": {
  140. "url": "https://github.com/firebase/firebase-js-sdk/issues"
  141. },
  142. "typings": "./dist/auth-public.d.ts",
  143. "nyc": {
  144. "extension": [
  145. ".ts"
  146. ],
  147. "reportDir": "./coverage/node"
  148. }
  149. }