-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpackage.json
More file actions
170 lines (170 loc) · 5.44 KB
/
package.json
File metadata and controls
170 lines (170 loc) · 5.44 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
{
"name": "react-native-iap",
"version": "15.3.0",
"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": {
".": {
"source": "./src/index.ts",
"types": "./lib/typescript/src/index.d.ts",
"default": "./lib/module/index.js",
"react-native": "./src/index.ts"
},
"./plugin": "./app.plugin.js",
"./app.plugin.js": "./app.plugin.js",
"./package.json": "./package.json"
},
"files": [
"src",
"lib",
"plugin",
"android",
"ios",
"cpp",
"nitrogen",
"nitro.json",
"openiap-versions.json",
"*.podspec",
"app.plugin.js",
"react-native.config.js",
"!ios/build",
"!android/build",
"!android/gradle",
"!android/gradlew",
"!android/gradlew.bat",
"!android/local.properties",
"!**/__tests__",
"!**/__fixtures__",
"!**/__mocks__",
"!**/.*"
],
"scripts": {
"build:plugin": "tsc --build plugin",
"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 --fix 'src/**/*.{ts,tsx}' 'plugin/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": "npx tsx scripts/check-nitro-versions.ts && bob build && yarn nitrogen && yarn build:plugin",
"nitrogen": "node --stack-size=65536 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:plugin": "jest plugin --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",
"prepare:husky": "husky install",
"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",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@react-native/eslint-config": "0.81.0",
"@testing-library/react": "^16.3.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^29.5.12",
"@types/node": "^24.4.0",
"@types/react": "^19.1.12",
"babel-jest": "^30.1.1",
"eslint": "^8.57.0",
"eslint-config-expo": "^9.2.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"expo": "^53.0.20",
"husky": "^8.0.3",
"jest": "^30.1.1",
"lint-staged": "^15.2.0",
"nitrogen": "^0.35.0",
"prettier": "^3.3.3",
"react": "19.1.0",
"react-native": "0.81.1",
"react-native-builder-bob": "^0.38.4",
"react-native-nitro-modules": "^0.35.0",
"react-test-renderer": "^19.1.1",
"typescript": "^5.9.2"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-nitro-modules": "^0.35.0"
},
"workspaces": [
"example"
],
"eslintIgnore": [
"node_modules/",
"lib/"
],
"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"
}