UNPKG

7.35 kBJSONView Raw
1{
2 "name": "react-native-reanimated",
3 "version": "3.12.1",
4 "description": "More powerful alternative to Animated library for React Native.",
5 "scripts": {
6 "test": "yarn run format:js && yarn run lint:js && yarn run test:unit",
7 "test:unit": "jest",
8 "test:update-snapshot": "jest --updateSnapshot",
9 "test-eslint-plugin": "jest __tests__/eslintPlugin/",
10 "lint": "yarn lint:js && yarn lint:plugin && yarn lint:cpp && yarn lint:java && yarn lint:ios",
11 "lint:js": "eslint --ext '.js,.ts,.tsx' src __tests__ __typetests__ && yarn prettier --check src __tests__ __typetests__",
12 "lint:plugin": "cd plugin && yarn lint && cd ..",
13 "lint:docs": "cd docs && yarn lint && cd ..",
14 "lint:java": "./android/gradlew -p android spotlessCheck -q",
15 "lint:cpp": "./scripts/cpplint.sh",
16 "lint:ios": "./scripts/validate-ios.sh && yarn format:ios --dry-run",
17 "format": "yarn format:js && yarn format:plugin && yarn format:java && yarn format:ios && yarn format:android && yarn format:common",
18 "format:js": "prettier --write --list-different src __tests__ __typetests__",
19 "format:plugin": "cd plugin && yarn format && cd ..",
20 "format:java": "node ./scripts/format-java.js",
21 "format:ios": "find apple/ -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.mm\" -o -iname \"*.cpp\" | xargs clang-format -i --Werror",
22 "format:android": "find android/src/ -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i",
23 "format:common": "find Common/ -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i",
24 "format:docs": "cd docs && yarn format && cd ..",
25 "find-unused-code:js": "yarn ts-prune --ignore \"index|.web.\" --error ",
26 "type:check:src": "yarn tsc --noEmit",
27 "type:check:plugin": "cd plugin && yarn type:check:src && cd ..",
28 "type:check:app": "./scripts/test-ts.sh app/src/App.tsx",
29 "type:check:tests:common": "./scripts/test-ts.sh __typetests__/common",
30 "type:check:tests:0.72+": "./scripts/test-ts.sh __typetests__/0.72+",
31 "type:check:tests:legacy": "./scripts/test-ts.sh __typetests__/legacy",
32 "type:check:all": "yarn type:check:src && yarn type:check:plugin && ./scripts/test-ts.sh app/src/App.tsx __typetests__/common __typetests__/0.72+ __typetests__/legacy",
33 "build": "yarn build:plugin && bob build && husky install && yarn build:app",
34 "build:app": "cd app && yarn install && yarn build",
35 "build:plugin": "cd plugin && yarn install && yarn build",
36 "circular_dependency_check": "yarn madge --extensions js,ts,tsx --circular src lib",
37 "use_strict_check": "node ./scripts/validate-use-strict.js"
38 },
39 "main": "lib/module/index",
40 "module": "lib/module/index",
41 "react-native": "src/index",
42 "source": "src/index",
43 "types": "lib/typescript/index",
44 "files": [
45 "Common/",
46 "src/",
47 "lib/",
48 "android/src/main/AndroidManifest.xml",
49 "android/src/main/java/",
50 "android/build.gradle",
51 "android/",
52 "apple/",
53 "RNReanimated.podspec",
54 "scripts/reanimated_utils.rb",
55 "mock.js",
56 "plugin/index.js",
57 "plugin/build/plugin.js",
58 "!**/__tests__",
59 "!**/__fixtures__",
60 "!**/__mocks__",
61 "!apple/build/",
62 "!android/build/",
63 "!android/.cxx/",
64 "!android/.gradle/",
65 "!__snapshots__",
66 "!*.test.js",
67 "!*.test.js.map",
68 "!**/node_modules"
69 ],
70 "repository": {
71 "type": "git",
72 "url": "git+https://github.com/software-mansion/react-native-reanimated.git"
73 },
74 "author": {
75 "email": "krzys.magiera@gmail.com",
76 "name": "Krzysztof Magiera"
77 },
78 "license": "MIT",
79 "readmeFilename": "README.md",
80 "bugs": {
81 "url": "https://github.com/software-mansion/react-native-reanimated/issues"
82 },
83 "homepage": "https://github.com/software-mansion/react-native-reanimated#readme",
84 "dependencies": {
85 "@babel/plugin-transform-arrow-functions": "^7.0.0-0",
86 "@babel/plugin-transform-nullish-coalescing-operator": "^7.0.0-0",
87 "@babel/plugin-transform-optional-chaining": "^7.0.0-0",
88 "@babel/plugin-transform-shorthand-properties": "^7.0.0-0",
89 "@babel/plugin-transform-template-literals": "^7.0.0-0",
90 "@babel/preset-typescript": "^7.16.7",
91 "convert-source-map": "^2.0.0",
92 "invariant": "^2.2.4"
93 },
94 "peerDependencies": {
95 "@babel/core": "^7.0.0-0",
96 "react": "*",
97 "react-native": "*"
98 },
99 "devDependencies": {
100 "@babel/cli": "^7.20.0",
101 "@babel/core": "^7.20.0",
102 "@babel/preset-env": "^7.20.0",
103 "@babel/types": "^7.20.0",
104 "@react-native/babel-preset": "0.74.81",
105 "@react-native/eslint-config": "0.74.81",
106 "@react-native/metro-config": "0.74.81",
107 "@react-native/typescript-config": "0.74.81",
108 "@testing-library/jest-native": "^4.0.4",
109 "@testing-library/react-hooks": "^8.0.0",
110 "@testing-library/react-native": "^7.1.0",
111 "@types/babel__core": "^7.20.0",
112 "@types/babel__generator": "^7.6.4",
113 "@types/babel__traverse": "^7.14.2",
114 "@types/convert-source-map": "^2.0.0",
115 "@types/invariant": "^2.2.35",
116 "@types/jest": "^29.0.0",
117 "@types/node": "^18.0.0",
118 "@types/react": "^18.0.26",
119 "@types/react-test-renderer": "^17.0.0-0",
120 "@typescript-eslint/eslint-plugin": "^6.19.0",
121 "@typescript-eslint/parser": "^6.19.0",
122 "@typescript-eslint/rule-tester": "^6.21.0",
123 "axios": "^1.4.0",
124 "babel-eslint": "^10.1.0",
125 "babel-jest": "^27.5.1",
126 "babel-plugin-module-resolver": "^5.0.0",
127 "clang-format": "^1.6.0",
128 "code-tag": "^1.1.0",
129 "cspell": "^8.8.0",
130 "eslint": "^8.0.0-0",
131 "eslint-config-prettier": "^8.3.0",
132 "eslint-config-standard": "^17.1.0",
133 "eslint-import-resolver-babel-module": "^5.3.1",
134 "eslint-plugin-import": "^2.25.4",
135 "eslint-plugin-jest": "^27.2.1",
136 "eslint-plugin-n": "^16.4.0",
137 "eslint-plugin-no-inline-styles": "^1.0.5",
138 "eslint-plugin-promise": "^6.0.0",
139 "eslint-plugin-react-hooks": "^4.6.0",
140 "eslint-plugin-standard": "^5.0.0",
141 "eslint-plugin-tsdoc": "^0.2.17",
142 "husky": "^7.0.4",
143 "jest": "^29.0.0",
144 "lint-staged": "^15.2.2",
145 "madge": "^5.0.1",
146 "prettier": "^2.5.1",
147 "react": "18.2.0",
148 "react-native": "0.74.0",
149 "react-native-builder-bob": "^0.18.3",
150 "react-native-gesture-handler": "^2.16.2",
151 "react-native-web": "~0.18.12",
152 "react-test-renderer": "18.2.0",
153 "shelljs": "^0.8.5",
154 "ts-prune": "^0.10.3",
155 "typescript": "^4.1.3"
156 },
157 "lint-staged": {
158 "*.(js|jsx|ts|tsx|h|cpp|m|mm|java|kt|swift|md|mdx)": [
159 "yarn cspell"
160 ],
161 "*.(js|ts|tsx)": [
162 "yarn eslint",
163 "yarn eslint --quiet --ext '.js,.ts,.tsx' src/",
164 "yarn prettier --write"
165 ],
166 "plugin/**/*.ts": "yarn lint:plugin",
167 "**/*.{h,cpp}": "yarn lint:cpp",
168 "android/src/**/*.java": "yarn format:java",
169 "android/src/**/*.{h,cpp}": "yarn format:android",
170 "apple/**/*.{h,m,mm,cpp}": "yarn format:ios",
171 "Common/**/*.{h,cpp}": "yarn format:common"
172 },
173 "react-native-builder-bob": {
174 "source": "src",
175 "output": "lib",
176 "targets": [
177 "module",
178 "typescript"
179 ]
180 },
181 "codegenConfig": {
182 "name": "rnreanimated",
183 "type": "modules",
184 "jsSrcsDir": "./src/specs",
185 "android": {
186 "javaPackageName": "com.swmansion.reanimated"
187 }
188 },
189 "sideEffects": [
190 "./lib/reanimated2/core",
191 "./lib/index"
192 ],
193 "packageManager": "yarn@4.1.1"
194}