-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
106 lines (106 loc) · 2.76 KB
/
package.json
File metadata and controls
106 lines (106 loc) · 2.76 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
{
"name": "react-native-node-api-modules",
"version": "0.1.0",
"description": "Node-API Modules for React Native",
"homepage": "https://github.com/callstackincubator/react-native-node-api-modules",
"repository": {
"type": "git",
"url": "git+https://github.com/callstackincubator/react-native-node-api-modules.git",
"directory": "packages/react-native-node-api-cmake"
},
"main": "dist/react-native/index.js",
"type": "commonjs",
"bin": {
"react-native-node-api-modules": "./bin/react-native-node-api-modules.mjs"
},
"exports": {
".": {
"node": "./dist/node/index.js",
"react-native": "./dist/react-native/index.js"
},
"./babel-plugin": "./dist/node/babel-plugin/index.js",
"./cli": "./dist/node/cli/run.js",
"./weak-node-api": "./weak-node-api"
},
"files": [
"bin",
"dist",
"cpp",
"android",
"!android/.cxx",
"!android/build",
"ios",
"include",
"scripts/patch-hermes.rb",
"weak-node-api/**",
"!weak-node-api/build/",
"*.js",
"*.podspec"
],
"scripts": {
"build": "tsc --build",
"copy-node-api-headers": "tsx scripts/copy-node-api-headers.ts",
"generate-weak-node-api": "tsx scripts/generate-weak-node-api.ts",
"generate-weak-node-api-injector": "tsx scripts/generate-weak-node-api-injector.ts",
"build-weak-node-api": "npm run generate-weak-node-api && react-native-node-api-cmake --android --apple --no-auto-link --no-weak-node-api-linkage --xcframework-extension --source ./weak-node-api",
"test": "tsx --test src/node/**/*.test.ts src/node/*.test.ts"
},
"keywords": [
"react-native",
"node-api",
"napi",
"node-api",
"node-addon-api",
"native",
"addon",
"module",
"c",
"c++",
"bindings",
"buildtools",
"cmake"
],
"author": {
"name": "Callstack",
"url": "https://github.com/callstackincubator"
},
"contributors": [
{
"name": "Kræn Hansen",
"url": "https://github.com/kraenhansen"
}
],
"license": "MIT",
"dependencies": {
"@commander-js/extra-typings": "^13.1.0",
"bufout": "^0.3.1",
"chalk": "^5.4.1",
"commander": "^13.1.0",
"ora": "^8.2.0",
"pkg-dir": "^8.0.0",
"read-pkg": "^9.0.1"
},
"devDependencies": {
"@babel/core": "^7.26.10",
"@babel/types": "^7.27.0",
"metro-config": "0.81.1",
"node-api-headers": "^1.5.0",
"zod": "^3.24.3"
},
"peerDependencies": {
"@babel/core": "^7.26.10",
"react-native": "0.79.1"
},
"codegenConfig": {
"name": "NodeApiHostSpec",
"type": "modules",
"jsSrcsDir": "src/react-native",
"outputDir": {
"ios": "ios/generated",
"android": "android/generated"
},
"android": {
"javaPackageName": "com.callstack.node_api_modules"
}
}
}