@stripe/stripe-react-native
Version:
Stripe SDK for React Native
153 lines (152 loc) • 4.42 kB
JSON
{
"name": "@stripe/stripe-react-native",
"version": "0.42.0",
"author": "Stripe",
"description": "Stripe SDK for React Native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/src/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"scripts": {
"test": "jest",
"typescript": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\" --ignore-pattern \"docs/api-reference/*\" --ignore-path .gitignore",
"prepare": "bob build && husky install",
"release": "./scripts/publish",
"example": "yarn --cwd example",
"pods": "cd example && npx pod-install --quiet",
"update-pods": "cd example/ios && pod update Stripe StripeApplePay StripeFinancialConnections StripePayments StripePaymentSheet StripePaymentsUI StripeCore StripeUICore",
"bootstrap": "yarn example && yarn && yarn pods",
"bootstrap-no-pods": "yarn example && yarn",
"docs": "yarn typedoc ./src/index.tsx --out ./docs/api-reference --tsconfig ./tsconfig.json --readme none --sort source-order",
"run-example-ios": "cd example;react-native run-ios --configuration Release --simulator \"iPhone 15 (17.2)\"",
"run-example-android": "cd example;react-native run-android --variant=release",
"test:e2e:ios": "bash ./scripts/run-maestro-tests ios",
"test:e2e:android": "bash ./scripts/run-maestro-tests android",
"test:unit:ios": "xcodebuild test -workspace example/ios/StripeSdkExample.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 15' -scheme UnitTests",
"test:unit:android": "cd example/android && ./gradlew connectedAndroidTest",
"test-ios": "maestro test -e APP_ID=com.stripe.react.native",
"test-android": "maestro test -e APP_ID=com.example.reactnativestripesdk"
},
"keywords": [
"react-native",
"ios",
"android"
],
"repository": "https://github.com/stripe/stripe-react-native",
"license": "MIT",
"bugs": {
"url": "https://github.com/stripe/stripe-react-native/issues"
},
"homepage": "https://github.com/stripe/stripe-react-native/#readme",
"dependencies": {},
"devDependencies": {
"@babel/plugin-transform-typescript": "^7.13.0",
"@expo/config-types": "^47.0.0",
"@react-native-community/bob": "^0.16.2",
"@react-native-community/eslint-config": "^3.0.0",
"@types/jest": "^26.0.23",
"@types/react": "^16.9.19",
"@types/react-native": "0.62.13",
"eslint": "^7.32.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"expo": "^47.0.8",
"husky": "^8.0.0",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.70.3",
"prettier": "^2.0.5",
"react": "18.0.0",
"react-native": "0.69.12",
"ts-node": "^9.1.1",
"typedoc": "^0.22.12",
"typescript": "~4.4.4"
},
"peerDependencies": {
"expo": ">=46.0.9",
"react": "*",
"react-native": "*"
},
"peerDependenciesMeta": {
"expo": {
"optional": true
}
},
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
"<rootDir>/example/node_modules",
"<rootDir>/lib/",
"<rootDir>/e2e"
]
},
"eslintConfig": {
"extends": [
"@react-native-community",
"prettier"
],
"rules": {
"no-shadow": "off",
"@typescript-eslint/no-shadow": [
"error"
],
"prettier/prettier": [
"error",
{
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
],
"no-restricted-syntax": [
"error",
{
"selector": "TSEnumDeclaration[const=true]",
"message": "`const enum` declarations are not allowed"
}
]
}
},
"eslintIgnore": [
"node_modules/",
"lib/",
"dist/"
],
"prettier": {
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
},
"@react-native-community/bob": {
"source": "src",
"output": "lib",
"targets": [
[
"commonjs",
{
"configFile": true
}
],
[
"module",
{
"configFile": true
}
],
[
"typescript",
{
"configFile": true
}
]
]
},
"resolutions": {
"simple-plist": "1.3.1"
}
}