-
-
Notifications
You must be signed in to change notification settings - Fork 982
/
package.json
155 lines (155 loc) · 5.06 KB
/
package.json
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
{
"name": "react-native-gesture-handler",
"version": "2.21.2",
"description": "Declarative API exposing native platform touch and gesture system to React Native",
"scripts": {
"prepare": "bob build && husky install",
"test": "jest",
"build": "yarn tsc -p tsconfig.build.json",
"precommit": "lint-staged",
"release": "npm login && release-it",
"ts-check": "yarn tsc --noEmit",
"format:js": "prettier --write --list-different './{src,example,FabricExample,MacOSExample}/**/*.{js,jsx,ts,tsx}'",
"format:android": "node ./scripts/format-android.js",
"format:apple": "find apple/ -iname *.h -o -iname *.m -o -iname *.cpp -o -iname *.mm | xargs clang-format -i",
"lint:js": "eslint --ext '.js,.ts,.tsx' src/ example/src FabricExample/src MacOSExample/src && yarn prettier --check './{src,example,FabricExample,MacOSExample}/**/*.{js,jsx,ts,tsx}'",
"lint:js-root": "eslint --ext '.js,.ts,.tsx' src/ && yarn prettier --check './src/**/*.{js,jsx,ts,tsx}'",
"lint:android": "./android/gradlew -p android spotlessCheck -q",
"circular-dependency-check": "yarn madge --extensions js,ts,tsx --circular src",
"architectures-consistency-check": "node ./scripts/codegen-check-consistency.js",
"sync-architectures": "node ./scripts/codegen-sync-archs.js"
},
"react-native": "src/index.ts",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"types": "lib/typescript/index.d.ts",
"files": [
"src",
"lib",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__",
"android/build.gradle",
"android/gradle.properties",
"android/src/main/AndroidManifest.xml",
"android/src/main/java/",
"android/src/main/jni/",
"android/fabric/src/main/java",
"android/paper/src/main/java",
"android/common/src/main/java/",
"android/reanimated/src/main/java/",
"android/noreanimated/src/main/java/",
"apple/",
"Swipeable/",
"ReanimatedSwipeable/",
"jest-utils/",
"DrawerLayout/",
"ReanimatedDrawerLayout/",
"README.md",
"jestSetup.js",
"RNGestureHandler.podspec"
],
"repository": {
"type": "git",
"url": "git+https://github.com/software-mansion/react-native-gesture-handler.git"
},
"author": {
"email": "[email protected]",
"name": "Krzysztof Magiera"
},
"license": "MIT",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/software-mansion/react-native-gesture-handler/issues"
},
"homepage": "https://github.com/software-mansion/react-native-gesture-handler#readme",
"dependencies": {
"@egjs/hammerjs": "^2.0.17",
"hoist-non-react-statics": "^3.3.0",
"invariant": "^2.2.4"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/preset-typescript": "^7.12.7",
"@react-native/babel-preset": "0.77.0-rc.3",
"@testing-library/react-native": "^12.5.1",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/invariant": "^2.2.37",
"@types/jest": "^27.0.3",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"babel-plugin-module-resolver": "^5.0.2",
"clang-format": "^1.8.0",
"eslint": "^7.32.0",
"eslint-config-satya164": "^3.1.8",
"eslint-import-resolver-babel-module": "^5.2.0",
"eslint-plugin-jest": "^26.0.0",
"eslint-plugin-prettier": "^5.2.1",
"expo": "^35.0.1",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": "^12.3.2",
"madge": "^6.1.0",
"prettier": "3.3.3",
"react": "18.3.1",
"react-native": "0.77.0-rc.3",
"react-native-builder-bob": "^0.17.1",
"react-native-reanimated": "^3.12.0",
"react-test-renderer": "18.2.0",
"release-it": "^13.6.5",
"typescript": "5.0.4"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"lint-staged": {
"./{src,example,FabricExample,MacOSExample}/**/*.{ts,tsx}": "yarn format:js",
"android/**/*.kt": "yarn format:android",
"apple/**/*.{h,m,mm,cpp}": "yarn format:apple",
"src/specs/*.ts": "yarn sync-architectures"
},
"release-it": {
"hooks": {
"before:git:bump": [
"# check if version corresponds to changes in native files \n if git diff --name-only ${latestVersion} HEAD | egrep \"(android/.*)|(ios/.*)\" -q; then egrep '\\.0$' -q <<< ${version}; else test $? -eq 1; fi"
]
}
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
},
"eslintIgnore": [
"node_modules/",
"lib/",
"src/specs/*NativeComponent.js"
],
"codegenConfig": {
"name": "rngesturehandler_codegen",
"type": "all",
"jsSrcsDir": "./src/specs",
"android": {
"javaPackageName": "com.swmansion.gesturehandler"
},
"ios": {
"componentProvider": {
"RNGestureHandlerButton": "RNGestureHandlerButtonComponentView"
}
}
},
"packageManager": "[email protected]"
}