Skip to content

Commit

Permalink
docs: fix codegen CLI example commands (#4348)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunrajput authored Nov 23, 2024
1 parent f1c538e commit d3834f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/the-new-architecture/codegen-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ Options:
- Read `package.json` from the current working directory, generate code based on its codegenConfig.

```shell
npx @react-native-codegen/cli codegen
npx @react-native-community/cli codegen
```

- Read `package.json` from the current working directory, generate iOS code in the location defined in the codegenConfig.

```shell
npx @react-native-codegen/cli codegen --platform ios
npx @react-native-community/cli codegen --platform ios
```

- Read `package.json` from `third-party/some-library`, generate Android code in `third-party/some-library/android/generated`.

```shell
npx @react-native-codegen/cli codegen \
npx @react-native-community/cli codegen \
--path third-party/some-library \
--platform android \
--outputPath third-party/some-library/android/generated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ Options:
- Read `package.json` from the current working directory, generate code based on its codegenConfig.

```shell
npx @react-native-codegen/cli codegen
npx @react-native-community/cli codegen
```

- Read `package.json` from the current working directory, generate iOS code in the location defined in the codegenConfig.

```shell
npx @react-native-codegen/cli codegen --platform ios
npx @react-native-community/cli codegen --platform ios
```

- Read `package.json` from `third-party/some-library`, generate Android code in `third-party/some-library/android/generated`.

```shell
npx @react-native-codegen/cli codegen \
npx @react-native-community/cli codegen \
--path third-party/some-library \
--platform android \
--outputPath third-party/some-library/android/generated
Expand Down

0 comments on commit d3834f7

Please sign in to comment.