Skip to content

Commit 9a0ab0b

Browse files
committed
feat: port react scan to react native
1 parent a60c3c9 commit 9a0ab0b

File tree

23 files changed

+7871
-2529
lines changed

23 files changed

+7871
-2529
lines changed

auto.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './dist/core/index.js';

native.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './dist/native.js';

package.json

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,45 @@
9090
}
9191
}
9292
},
93+
"./babel": {
94+
"types": "./dist/babel.d.ts",
95+
"default": "./dist/babel.js"
96+
},
97+
"./native": {
98+
"types": "./native.js",
99+
"default": "./dist/native.d.ts"
100+
},
93101
"./dist/*": "./dist/*.js",
94102
"./dist/*.js": "./dist/*.js",
95103
"./dist/*.mjs": "./dist/*.mjs"
96104
},
97105
"main": "dist/index.js",
98106
"module": "dist/index.mjs",
99107
"browser": "dist/auto.global.js",
108+
"react-native": "native.js",
100109
"types": "dist/index.d.ts",
110+
"typesVersions": {
111+
"*": {
112+
"native": [
113+
"./dist/native.d.ts"
114+
],
115+
".": [
116+
"./dist/auto.d.ts"
117+
],
118+
"babel": [
119+
"./dist/babel.d.ts"
120+
]
121+
}
122+
},
101123
"bin": "bin/cli.js",
102124
"files": [
103125
"dist",
104126
"bin",
105127
"package.json",
106128
"README.md",
107129
"LICENSE",
108-
"auto.d.ts"
130+
"native.js",
131+
"babel.js"
109132
],
110133
"scripts": {
111134
"build": "NODE_ENV=production tsup",
@@ -117,23 +140,58 @@
117140
"dependencies": {
118141
"@clack/core": "^0.3.5",
119142
"@clack/prompts": "^0.8.2",
143+
"@expo/metro-config": "^0.19.4",
144+
"@expo/metro-runtime": "^4.0.0",
145+
"@react-native/metro-babel-transformer": "^0.76.3",
146+
"@react-native/metro-config": "^0.76.3",
120147
"kleur": "^4.1.5",
148+
"metro-react-native-babel-transformer": "^0.77.0",
121149
"mri": "^1.2.0",
150+
"nanoid": "^5.0.9",
122151
"playwright": "^1.49.0"
123152
},
124153
"devDependencies": {
154+
"@babel/plugin-proposal-decorators": "^7.25.9",
155+
"@babel/plugin-transform-flow-strip-types": "^7.25.9",
156+
"@babel/plugin-transform-react-jsx": "^7.25.9",
157+
"@babel/plugin-transform-typescript": "^7.25.9",
158+
"@babel/preset-flow": "^7.25.9",
159+
"@babel/preset-react": "^7.25.9",
160+
"@babel/preset-typescript": "^7.26.0",
161+
"@rnx-kit/metro-config": "^2.0.1",
162+
"@rnx-kit/metro-serializer-esbuild": "^0.2.1",
163+
"@shopify/react-native-skia": "*",
164+
"@types/node": "^22.10.0",
125165
"@types/react": "^18.3.12",
126166
"@types/react-reconciler": "^0.28.8",
127167
"@vercel/style-guide": "^6.0.0",
128168
"eslint": "^8.57.1",
169+
"metro-babel-transformer": "^0.81.0",
170+
"metro-react-native-babel-preset": "^0.77.0",
129171
"prettier": "^3.3.3",
130172
"publint": "^0.2.12",
131173
"react": "*",
132174
"react-dom": "*",
175+
"react-native": "*",
176+
"react-native-reanimated": "*",
133177
"react-reconciler": "^0.29.2",
134178
"terser": "^5.36.0",
135179
"tsup": "^8.2.4"
136180
},
181+
"peerDependenciesMeta": {
182+
"@shopify/react-native-skia": {
183+
"optional": true
184+
},
185+
"metro-react-native-babel-preset": {
186+
"optional": true
187+
},
188+
"react-native": {
189+
"optional": true
190+
},
191+
"react-native-reanimated": {
192+
"optional": true
193+
}
194+
},
137195
"publishConfig": {
138196
"access": "public"
139197
}

0 commit comments

Comments
 (0)