Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
196 lines (196 loc) · 6.41 KB
/
Copy pathpackage.json
File metadata and controls
196 lines (196 loc) · 6.41 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
"name": "react-native-iap",
"version": "17.4.1",
"description": "React Native In-App Purchases module for iOS and Android using Nitro",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
"exports": {
".": {
"types": "./lib/typescript/src/index.d.ts",
"source": "./src/index.ts",
"react-native": "./src/index.ts",
"default": "./lib/module/index.js"
},
"./package.json": "./package.json"
},
"files": [
"src",
"lib",
"android",
"ios",
"cpp",
"nitrogen",
"nitro.json",
"openiap-versions.json",
"*.podspec",
"react-native.config.js",
"!ios/build",
"!android/build",
"!android/gradle",
"!android/gradlew",
"!android/gradlew.bat",
"!android/local.properties",
"!android/src/androidTest",
"!android/src/test",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__",
"!**/*.tsbuildinfo",
"!**/.*"
],
"scripts": {
"example": "yarn workspace rn-iap-example",
"example:ios": "yarn workspace rn-iap-example ios",
"example:android": "yarn workspace rn-iap-example android",
"example:start": "yarn workspace rn-iap-example start",
"typecheck": "yarn typecheck:lib",
"typecheck:lib": "yarn tsc --noEmit",
"clean": "rm -rf android/build node_modules/**/android/build lib nitrogen/generated",
"lint": "eslint --ext .ts,.tsx,.js,.jsx src",
"lint:eslint": "eslint --no-warn-ignored --fix 'src/**/*.{ts,tsx}'",
"lint:prettier": "prettier --write \"**/*.{md,js,jsx,ts,tsx}\"",
"lint:tsc": "tsc -p tsconfig.json --noEmit --skipLibCheck",
"lint:ci": "yarn lint:tsc && yarn lint:eslint && yarn lint:prettier",
"prepare": "tsx scripts/check-nitro-versions.ts && bob build && yarn nitrogen",
"nitrogen": "node node_modules/nitrogen/lib/index.js",
"specs": "yarn nitrogen --logLevel=\"debug\"",
"test": "jest --coverage",
"test:library": "jest --coverage",
"test:example": "yarn workspace rn-iap-example test --coverage",
"test:all": "yarn test:library && yarn test:example",
"test:ci": "jest --maxWorkers=2 --coverage",
"test:ci:example": "yarn workspace rn-iap-example test --coverage",
"verify:consumer-install": "node ../../scripts/verify-npm-consumer-install.mjs --package . --package-name react-native-iap --required openiap-versions.json --required lib/module/index.js --required lib/typescript/src/index.d.ts --required android/build.gradle --required android/openiap-store.gradle --required NitroIap.podspec --required nitro.json",
"prepare:husky": "husky",
"precommit": "lint-staged",
"ci:check": "./scripts/ci-check.sh",
"generate:types": "node scripts/update-types.mjs",
"generate:icon": "cd docs/static/img && npx sharp-cli resize 32 32 --input icon.png --output favicon-32x32.png && npx sharp-cli resize 16 16 --input icon.png --output favicon-16x16.png && npx sharp-cli resize 192 192 --input icon.png --output android-chrome-192x192.png && npx sharp-cli resize 512 512 --input icon.png --output android-chrome-512x512.png && npx sharp-cli resize 180 180 --input icon.png --output apple-touch-icon.png && npx sharp-cli resize 1200 630 --input icon.png --output og-image.png && npx sharp-cli resize 150 150 --input icon.png --output favicon.png && npx sharp-cli --input favicon-32x32.png --output favicon.ico",
"commitlint": "commitlint"
},
"keywords": [
"react-native",
"nitro"
],
"repository": {
"type": "git",
"url": "git+https://github.com/hyodotdev/openiap.git",
"directory": "libraries/react-native-iap"
},
"author": "hyochan <hyo@hyo.dev> (https://github.com/hyochan)",
"license": "MIT",
"bugs": {
"url": "https://github.com/hyodotdev/openiap/issues"
},
"homepage": "https://github.com/hyodotdev/openiap/tree/main/libraries/react-native-iap",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/hyodotdev"
},
{
"type": "paypal",
"url": "https://www.paypal.me/dooboolab"
}
],
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@babel/core": "^7.29.7",
"@commitlint/cli": "^21.2.1",
"@commitlint/config-conventional": "^21.2.0",
"@react-native/babel-preset": "0.86.2",
"@react-native/jest-preset": "0.86.2",
"@types/jest": "^29.5.14",
"@types/node": "^26.2.0",
"@types/react": "^19.2.18",
"babel-jest": "^29.7.0",
"eslint": "^9.39.5",
"eslint-config-expo": "^57.0.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.6",
"expo": "^57.0.11",
"globals": "^17.9.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"lint-staged": "^17.3.0",
"nitrogen": "^0.36.5",
"prettier": "^3.9.6",
"react": "19.2.8",
"react-native": "0.86.2",
"react-native-builder-bob": "^0.43.0",
"react-native-nitro-modules": "^0.36.5",
"test-renderer": "^1.2.0",
"tsx": "^4.23.11",
"typescript": "^5.9.3"
},
"peerDependencies": {
"@amazon-devices/keplerscript-appstore-iap-lib": "~2.13.0",
"@amazon-devices/package-manager-lib": "~1.0.1767254401",
"react": "*",
"react-native": "*",
"react-native-nitro-modules": ">=0.36.5"
},
"peerDependenciesMeta": {
"@amazon-devices/keplerscript-appstore-iap-lib": {
"optional": true
},
"@amazon-devices/package-manager-lib": {
"optional": true
}
},
"workspaces": [
"example"
],
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
[
"custom",
{
"script": "nitrogen",
"clean": "nitrogen/"
}
],
[
"module",
{
"esm": true
}
],
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
},
"lint-staged": {
"!(docs)/**/*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"!(docs)/**/*.{js,jsx}": [
"eslint --fix",
"prettier --write"
],
"**/*.{json,md}": [
"prettier --write"
]
},
"packageManager": "yarn@3.6.1",
"resolutions": {
"zod": "4.6.7",
"nitrogen@^0.36.5": "patch:nitrogen@npm%3A0.36.5#./.yarn/patches/nitrogen-npm-0.36.5-array-equatable.patch",
"uuid@^7.0.3": "11.1.1",
"glob@^10.2.2": "14.0.6",
"glob@^13.0.0": "14.0.6",
"glob@^13.0.6": "14.0.6",
"minimatch@^9.0.4": "11.0.8",
"minimatch@^10.0.1": "11.0.8",
"minimatch@^10.2.2": "11.0.8"
}
}