@sfourdrinier/react-native-ble-plx
Version:
React Native Bluetooth Low Energy library
204 lines (203 loc) • 7.09 kB
JSON
{
"name": "@sfourdrinier/react-native-ble-plx",
"version": "3.8.1",
"description": "React Native Bluetooth Low Energy library",
"packageManager": "pnpm@10.14.0",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"types": "lib/typescript/src/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"files": [
"src",
"lib",
"android",
"ios",
"cpp",
"plugin/build",
"app.plugin.js",
"*.podspec",
"!lib/typescript/example",
"!lib/typescript/example-expo",
"!ios/build",
"!android/build",
"!android/gradle",
"!android/gradlew",
"!android/gradlew.bat",
"!android/local.properties",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__",
"!**/.*"
],
"scripts": {
"build": "babel src/ -d lib/",
"test": "pnpm test:package && pnpm test:example",
"test:package": "jest --config jest.config.js --passWithNoTests",
"test:example": "jest --config example/jest.config.js --passWithNoTests",
"docs": "documentation build src/index.js -o docs --config documentation.yml -f html",
"typecheck": "tsc --noEmit -p tsconfig.build.json",
"lint": "eslint \"src/**/*.{ts,tsx}\" \"plugin/src/**/*.{ts,tsx}\" && documentation lint index.js && pnpm typecheck",
"prepack": "bob build",
"verify:release": "bash scripts/verify-release.sh",
"release": "release-it",
"example": "pnpm --dir example",
"build:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
"test:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
"build:ios": "cd example/ios && xcodebuild -workspace BlePlxExample.xcworkspace -scheme BlePlxExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
"test:ios": "cd example/ios && xcodebuild -workspace BlePlxExample.xcworkspace -scheme BlePlxExample -configuration Debug -sdk iphonesimulator ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
"test:expo": "pnpm --dir example-expo install --no-frozen-lockfile && pnpm --dir example-expo exec tsc --noEmit -p tsconfig.json && cd example-expo && npx expo-doctor && npx expo prebuild --clean --no-install",
"build:expo:android": "pnpm --dir example-expo install --no-frozen-lockfile && cd example-expo && npx expo prebuild --clean --no-install && cd android && ./gradlew :app:assembleDebug --no-daemon --console=plain",
"bootstrap": "pnpm --dir example install && pnpm install && pnpm --dir example pods",
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build plugin/build lib",
"build:plugin": "tsc --build plugin",
"clean:plugin": "expo-module clean plugin",
"test:plugin": "NODE_PATH=./plugin/test-stubs jest --config plugin/jest.config.js",
"prepare": "pnpm clean:plugin && pnpm build:plugin",
"lint:plugin": "eslint plugin/src/*"
},
"keywords": [
"react-native",
"ios",
"android",
"React",
"Native",
"Bluetooth",
"Low",
"Energy",
"BLE"
],
"repository": "https://github.com/sfourdrinier/react-native-ble-plx.git",
"author": "sfourdrinier",
"license": "MIT",
"bugs": {
"url": "https://github.com/sfourdrinier/react-native-ble-plx/issues"
},
"homepage": "https://github.com/sfourdrinier/react-native-ble-plx#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@babel/cli": "^7.25.9",
"@babel/core": "^7.25.2",
"@babel/preset-typescript": "^7.25.2",
"@commitlint/config-conventional": "^17.0.2",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^9.39.4",
"@evilmartians/lefthook": "^1.5.0",
"@expo/config-plugins": "~57.0.3",
"@react-native/eslint-config": "^0.86.0",
"@react-native/jest-preset": "0.86.0",
"@react-native/metro-config": "0.86.0",
"@react-native/typescript-config": "0.86.0",
"@react-navigation/native": "^7.3.8",
"@react-navigation/native-stack": "^7.17.10",
"@release-it/conventional-changelog": "^11.0.1",
"@types/jest": "^29.5.5",
"@types/node": "^24.10.0",
"@types/react": "^19.2.2",
"@types/react-native": "0.70.0",
"@types/react-native-base64": "^0.2.2",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"babel-plugin-syntax-hermes-parser": "^0.15.1",
"commitlint": "^17.0.2",
"del-cli": "^5.1.0",
"documentation": "12.3.0",
"eslint": "^9.39.1",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-native": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.3",
"expo": "^57.0.4",
"expo-module-scripts": "^5.0.0",
"globals": "^17.7.0",
"hermes-eslint": "^0.15.1",
"jest": "^29.7.0",
"pod-install": "^0.1.0",
"prettier": "^3.0.3",
"react": "19.2.3",
"react-native": "0.86.0",
"react-native-base64": "^0.2.1",
"react-native-builder-bob": "^0.43.0",
"react-native-safe-area-context": "^4.10.5",
"react-native-toast-message": "^2.2.0",
"release-it": "^20.2.1",
"styled-components": "^6.1.11",
"turbo": "^1.10.7",
"typescript": "^5.2.2"
},
"resolutions": {
"@types/react": "^19.0.0"
},
"peerDependencies": {
"react": "*",
"react-native": ">=0.86.0"
},
"engines": {
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >=25.0.0"
},
"codegenConfig": {
"name": "BlePlxSpec",
"type": "modules",
"jsSrcsDir": "src",
"android": {
"javaPackageName": "com.bleplx"
},
"ios": {
"modulesProvider": {
"BlePlx": "BlePlx"
}
}
},
"jest": {
"preset": "@react-native/jest-preset",
"modulePathIgnorePatterns": [
"<rootDir>/integration-tests",
"<rootDir>/example/node_modules",
"<rootDir>/example-expo/node_modules",
"<rootDir>/lib/"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"release-it": {
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular"
}
}
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json",
"tsc": "./node_modules/.bin/tsc"
}
]
]
}
}