Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
117 lines (117 loc) · 5.26 KB
/
Copy pathpackage.json
File metadata and controls
117 lines (117 loc) · 5.26 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
{
"name": "@tyro/tyro-pay-api-react-native",
"version": "3.0.0",
"description": "React Native Library for Tyro's Pay API",
"author": "Tyro",
"homepage": "https://github.com/tyro/tyro-pay-api-react-native",
"minIosVersion": "16.0",
"url": {
"type": "git",
"url": "https://github.com/tyro/tyro-pay-api-react-native"
},
"main": "lib/commonjs/index",
"module": "lib/module/index",
"types": "lib/typescript/index.d.ts",
"react-native": "src/index.tsx",
"source": "src/index.tsx",
"scripts": {
"android": "cd example && react-native run-android",
"ios": "cd example && react-native run-ios",
"start": "cd example && react-native start",
"test": "jest --coverage",
"lint": "eslint . --ext .tsx,.ts --max-warnings 0",
"lint:fix": "eslint . --fix --ext .tsx,.ts",
"format": "prettier --write .",
"format:check": "prettier --check .",
"precommit:checks": "npm run format:check && npm run lint && npm test",
"precommit_withIOS": "npm run precommit:checks && npm run test:unit:android && npm run test:unit:ios",
"precommit": "npm run precommit:checks && npm run test:unit:android",
"prepush:checks": "npm test && npm audit --omit=dev --audit-level=high",
"prepush_withIOS": "npm run prepush:checks && npm run test:unit:android && npm run test:unit:ios",
"prepush": "npm run prepush:checks && npm run test:unit:android",
"prepack": "bob build",
"prepare": "[ \"$NODE_ENV\" == production ] || husky install",
"test:unit:ios": "xcodebuild test -workspace example/ios/example.xcworkspace -scheme example -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 16 Pro'",
"test:unit:android": "cd example/android && chmod +x ./gradlew && ./gradlew --no-daemon test && ./gradlew ktlintFormat && ./gradlew ktlint && ./gradlew lint",
"test:e2e:ios": "bash ./scripts/run-e2e-tests ios",
"test:e2e:android": "bash ./scripts/run-e2e-tests android",
"test:local:ios": "maestro test src/tests/integration/ios/local-only -e APP_ID=com.tyro.tyro-pay-api-sample-app",
"test:local:android": "maestro test src/tests/integration/android/local-only -e APP_ID=com.example",
"android:release": "cd example && react-native run-android --mode=release",
"ios:release": "cd example && react-native run-ios --mode Release --simulator 'iPhone 16 Pro' --no-packager",
"install:all": "npm run install:no-pods && npm run install:pods && npm run prepack",
"install:pods": "cd example/ios && bundle exec pod cache clean --all && bundle exec pod install --verbose",
"install:no-pods": "npm install && cd example && npm install",
"gradlew:build:all": "npm run gradlew:build:sdk && npm run gradlew:build:example",
"gradlew:build:example": "cd example/android && chmod +x ./gradlew && ./gradlew --no-daemon -S -Dorg.gradle.dependency.verification=off clean build",
"gradlew:build:sdk": "cd example/android && chmod +x ./gradlew && ./gradlew --no-daemon -S -Dorg.gradle.dependency.verification=off clean build",
"ios:release:build": "cd example/ios && xcodebuild -workspace example.xcworkspace -scheme example -configuration Debug -sdk iphonesimulator clean build"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "20.1.0",
"@react-native-community/cli-platform-android": "20.1.0",
"@react-native-community/cli-platform-ios": "20.1.0",
"@react-native/babel-preset": "0.86.0",
"@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",
"@testing-library/react-native": "^13.3.3",
"@types/jest": "^29.5.13",
"@types/react": "^19.2.0",
"@types/react-test-renderer": "^19.1.0",
"@types/supertest": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"babel-jest": "^29.7.0",
"babel-plugin-module-resolver": "^5.0.0",
"eslint": "^8.23.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^16.1.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-destructuring": "2.2.1",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jest": "26.1.0",
"eslint-plugin-react-native": "4.1.0",
"eslint-plugin-security": "1.4.0",
"husky": "7.0.4",
"jest-config": "^30.3.0",
"jest-when": "^3.6.0",
"lint-staged": "^12.3.3",
"pod-install": "^0.1.39",
"prettier": "2.8.8",
"react": "19.2.3",
"react-native": "0.86.0",
"react-native-builder-bob": "0.40.18",
"react-native-safe-area-context": "^5.5.2",
"react-native-svg": "15.15.5",
"react-native-webview": "13.16.1",
"react-test-renderer": "19.2.3",
"supertest": "6.1.3",
"typescript": "^5.8.3"
},
"peerDependencies": {
"react": ">=19.0.0 <20.0.0",
"react-native": ">=0.78.0 <0.87.0",
"react-native-safe-area-context": ">=5",
"react-native-svg": ">=15",
"react-native-webview": ">=13"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
"typescript"
],
"exclude": "**/{tests,__fixtures__,__mocks__}/**"
},
"eslintIgnore": [
"node_modules/",
"lib/"
]
}