Expose C++ TurboModule codegen

Summary:
This adjusts the previously unused (but fully working!) `rn_codegen_cxx_modules` rule to be consistent with the other codegen rules and calls it from the `rn_codegen` with the "JSI" suffix to not conflict with the other rules, and to match the convention established by hand-written C++ TurboModules.

Changelog:
Internal

Reviewed By: RSNara

Differential Revision: D34451208

fbshipit-source-id: 4d779b068dfa4f7fd73fd3bca354fffe86d01f73
This commit is contained in:
Scott Kyle
2022-02-28 17:08:03 -08:00
committed by Facebook GitHub Bot
parent 964e816752
commit a0a2958cda
6 changed files with 43 additions and 37 deletions
@@ -183,7 +183,7 @@ module.exports = {
})
.join('\n');
const fileName = 'NativeModules.h';
const fileName = `${libraryName}JSI.h`;
const replacedTemplate = FileTemplate({modules});
return new Map([[fileName, replacedTemplate]]);