-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathpackage.json
More file actions
160 lines (160 loc) · 6.25 KB
/
package.json
File metadata and controls
160 lines (160 loc) · 6.25 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
{
"name": "react-native-worklets",
"version": "0.8.0-main",
"description": "The React Native multithreading library",
"keywords": [
"react-native",
"react",
"native",
"worklets"
],
"scripts": {
"build": "yarn workspace babel-plugin-worklets build && bob build && yarn build:unpackers",
"build:unpackers": "NODE_ENV='production' node ./scripts/export-unpackers.js",
"circular-dependency-check": "yarn madge --extensions js,jsx --circular lib",
"find-unused-code:js": "knip",
"format": "yarn format:js && yarn format:plugin && yarn format:common && yarn format:android && yarn format:apple",
"format:android": "yarn format:android:java && yarn format:android:cpp && yarn format:android:cmake",
"format:android:cpp": "find android/src -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i",
"format:android:cmake": "find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/format-cmake.sh",
"format:android:java": "node ../../scripts/format-java.js",
"format:apple": "find apple -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.mm\" -o -iname \"*.cpp\" | xargs clang-format -i",
"format:common": "find Common -iname \"*.h\" -o -iname \"*.cpp\" | xargs clang-format -i",
"format:js": "prettier --write --list-different src",
"format:plugin": "yarn workspace babel-plugin-worklets format",
"lint": "yarn lint:js && yarn lint:common && yarn lint:plugin && yarn lint:android && yarn lint:apple",
"lint:android": "../../scripts/validate-android.sh && ./android/gradlew -p android spotlessCheck -q && ../../scripts/cpplint.sh android/src && yarn format:android:cpp --dry-run -Werror && yarn lint:cmake",
"lint:apple": "../../scripts/validate-apple.sh && yarn format:apple --dry-run -Werror",
"lint:common": "../../scripts/validate-common.sh && ../../scripts/cpplint.sh Common && yarn format:common --dry-run -Werror",
"lint:cmake": "find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/lint-cmake.sh",
"lint:clang-tidy": "find Common -iname \"*.h\" -o -iname \"*.cpp\" | xargs ../../scripts/clang-tidy-lint.sh",
"lint:js": "eslint src && yarn prettier --check src",
"lint:plugin": "yarn workspace babel-plugin-worklets lint",
"test": "jest",
"type:check": "yarn type:check:src:native && yarn type:check:src:web && yarn type:check:plugin && yarn type:check:app && yarn type:check:tests",
"type:check:src:native": "yarn tsc --noEmit",
"type:check:src:web": "yarn tsc --noEmit --project tsconfig.web.json",
"type:check:app": "yarn workspace common-app type:check",
"type:check:plugin": "yarn workspace babel-plugin-worklets type:check",
"type:check:tests": "../../scripts/test-ts.sh __typetests__",
"tree-shake:check:web": "yarn is-tree-shakable --resolution web",
"validate-peers": "node ../../scripts/validate-compatibility-peer-dependencies.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/software-mansion/react-native-reanimated.git",
"directory": "packages/react-native-worklets"
},
"license": "MIT",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/software-mansion/react-native-reanimated/issues"
},
"homepage": "https://docs.swmansion.com/react-native-worklets",
"peerDependencies": {
"@babel/core": "*",
"@react-native/metro-config": "*",
"react": "*",
"react-native": "0.81 - 0.85"
},
"dependencies": {
"@babel/plugin-transform-arrow-functions": "7.27.1",
"@babel/plugin-transform-class-properties": "7.27.1",
"@babel/plugin-transform-classes": "7.28.4",
"@babel/plugin-transform-nullish-coalescing-operator": "7.27.1",
"@babel/plugin-transform-optional-chaining": "7.27.1",
"@babel/plugin-transform-shorthand-properties": "7.27.1",
"@babel/plugin-transform-template-literals": "7.27.1",
"@babel/plugin-transform-unicode-regex": "7.27.1",
"@babel/preset-typescript": "7.27.1",
"convert-source-map": "2.0.0",
"is-tree-shakable": "0.5.0",
"semver": "7.7.3"
},
"devDependencies": {
"@babel/cli": "7.28.3",
"@babel/core": "7.28.4",
"@react-native-community/cli": "20.1.0",
"@react-native/eslint-config": "0.83.0",
"@react-native/jest-preset": "patch:@react-native/jest-preset@npm%3A0.85.0-rc.1#~/.yarn/patches/@react-native-jest-preset-npm-0.85.0-rc.1-b8e9692393.patch",
"@types/jest": "30.0.0",
"@types/node": "24.7.0",
"@types/react": "19.2.2",
"clang-format-node": "1.3.5",
"code-tag": "1.2.0",
"eslint": "9.37.0",
"jest": "30.2.0",
"knip": "5.61.3",
"madge": "8.0.0",
"prettier": "3.6.2",
"react": "19.2.3",
"react-native": "0.85.0-rc.1",
"react-native-builder-bob": "0.40.13",
"typescript": "5.8.3"
},
"main": "./lib/module/index",
"module": "./lib/module/index",
"react-native": "./src/index",
"source": "./src/index",
"types": "lib/typescript/index.d.ts",
"files": [
"src",
"lib",
"android",
"apple",
"Common",
"compatibility.json",
"bundleMode/index.js",
"bundleMode/index.d.ts",
"scripts/worklets_utils.rb",
"scripts/validate-react-native-version.js",
"jest",
"plugin/index.js",
"plugin/index.d.ts",
"*.podspec",
"react-native.config.js",
"!apple/build",
"!android/build",
"!android/gradle",
"!android/gradlew",
"!android/gradlew.bat",
"!android/local.properties",
"!.worklets",
".worklets/dummy.md",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__",
"!**/.*"
],
"sideEffects": [
"./src/index.ts",
"./lib/module/index.js",
"./**/runtimeKind.{js,ts}",
"./**/serializable.native.{js,ts}",
"./**/workletRuntimeEntry.native.{js,ts}",
"./**/initializers.native.{js,ts}",
"./**/featureFlags.native.{js,ts}"
],
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
[
"module",
{
"esm": false,
"jsxRuntime": "automatic"
}
],
"typescript"
]
},
"codegenConfig": {
"name": "rnworklets",
"type": "modules",
"jsSrcsDir": "src/specs",
"android": {
"javaPackageName": "com.swmansion.worklets"
}
}
}