1 | {
|
2 | "name": "@firebase/database",
|
3 | "version": "1.0.1",
|
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 | "standalone": "dist/index.standalone.js",
|
11 | "exports": {
|
12 | ".": {
|
13 | "types": "./dist/public.d.ts",
|
14 | "node": {
|
15 | "import": "./dist/node-esm/index.node.esm.js",
|
16 | "require": "./dist/index.node.cjs.js"
|
17 | },
|
18 | "esm5": "./dist/index.esm5.js",
|
19 | "standalone": "./dist/index.standalone.js",
|
20 | "browser": {
|
21 | "require": "./dist/index.cjs.js",
|
22 | "import": "./dist/index.esm2017.js"
|
23 | },
|
24 | "default": "./dist/index.esm2017.js"
|
25 | },
|
26 | "./package.json": "./package.json"
|
27 | },
|
28 | "files": [
|
29 | "dist"
|
30 | ],
|
31 | "scripts": {
|
32 | "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
33 | "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
34 | "prettier": "prettier --write '*.js' '*.ts' '@(src|test)/**/*.ts'",
|
35 | "build": "rollup -c rollup.config.js && yarn api-report",
|
36 | "build:deps": "lerna run --scope @firebase/'{app,database}' --include-dependencies build",
|
37 | "dev": "rollup -c -w",
|
38 | "test": "run-p lint test:emulator",
|
39 | "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:emulator",
|
40 | "test:all": "run-p lint test:browser test:node",
|
41 | "test:browser": "karma start --single-run",
|
42 | "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",
|
43 | "test:emulator": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/database-test-runner.ts",
|
44 | "api-report": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package database --packageRoot . --typescriptDts ./dist/src/index.d.ts --rollupDts ./dist/private.d.ts --untrimmedRollupDts ./dist/internal.d.ts --publicDts ./dist/public.d.ts && yarn api-report:api-json",
|
45 | "api-report:api-json": "rm -rf temp && api-extractor run --local --verbose",
|
46 | "doc": "api-documenter markdown --input temp --output docs",
|
47 | "typings:public": "node ../../scripts/build/use_typings.js ./dist/public.d.ts"
|
48 | },
|
49 | "license": "Apache-2.0",
|
50 | "peerDependencies": {},
|
51 | "dependencies": {
|
52 | "@firebase/logger": "0.4.0",
|
53 | "@firebase/util": "1.9.3",
|
54 | "@firebase/component": "0.6.4",
|
55 | "@firebase/auth-interop-types": "0.2.1",
|
56 | "faye-websocket": "0.11.4",
|
57 | "tslib": "^2.1.0"
|
58 | },
|
59 | "devDependencies": {
|
60 | "@firebase/app": "0.9.15",
|
61 | "rollup": "2.79.1",
|
62 | "rollup-plugin-typescript2": "0.31.2",
|
63 | "typescript": "4.7.4"
|
64 | },
|
65 | "repository": {
|
66 | "directory": "packages/database",
|
67 | "type": "git",
|
68 | "url": "https://github.com/firebase/firebase-js-sdk.git"
|
69 | },
|
70 | "bugs": {
|
71 | "url": "https://github.com/firebase/firebase-js-sdk/issues"
|
72 | },
|
73 | "typings": "./dist/public.d.ts",
|
74 | "nyc": {
|
75 | "extension": [
|
76 | ".ts"
|
77 | ],
|
78 | "reportDir": "./coverage/node"
|
79 | }
|
80 | }
|