1 | {
|
2 | "name": "@firebase/database",
|
3 | "version": "0.10.3",
|
4 | "description": "",
|
5 | "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
6 | "main": "dist/index.node.cjs.js",
|
7 | "browser": "dist/index.esm.js",
|
8 | "module": "dist/index.esm.js",
|
9 | "esm2017": "dist/index.esm2017.js",
|
10 | "files": [
|
11 | "dist"
|
12 | ],
|
13 | "scripts": {
|
14 | "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
15 | "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
16 | "prettier": "prettier --write '*.js' '*.ts' '@(exp|src|test)/**/*.ts'",
|
17 | "build": "run-p build:classic build:exp && yarn build:compat",
|
18 | "build:classic": "rollup -c rollup.config.js",
|
19 | "build:exp": "rollup -c rollup.config.exp.js && yarn api-report",
|
20 | "build:compat": "rollup -c rollup.config.compat.js && yarn add-compat-overloads",
|
21 | "build:exp:release": "yarn build:exp && yarn build:compat",
|
22 | "build:deps": "lerna run --scope @firebase/'{app,database}' --include-dependencies build",
|
23 | "dev": "rollup -c -w",
|
24 | "test": "run-p lint test:emulator",
|
25 | "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:emulator",
|
26 | "test:all": "run-p lint test:browser test:node",
|
27 | "test:browser": "karma start --single-run",
|
28 | "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 index.node.ts --config ../../config/mocharc.node.js",
|
29 | "test:emulator": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/database-test-runner.ts",
|
30 | "api-report": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package database --packageRoot . --typescriptDts ./dist/exp/exp/index.d.ts --rollupDts ./dist/exp/private.d.ts --untrimmedRollupDts ./dist/exp/internal.d.ts --publicDts ./dist/exp/index.d.ts && yarn api-report:api-json",
|
31 | "api-report:api-json": "rm -rf temp && api-extractor run --local --verbose",
|
32 | "predoc": "node ../../scripts/exp/remove-exp.js temp",
|
33 | "doc": "api-documenter markdown --input temp --output docs",
|
34 | "add-compat-overloads": "ts-node-script ../../scripts/exp/create-overloads.ts -i dist/exp/index.d.ts -o dist/compat/esm2017/compat/index.d.ts -a -r FirebaseDatabase:types.FirebaseDatabase -r Query:types.Query -r Reference:types.Reference -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/database"
|
35 | },
|
36 | "license": "Apache-2.0",
|
37 | "peerDependencies": {},
|
38 | "dependencies": {
|
39 | "@firebase/database-types": "0.7.2",
|
40 | "@firebase/logger": "0.2.6",
|
41 | "@firebase/util": "1.1.0",
|
42 | "@firebase/component": "0.5.1",
|
43 | "@firebase/auth-interop-types": "0.1.6",
|
44 | "faye-websocket": "0.11.3",
|
45 | "tslib": "^2.1.0"
|
46 | },
|
47 | "devDependencies": {
|
48 | "@firebase/app": "0.6.23",
|
49 | "@firebase/app-types": "0.6.2",
|
50 | "rollup": "2.35.1",
|
51 | "rollup-plugin-typescript2": "0.29.0",
|
52 | "typescript": "4.2.2"
|
53 | },
|
54 | "repository": {
|
55 | "directory": "packages/database",
|
56 | "type": "git",
|
57 | "url": "https://github.com/firebase/firebase-js-sdk.git"
|
58 | },
|
59 | "bugs": {
|
60 | "url": "https://github.com/firebase/firebase-js-sdk/issues"
|
61 | },
|
62 | "typings": "dist/index.d.ts",
|
63 | "nyc": {
|
64 | "extension": [
|
65 | ".ts"
|
66 | ],
|
67 | "reportDir": "./coverage/node"
|
68 | }
|
69 | }
|