From 2e4eb04c4cf8cc08891c9d03f20cd9a5c43bb7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kry=C5=A1tof=20Wold=C5=99ich?= <31292499+krystofwoldrich@users.noreply.github.com> Date: Tue, 4 Oct 2022 13:09:33 +0200 Subject: [PATCH] Fix codegen iOS scripts paths (#3359) --- docs/the-new-architecture/pillars-codegen.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/the-new-architecture/pillars-codegen.md b/docs/the-new-architecture/pillars-codegen.md index 0650926f789..751299adc47 100644 --- a/docs/the-new-architecture/pillars-codegen.md +++ b/docs/the-new-architecture/pillars-codegen.md @@ -46,14 +46,14 @@ The rest of this guide assumes that you have a `Turbo Native Module` and/or a `F ## Running the Codegen -The **Codegen** for iOS relies on some Node scripts that are invoked during the build process. The scripts are located in the `MyApp/node_modules/react_native/scripts/` folder. +The **Codegen** for iOS relies on some Node scripts that are invoked during the build process. The scripts are located in the `MyApp/node_modules/react-native/scripts/` folder. The script that you have to run is the `generate-artifacts.js` script. This searches among all the dependencies of the app, looking for JS files that respects some specific conventions (look at [TurboModules](pillars-turbomodules) and [Fabric Components](pillars-fabric-components) sections for details), and it generates the required code. To invoke the script, you can run this command from the root folder of your app: ```sh -node node_modules/react_native/scripts/generate-artifacts.js \ +node node_modules/react-native/scripts/generate-artifacts.js \ --path SampleApp/ \ --outputPath \ ```