Skip to content

Commit

Permalink
Introduce "npx react-native codegen" command
Browse files Browse the repository at this point in the history
Summary:
This diff introduces the `npx react-native codegen` command.
It runs the codegen for the `package.json` file in current working directory.

Changelog: [General][Added] - Introduce "npx react-native codegen" command.

Reviewed By: cipolleschi

Differential Revision: D51495465
  • Loading branch information
dmytrorykun authored and facebook-github-bot committed Dec 13, 2023
1 parent c2e54b6 commit 831742d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/react-native/react-native.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ module.exports = {
bundleCommand,
ramBundleCommand,
startCommand,
{
name: 'codegen',
func: () =>
require('./scripts/codegen/generate-artifacts-executor').execute(
process.cwd(),
),
},
],
platforms: {
ios: {
Expand Down

0 comments on commit 831742d

Please sign in to comment.