Commit cd0fec1
feat(spm): drop consumer-side headers compose; don't ship build-only scripts
generate-spm-package previously composed the headers-spec layout on the consumer
side when the prebuilt artifacts lacked ReactNativeHeaders.xcframework. That
pulled the ios-prebuild build scripts (headers-compose and its deps) into the
published npm package, which in turn required the `plist` dependency at consumer
runtime.
The prebuilt core artifact ships React.xcframework AND ReactNativeHeaders.xcframework
together, so a consumer never needs to compose the layout. Remove the
consumer-side compose: fail with a clear error if ReactNativeHeaders is absent,
and stop listing scripts/ios-prebuild/* in the package files allowlist — those
are full-repo prebuild scripts, not consumer runtime code.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 69a07bc commit cd0fec1
3 files changed
Lines changed: 28 additions & 68 deletions
File tree
- packages/react-native
- scripts/spm
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 110 | | |
117 | 111 | | |
118 | 112 | | |
| |||
Lines changed: 13 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
185 | | - | |
186 | | - | |
| 184 | + | |
187 | 185 | | |
188 | | - | |
189 | 186 | | |
190 | 187 | | |
191 | 188 | | |
| |||
213 | 210 | | |
214 | 211 | | |
215 | 212 | | |
216 | | - | |
| 213 | + | |
217 | 214 | | |
| 215 | + | |
| 216 | + | |
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 222 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
| 223 | + | |
240 | 224 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 225 | + | |
| 226 | + | |
250 | 227 | | |
251 | | - | |
252 | | - | |
| 228 | + | |
| 229 | + | |
253 | 230 | | |
254 | | - | |
| 231 | + | |
255 | 232 | | |
| 233 | + | |
256 | 234 | | |
257 | 235 | | |
258 | 236 | | |
| |||
Lines changed: 15 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 227 | + | |
231 | 228 | | |
232 | 229 | | |
233 | 230 | | |
| |||
307 | 304 | | |
308 | 305 | | |
309 | 306 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
319 | 313 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
328 | 319 | | |
329 | | - | |
330 | | - | |
| 320 | + | |
| 321 | + | |
331 | 322 | | |
332 | 323 | | |
333 | 324 | | |
| |||
346 | 337 | | |
347 | 338 | | |
348 | 339 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 340 | + | |
353 | 341 | | |
354 | 342 | | |
355 | 343 | | |
| |||
0 commit comments