-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
114 lines (114 loc) · 4.91 KB
/
package.json
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
{
"name": "@tyro/tyro-pay-api-react-native",
"version": "1.0.2",
"description": "React Native Library for Tyro's Pay API",
"author": "Tyro",
"homepage": "https://github.com/tyro/tyro-pay-api-react-native",
"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 name=\"iPhone 15 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.example-pay-api-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 15 Pro\"",
"install:all": "npm run install:no-pods && npm run install:pods && npm run prepack",
"install:pods": "cd example/ios && pod install",
"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.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/eslint-config": "^0.72.2",
"@react-native/metro-config": "^0.72.11",
"@testing-library/react": "^14.1.2",
"@testing-library/react-native": "^12.4.1",
"@tsconfig/react-native": "^3.0.0",
"@types/jest": "^27.5.2",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.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": "^27.5.1",
"jest-when": "^3.6.0",
"lint-staged": "^12.3.3",
"metro-react-native-babel-preset": "0.76.8",
"pod-install": "^0.1.39",
"prettier": "^2.8.0",
"react": "^18.2.0",
"react-native": "^0.72.10",
"react-native-builder-bob": "^0.23.2",
"react-native-svg": "^14.1.0",
"react-native-webview": "^13.7.0",
"react-test-renderer": "18.2.0",
"supertest": "^6.1.3",
"typescript": "^4.4.4"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-svg": ">= 14.x",
"react-native-webview": ">= 13.x"
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
"typescript"
],
"exclude": [
"**/{tests,__fixtures__,__mocks__}/**",
"**/**.spec.**/**"
]
},
"eslintIgnore": [
"node_modules/",
"lib/"
]
}