You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/build.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -188,17 +188,17 @@ Generates the [React Native Codegen](https://reactnative.dev/docs/the-new-archit
188
188
189
189
You can ensure your Codegen generated scaffold code is stable through different React Native versions by shipping it with your library. You can find more in the [React Native Official Docs](https://reactnative.dev/docs/the-new-architecture/codegen-cli#including-generated-code-into-libraries).
190
190
191
-
#### `script`
191
+
#### `custom`
192
192
193
-
Allows arbitrary scripts to be called during the build process. There is no guarantee when the script is going to be called or finished. This is useful to call code generators during the build process.
193
+
Define a custom build target. This is useful to call code generators during the build process.
194
194
195
-
##### `run`
195
+
##### `script`
196
196
197
-
`bob` will run the command passed in the `run` option. The build process will throw and exit if the `script` target is defined without the `run` option.
197
+
`bob` will run the script passed in the `script` option. The build process **will throw and exit** if the `build` target is defined without this option.
198
198
199
199
##### `cwd`
200
200
201
-
You can set the `cwd` (current working directory) option to specify where the command should be called from. This option accepts a path and will default to the path `build` was called from.
201
+
You can set the `cwd` (current working directory) option to specify where the command should be called from. This option accepts **a relative path**, and it will default to the path `build` was called from.
0 commit comments