react-native-worklets
Version:
The React Native multithreading library
151 lines (150 loc) • 5.77 kB
JSON
{
"name": "react-native-worklets",
"version": "0.7.1",
"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 ./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__"
},
"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": "*",
"react-native": "*"
},
"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",
"semver": "7.7.3"
},
"devDependencies": {
"@babel/cli": "7.28.3",
"@babel/core": "7.28.4",
"@react-native-community/cli": "20.0.0",
"@react-native/eslint-config": "0.82.0",
"@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.1.1",
"react-native": "0.82.0",
"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",
"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",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__",
"!**/.*"
],
"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"
},
"ios": {
"modulesConformingToProtocol": {
"RCTBundleConsumer": [
"WorkletsModule"
]
}
}
}
}