Skip to content

Commit 5184c04

Browse files
chrfalchclaude
andcommitted
Format spm-scripts.md after applying review suggestions
The GitHub suggestion commits reflowed prose past the print width, padded a table cell, and left trailing whitespace on a heading — prettier --list-different flags the file, which is what the lint job runs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 20b3ecf commit 5184c04

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎packages/react-native/scripts/spm/__docs__/spm-scripts.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,22 +359,23 @@ headers resolve as `#import <MyNativeModule/MyHeader.h>` from the app and from
359359
other modules.
360360

361361
By design, the entry needs no podspec and no `Package.swift` — app-local native
362-
code is not required to carry either.
363-
If the module ships a hand-written `Package.swift`, then React Native generates nothing and uses the Package.swift as-is.
362+
code is not required to carry either. If the module ships a hand-written
363+
`Package.swift`, then React Native generates nothing and uses the Package.swift
364+
as-is.
364365

365366
| Field | Meaning |
366367
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
367368
| `name` | The target's name and its header prefix. A valid Swift identifier, not [reserved](#names-react-native-reserves), and not already taken by another module or an autolinked library. |
368369
| `path` | The module's directory, relative to the app root. |
369-
| `exclude` | Paths inside `path` to keep out of the target, like a podspec's `exclude_files`. It also supports directories with a trailing `/`. |
370+
| `exclude` | Paths inside `path` to keep out of the target, like a podspec's `exclude_files`. It also supports directories with a trailing `/`. |
370371
| `sources` | Glob allowlist replacing automatic discovery, like a podspec's `source_files`. Without it, every `.h/.m/.mm/.c/.cpp/.swift` file under `path` is compiled, minus `exclude` and the directories the autolinker always skips (`android/`, `test/`, `tests/`, `__tests__/`, `__mocks__/`, `jest/`, `node_modules/`). |
371372

372373
Names must be unique because wrapper directories are keyed by name: two entries
373374
resolving to one name — or an entry matching an autolinked library — would share
374375
a directory, and the losing module would silently not be built. So a clash fails
375376
the build with a rename instruction instead.
376377

377-
### App Modules vs Libraries
378+
### App Modules vs Libraries
378379

379380
`spm.modules` is read from the app's own `react-native.config.js` only — entries
380381
in a dependency's config are ignored, so a library cannot declare its native

0 commit comments

Comments
 (0)