-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathpackage.json
More file actions
182 lines (182 loc) 路 12 KB
/
Copy pathpackage.json
File metadata and controls
182 lines (182 loc) 路 12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
"name": "react-native-firebase",
"private": true,
"scripts": {
"version": "node ./scripts/version.js",
"postinstallDev": "yarn prepare && yarn lerna:prepare && yarn ruby:install",
"ruby:install": "bash ./scripts/ruby-install.sh",
"prepare": "patch-package",
"lerna:prepare": "cross-env NX_NO_CLOUD=true NX_CACHE_DIRECTORY=.nx/cache NX_WORKSPACE_DATA_DIRECTORY=.nx/workspace-data lerna run prepare",
"lerna:clean": "lerna clean",
"build:all:clean": "lerna run build:clean",
"build:all:build": "lerna run build",
"test:functions:build": "cd .github/workflows/scripts/functions && yarn build",
"compare:types": "cd .github/scripts/compare-types && yarn install && yarn compare",
"attw:check": "cd .github/scripts/attw && yarn install && yarn check",
"codegen:all": "node ./scripts/codegen-package.mjs --all",
"codegen:verify": "node ./scripts/codegen-verify.mjs && git diff --exit-code -- 'packages/*/android/**/generated/**' 'packages/*/ios/generated/**'",
"lint": "yarn lint:js && yarn lint:deps && yarn lint:android && yarn lint:ios:check",
"lint:js": "eslint packages/* --max-warnings=0",
"lint:deps": "depcruise --config .dependency-cruiser.cjs packages",
"lint:android": "(find packages/*/android/src -name '*.java' -not -path '*/generated/*' ! -name 'ReactNativeFirebaseVersion.java' -print0 | xargs -0 google-java-format --set-exit-if-changed --replace || (echo \"\n\nandroid formatting error - please re-run\n\n\" && exit 1)) && (git diff --exit-code packages/*/android/src || (echo \"\n\nandroid files changed from linting, please examine and commit result\n\n\" && exit 1))",
"lint:ios:check": "find packages/*/ios -type f \\( -name '*.h' -o -name '*.cpp' -o -name '*.m' -o -name '*.mm' \\) -not -path '*/generated/*' -print0 | xargs -0 clang-format --style=Google -n -Werror",
"lint:ios:fix": "find packages/*/ios -type f \\( -name '*.h' -o -name '*.cpp' -o -name '*.m' -o -name '*.mm' \\) -not -path '*/generated/*' -print0 | xargs -0 clang-format -i --style=Google",
"lint:markdown": "eslint \"docs/**/*.mdx\" --max-warnings=0 && prettier --check \"docs/**/*.mdx\"",
"lint:report": "eslint --output-file=eslint-report.json --format=json . --ext .js,.jsx,.ts,.tsx",
"lint:spellcheck": "spellchecker --quiet --files=\"docs/**/*.{md,mdx}\" --dictionaries=\"./.spellcheck.dict.txt\" --reports=\"spelling.json\" --plugins spell indefinite-article repeated-words syntax-mentions syntax-urls frontmatter",
"tsc:compile": "tsc --project .",
"tsc:compile:consumer": "tsc --project tsconfig.consumer.json",
"lint:all": "yarn lint && yarn lint:markdown && yarn lint:spellcheck && yarn tsc:compile",
"test:full": "bash ./scripts/run-full-tests.sh",
"reference:api": "typedoc",
"reference:api:gh-pages": "typedoc --out apidocs-out --hostedBaseUrl https://reference.rnfirebase.io/ --useHostedBaseUrlForAbsoluteLinks",
"tests:ai:mocks": "yarn ts-node ./scripts/fetch_ai_mock_responses.ts && yarn ts-node ./packages/ai/__tests__/test-utils/convert-mocks.ts",
"tests:jest": "jest",
"tests:jest-watch": "jest --watch",
"tests:jest-coverage": "jest --coverage",
"tests:packager:chrome": "cd tests && yarn react-native start --reset-cache",
"tests:packager:jet": "bash ./scripts/e2e/start-packager.sh tests --client-logs",
"tests:packager:jet-ci": "bash ./scripts/e2e/start-packager.sh tests",
"tests:packager:jet-reset-cache": "bash ./scripts/e2e/start-packager.sh tests --reset-cache",
"tests:emulator:prepare": "cd .github/workflows/scripts/functions && yarn && yarn build",
"tests:emulator:start": "run-script-os",
"tests:emulator:start:default": "cd ./.github/workflows/scripts && ./start-firebase-emulator.sh",
"tests:emulator:start:windows": "yarn tests:emulator:prepare && cd ./.github/workflows/scripts && ./start-firebase-emulator.bat --no-daemon",
"tests:emulator:start-ci": "cd ./.github/workflows/scripts && ./start-firebase-emulator.sh",
"tests:android:build": "run-script-os",
"tests:android:build:default": "bash -c 'source ./scripts/e2e/lib/e2e-slot-env.sh && e2e_sanitize_serial_env && export ORG_GRADLE_PROJECT_reactNativeDevServerPort=\"${RNFB_ANDROID_METRO_PORT:-${RCT_METRO_PORT:-${RNFB_METRO_PORT:-${JET_METRO_PORT:-8081}}}}\" && cd tests && yarn detox build --configuration \"${RNFB_DETOX_ANDROID_CONFIG:-android.emu.debug}\"'",
"tests:android:build:windows": "cd tests && yarn detox build --configuration android.emu.debug.windows",
"tests:android:build:release": "cd tests && yarn detox build --configuration android.emu.release",
"tests:android:manual": "cd tests && yarn react-native run-android",
"tests:android:test": "bash -c 'source ./scripts/e2e/lib/e2e-slot-env.sh && e2e_sanitize_serial_env && e2e_assert_android_apk_metro_port && cd tests && yarn detox test --configuration \"${RNFB_DETOX_ANDROID_CONFIG:-android.emu.debug}\"'",
"tests:android:test:debug": "cd tests && yarn detox test --configuration android.emu.debug --inspect",
"tests:android:test-reuse": "cd tests && yarn detox test --configuration android.emu.debug --reuse",
"tests:android:test-cover": "bash -c 'source ./scripts/e2e/lib/e2e-slot-env.sh && e2e_sanitize_serial_env && e2e_assert_android_apk_metro_port && cd tests && yarn detox test --configuration \"${RNFB_DETOX_ANDROID_CONFIG:-android.emu.debug}\" --loglevel verbose'",
"tests:android:test-cover-reuse": "cd tests && yarn detox test --configuration android.emu.debug --reuse",
"tests:android:unit": "cd tests/android && ./gradlew rnfbDebugUnitTests",
"tests:android:pull-native-coverage": "node tests/scripts/pull-native-coverage.js --android-pull",
"tests:android:post-e2e-coverage": "node tests/scripts/pull-native-coverage.js --android-post-e2e",
"tests:android:test:jacoco-report": "cd tests/android && ./gradlew jacocoTestReport",
"tests:ios:build": "bash -c 'source ./scripts/e2e/lib/e2e-slot-env.sh && e2e_sanitize_serial_env && cd tests && yarn detox build --configuration \"${RNFB_DETOX_IOS_CONFIG:-ios.sim.debug}\"'",
"tests:ios:build:release": "cd tests && yarn detox build --configuration ios.sim.release",
"tests:ios:detox-framework-cache:rebuild": "cd tests && yarn detox rebuild-framework-cache",
"tests:ios:manual": "cd tests && SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=1 CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ yarn react-native run-ios",
"tests:ios:test": "cd tests && SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=1 yarn detox test --configuration ios.sim.debug --loglevel warn",
"tests:ios:test:release": "cd tests && SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=1 yarn detox test --configuration ios.sim.release --loglevel warn",
"tests:ios:test:debug": "cd tests && SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=1 yarn detox test --configuration ios.sim.debug --loglevel warn --inspect",
"tests:ios:test-reuse": "cd tests && SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=1 yarn detox test --configuration ios.sim.debug --reuse --loglevel warn",
"tests:ios:test-cover": "bash -c 'source ./scripts/e2e/lib/e2e-slot-env.sh && e2e_sanitize_serial_env && cd tests && SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=1 yarn detox test --configuration \"${RNFB_DETOX_IOS_CONFIG:-ios.sim.debug}\" --loglevel verbose'",
"tests:ios:test-cover-reuse": "cd tests && SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=1 yarn detox test --configuration ios.sim.debug --reuse --loglevel warn",
"tests:ios:test:process-coverage": "node tests/scripts/process-ios-native-coverage.js",
"tests:ios:test-cover-and-process": "yarn tests:ios:test-cover && yarn tests:ios:test:process-coverage",
"tests:ios:pod:install": "cd tests/ios && bundle exec pod install",
"test-expo:ios:link": "bash .github/workflows/scripts/test-expo-ios-link.sh",
"lint:ruby": "bundle exec rubocop --config packages/app/__tests__/.rubocop.yml packages/app/firebase_spm.rb packages/app/firebase_json.rb packages/app/__tests__",
"tests:ios:ruby": "yarn lint:ruby && bundle exec ruby packages/app/__tests__/run_with_coverage.rb",
"tests:macos:build": "bash -c 'source ./scripts/e2e/lib/e2e-slot-env.sh && e2e_sanitize_serial_env && cd tests-macos && yarn build:macos'",
"tests:macos:pod:install": "cd tests-macos/macos && bundle exec pod install",
"tests:macos:manual": "cd tests-macos && yarn react-native run-macos",
"tests:macos:packager:jet": "bash ./scripts/e2e/start-packager.sh tests-macos --client-logs",
"tests:macos:packager:jet-ci": "bash ./scripts/e2e/start-packager.sh tests-macos",
"tests:macos:packager:jet-reset-cache": "bash ./scripts/e2e/start-packager.sh tests-macos --reset-cache",
"tests:macos:test": "bash -c 'source ./scripts/e2e/lib/e2e-slot-env.sh && e2e_sanitize_serial_env && cd tests-macos && npx jet --target=macos --coverage'",
"tests:macos:test-cover": "bash -c 'source ./scripts/e2e/lib/e2e-slot-env.sh && e2e_sanitize_serial_env && cd tests-macos && npx jet --target=macos --coverage'",
"tests:e2e:setup-android-avds": "bash ./scripts/e2e/create-android-avds.sh",
"tests:e2e:setup-ios-sims": "bash ./scripts/e2e/create-ios-simulators.sh",
"tests:e2e:export-slot-env": "bash ./scripts/e2e/export-slot-env.sh",
"tests:e2e:clear-slot-env": "bash ./scripts/e2e/clear-slot-env.sh",
"tests:e2e:check": "bash ./scripts/e2e/check-e2e-resources.sh",
"tests:e2e:release": "bash ./scripts/e2e/release-e2e-resources.sh",
"format:js": "prettier --write \"packages/**/*.{js,ts,tsx}\"",
"format:markdown": "prettier --write \"docs/**/*.md[x]\""
},
"devDependencies": {
"@babel/core": "^7.29.0",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-transform-class-properties": "^7.28.6",
"@babel/preset-env": "^7.29.3",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^10.0.1",
"@firebase/rules-unit-testing": "^5.0.0",
"@inquirer/prompts": "^8.4.2",
"@octokit/core": "^7.0.6",
"@react-native-community/cli": "20.1.0",
"@react-native/jest-preset": "0.86.2",
"@tsconfig/node-lts": "^24.0.0",
"@types/react": "~19.2.14",
"@types/react-native": "^0.73.0",
"@typescript-eslint/parser": "^8.59.1",
"babel-jest": "^30.3.0",
"clang-format": "^1.8.0",
"conventional-changelog-cli": "^4.1.0",
"cross-env": "^10.1.0",
"dependency-cruiser": "^17.3.9",
"eslint": "^10.2.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-jest": "^29.15.2",
"eslint-plugin-mdx": "^3.7.0",
"eslint-plugin-mocha": "^11.2.0",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react": "^7.37.5",
"firebase": "^12.17.1",
"firebase-tools": "^15.22.4",
"genversion": "^3.2.0",
"google-java-format": "^2.3.0",
"jest": "^30.3.0",
"lerna": "^9.0.7",
"patch-package": "^8.0.1",
"prettier": "^3.8.3",
"regenerator-transform": "^0.15.2",
"rimraf": "^6.1.3",
"run-script-os": "^1.1.6",
"shelljs": "^0.10.0",
"spellchecker-cli": "^7.0.3",
"ts-jest": "^29.4.9",
"ts-node": "^10.9.2",
"typedoc": "^0.28.19",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.1"
},
"resolutions": {
"@types/react": "~19.2.0",
"mocha-remote-client@npm:^1.13.0": "patch:mocha-remote-client@npm%3A1.13.2#~/.yarn/patches/mocha-remote-client-npm-1.13.2-a2e7596aba.patch",
"mocha-remote-server@npm:^1.13.0": "patch:mocha-remote-server@npm%3A1.13.2#~/.yarn/patches/mocha-remote-server-npm-1.13.2-619a29d2e3.patch"
},
"workspaces": {
"packages": [
"packages/*",
"tests",
"tests-macos",
"test-expo"
]
},
"packageManager": "yarn@4.14.1",
"dependenciesMeta": {
"@firebase/util": {
"built": true
},
"detox": {
"built": true
},
"dtrace-provider": {
"built": true
},
"nx": {
"built": true
},
"postinstall-postinstall": {
"built": true
},
"protobufjs": {
"built": true
},
"re2": {
"built": true
},
"unrs-resolver": {
"built": true
}
}
}