|
90 | 90 | } |
91 | 91 | } |
92 | 92 | }, |
| 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 | + }, |
93 | 101 | "./dist/*": "./dist/*.js", |
94 | 102 | "./dist/*.js": "./dist/*.js", |
95 | 103 | "./dist/*.mjs": "./dist/*.mjs" |
96 | 104 | }, |
97 | 105 | "main": "dist/index.js", |
98 | 106 | "module": "dist/index.mjs", |
99 | 107 | "browser": "dist/auto.global.js", |
| 108 | + "react-native": "native.js", |
100 | 109 | "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 | + }, |
101 | 123 | "bin": "bin/cli.js", |
102 | 124 | "files": [ |
103 | 125 | "dist", |
104 | 126 | "bin", |
105 | 127 | "package.json", |
106 | 128 | "README.md", |
107 | 129 | "LICENSE", |
108 | | - "auto.d.ts" |
| 130 | + "native.js", |
| 131 | + "babel.js" |
109 | 132 | ], |
110 | 133 | "scripts": { |
111 | 134 | "build": "NODE_ENV=production tsup", |
|
117 | 140 | "dependencies": { |
118 | 141 | "@clack/core": "^0.3.5", |
119 | 142 | "@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", |
120 | 147 | "kleur": "^4.1.5", |
| 148 | + "metro-react-native-babel-transformer": "^0.77.0", |
121 | 149 | "mri": "^1.2.0", |
| 150 | + "nanoid": "^5.0.9", |
122 | 151 | "playwright": "^1.49.0" |
123 | 152 | }, |
124 | 153 | "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", |
125 | 165 | "@types/react": "^18.3.12", |
126 | 166 | "@types/react-reconciler": "^0.28.8", |
127 | 167 | "@vercel/style-guide": "^6.0.0", |
128 | 168 | "eslint": "^8.57.1", |
| 169 | + "metro-babel-transformer": "^0.81.0", |
| 170 | + "metro-react-native-babel-preset": "^0.77.0", |
129 | 171 | "prettier": "^3.3.3", |
130 | 172 | "publint": "^0.2.12", |
131 | 173 | "react": "*", |
132 | 174 | "react-dom": "*", |
| 175 | + "react-native": "*", |
| 176 | + "react-native-reanimated": "*", |
133 | 177 | "react-reconciler": "^0.29.2", |
134 | 178 | "terser": "^5.36.0", |
135 | 179 | "tsup": "^8.2.4" |
136 | 180 | }, |
| 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 | + }, |
137 | 195 | "publishConfig": { |
138 | 196 | "access": "public" |
139 | 197 | } |
|
0 commit comments