184 lines
9.6 KiB
JSON
184 lines
9.6 KiB
JSON
{
|
|
"name": "@firebase/firestore",
|
|
"version": "4.12.0",
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"description": "The Cloud Firestore component of the Firebase JS SDK.",
|
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
"scripts": {
|
|
"bundle": "rollup -c",
|
|
"compile": "tsc --emitDeclarationOnly --declaration -p tsconfig.json",
|
|
"prebuild": "tsc --emitDeclarationOnly --declaration -p tsconfig.json; yarn api-report",
|
|
"build": "run-p --npm-path npm build:lite build:main",
|
|
"build:release": "yarn build && yarn typings:public",
|
|
"build:scripts": "tsc -moduleResolution node --module commonjs scripts/*.ts && ls scripts/*.js | xargs -I % sh -c 'terser % -o %'",
|
|
"build:deps": "lerna run --scope @firebase/firestore --include-dependencies build",
|
|
"build:main": "rollup -c rollup.config.js",
|
|
"build:lite": "rollup -c rollup.config.lite.js",
|
|
"build:debug": "rollup -c rollup.config.debug.js",
|
|
"predev": "yarn prebuild",
|
|
"dev": "rollup -c -w",
|
|
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
|
"lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
|
"prettier": "prettier --write '*.js' '@(lite|src|test|scripts)/**/*.ts' 'test/unit/remote/bloom_filter_golden_test_data/*.json'",
|
|
"test:lite": "ts-node ./scripts/run-tests.ts --emulator --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'",
|
|
"test:lite:prod": "ts-node ./scripts/run-tests.ts --platform node_lite --main=lite/index.ts 'test/lite/**/*.test.ts'",
|
|
"test:lite:prod:nameddb": "ts-node ./scripts/run-tests.ts --platform node_lite --databaseId=test-db --main=lite/index.ts 'test/lite/**/*.test.ts'",
|
|
"test:lite:browser": "karma start --lite",
|
|
"test:lite:browser:nameddb": "karma start --lite --databaseId=test-db",
|
|
"test:lite:browser:debug": "karma start --browsers=Chrome --lite --auto-watch",
|
|
"test": "run-s --npm-path npm lint assertion-id:check test:all",
|
|
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all:ci",
|
|
"test:all:ci": "run-s --npm-path npm test:browser test:travis test:lite:browser test:browser:prod:nameddb test:lite:browser:nameddb",
|
|
"test:all": "run-p --npm-path npm test:browser test:lite:browser test:travis test:minified test:browser:prod:nameddb test:lite:browser:nameddb",
|
|
"test:browser": "karma start",
|
|
"test:browser:emulator:debug": "karma start --browsers=Chrome --targetBackend=emulator",
|
|
"test:browser:emulator": "karma start --targetBackend=emulator",
|
|
"test:browser:nightly": "karma start --targetBackend=nightly",
|
|
"test:browser:prod": "karma start --targetBackend=prod",
|
|
"test:webkit:prod": "BROWSERS=WebkitHeadless karma start --targetBackend=prod",
|
|
"test:webkit:unit": "BROWSERS=WebkitHeadless karma start --unit --targetBackend=prod",
|
|
"test:browser:prod:nameddb": "karma start --targetBackend=prod --databaseId=test-db",
|
|
"test:browser:unit": "karma start --unit",
|
|
"test:browser:debug": "karma start --browsers=Chrome --auto-watch",
|
|
"test:node": "ts-node ./scripts/run-tests.ts --main=test/register.ts --emulator 'test/{,!(browser|lite)/**/}*.test.ts'",
|
|
"test:node:prod": "ts-node ./scripts/run-tests.ts --main=test/register.ts 'test/{,!(browser|lite)/**/}*.test.ts'",
|
|
"test:node:prod:nameddb": "ts-node ./scripts/run-tests.ts --main=test/register.ts --databaseId=test-db 'test/{,!(browser|lite)/**/}*.test.ts'",
|
|
"test:node:persistence": "ts-node ./scripts/run-tests.ts --main=test/register.ts --persistence --emulator 'test/{,!(browser|lite)/**/}*.test.ts'",
|
|
"test:node:persistence:prod": "ts-node ./scripts/run-tests.ts --main=test/register.ts --persistence 'test/{,!(browser|lite)/**/}*.test.ts'",
|
|
"test:travis": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/firestore-test-runner.ts",
|
|
"test:minified": "(cd ../../integration/firestore ; yarn test)",
|
|
"trusted-type-check": "tsec -p tsconfig.json --noEmit",
|
|
"api-report:main": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package firestore --packageRoot . --typescriptDts ./dist/firestore/src/index.d.ts --rollupDts ./dist/private.d.ts --untrimmedRollupDts ./dist/internal.d.ts --publicDts ./dist/index.d.ts",
|
|
"api-report:pipelines": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package firestore-pipelines --packageRoot . --typescriptDts ./dist/firestore/pipelines/pipelines.d.ts --rollupDts ./dist/private.pipelines.d.ts --untrimmedRollupDts ./dist/internal.pipelines.d.ts --publicDts ./dist/pipelines.d.ts --otherExportsPublicDtsFiles ./dist/index.d.ts --excludeForgottenExportWarning",
|
|
"api-report:lite": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package firestore-lite --packageRoot . --typescriptDts ./dist/firestore/lite/index.d.ts --rollupDts ./dist/lite/private.d.ts --untrimmedRollupDts ./dist/lite/internal.d.ts --publicDts ./dist/lite/index.d.ts",
|
|
"api-report:lite:pipelines": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package firestore-lite-pipelines --packageRoot . --typescriptDts ./dist/firestore/lite/pipelines/pipelines.d.ts --rollupDts ./dist/lite/private.pipelines.d.ts --untrimmedRollupDts ./dist/lite/internal.pipelines.d.ts --publicDts ./dist/lite/pipelines.d.ts --otherExportsPublicDtsFiles ./dist/lite/index.d.ts --excludeForgottenExportWarning",
|
|
"api-report:api-json": "rm -rf temp && api-extractor run --local --verbose",
|
|
"api-report": "run-s --npm-path npm api-report:main api-report:pipelines api-report:lite api-report:lite:pipelines && yarn api-report:api-json",
|
|
"doc": "api-documenter markdown --input temp --output docs",
|
|
"typings:public": "node ../../scripts/build/use_typings.js ./dist/index.d.ts",
|
|
"assertion-id:check": "ts-node scripts/assertion-id-tool.ts --dir=src --check",
|
|
"assertion-id:new": "ts-node scripts/assertion-id-tool.ts --dir=src --new",
|
|
"assertion-id:list": "ts-node scripts/assertion-id-tool.ts --dir=src --list",
|
|
"assertion-id:find": "ts-node scripts/assertion-id-tool.ts --dir=src --find"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"node": {
|
|
"require": "./dist/index.node.cjs.js",
|
|
"import": "./dist/index.node.mjs"
|
|
},
|
|
"react-native": "./dist/index.rn.js",
|
|
"browser": {
|
|
"require": "./dist/index.cjs.js",
|
|
"import": "./dist/index.esm.js"
|
|
},
|
|
"default": "./dist/index.esm.js"
|
|
},
|
|
"./lite": {
|
|
"types": "./dist/lite/index.d.ts",
|
|
"node": {
|
|
"require": "./dist/lite/index.node.cjs.js",
|
|
"import": "./dist/lite/index.node.mjs"
|
|
},
|
|
"react-native": "./dist/lite/index.rn.esm.js",
|
|
"browser": {
|
|
"require": "./dist/lite/index.browser.cjs.js",
|
|
"import": "./dist/lite/index.browser.esm.js"
|
|
},
|
|
"default": "./dist/lite/index.browser.esm.js"
|
|
},
|
|
"./lite/pipelines": {
|
|
"types": "./dist/lite/pipelines.d.ts",
|
|
"node": {
|
|
"require": "./dist/lite/pipelines.node.cjs.js",
|
|
"import": "./dist/lite/pipelines.node.mjs"
|
|
},
|
|
"react-native": "./dist/lite/pipelines.rn.esm.js",
|
|
"browser": {
|
|
"require": "./dist/lite/pipelines.browser.cjs.js",
|
|
"import": "./dist/lite/pipelines.browser.esm.js"
|
|
},
|
|
"default": "./dist/lite/pipelines.browser.esm.js"
|
|
},
|
|
"./pipelines": {
|
|
"types": "./pipelines/pipelines.d.ts",
|
|
"node": {
|
|
"require": "./dist/pipelines.node.cjs.js",
|
|
"import": "./dist/pipelines.node.mjs"
|
|
},
|
|
"react-native": "./dist/index.rn.js",
|
|
"browser": {
|
|
"require": "./dist/pipelines.cjs.js",
|
|
"import": "./dist/pipelines.esm.js"
|
|
},
|
|
"default": "./dist/pipelines.esm.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"main": "dist/index.node.cjs.js",
|
|
"main-esm": "dist/index.node.mjs",
|
|
"react-native": "dist/index.rn.js",
|
|
"browser": "dist/index.esm.js",
|
|
"module": "dist/index.esm.js",
|
|
"license": "Apache-2.0",
|
|
"files": [
|
|
"dist",
|
|
"lite/package.json",
|
|
"pipelines/package.json",
|
|
"pipelines/pipelines.d.ts",
|
|
"lite/pipelines/package.json",
|
|
"lite/pipelines/pipelines.d.ts"
|
|
],
|
|
"dependencies": {
|
|
"@firebase/component": "0.7.1",
|
|
"@firebase/logger": "0.5.0",
|
|
"@firebase/util": "1.14.0",
|
|
"@firebase/webchannel-wrapper": "1.0.5",
|
|
"@grpc/grpc-js": "~1.9.0",
|
|
"@grpc/proto-loader": "^0.7.8",
|
|
"tslib": "^2.1.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@firebase/app": "0.x"
|
|
},
|
|
"devDependencies": {
|
|
"@firebase/app": "0.14.9",
|
|
"@firebase/app-compat": "0.5.9",
|
|
"@firebase/auth": "1.12.1",
|
|
"@rollup/plugin-alias": "5.1.1",
|
|
"@rollup/plugin-json": "6.1.0",
|
|
"@types/eslint": "7.29.0",
|
|
"chai-exclude": "2.1.1",
|
|
"json-stable-stringify": "1.2.1",
|
|
"protobufjs": "7.4.0",
|
|
"rollup": "2.79.2",
|
|
"rollup-plugin-copy": "3.5.0",
|
|
"rollup-plugin-copy-assets": "2.0.3",
|
|
"rollup-plugin-replace": "2.2.0",
|
|
"rollup-plugin-sourcemaps": "0.6.3",
|
|
"@rollup/plugin-terser": "0.4.4",
|
|
"rollup-plugin-typescript2": "0.36.0",
|
|
"rollup-plugin-dts": "5.3.1",
|
|
"ts-node": "10.9.2",
|
|
"typescript": "5.5.4"
|
|
},
|
|
"repository": {
|
|
"directory": "packages/firestore",
|
|
"type": "git",
|
|
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/firebase/firebase-js-sdk/issues"
|
|
},
|
|
"typings": "./dist/index.d.ts",
|
|
"nyc": {
|
|
"extension": [
|
|
".ts"
|
|
],
|
|
"reportDir": "./coverage/node"
|
|
}
|
|
}
|