diff --git a/packages/create-react-native-library/templates/common/$package.json b/packages/create-react-native-library/templates/common/$package.json index 9bc61c533..2c741a833 100644 --- a/packages/create-react-native-library/templates/common/$package.json +++ b/packages/create-react-native-library/templates/common/$package.json @@ -164,6 +164,9 @@ "source": "src", "output": "lib", "targets": [ +<% if (project.arch !== 'legacy') { -%> + "codegen", +<% } -%> [ "commonjs", { @@ -180,12 +183,7 @@ { "project": "tsconfig.build.json" } -<% if (project.arch !== 'legacy') { -%> - ], - "codegen" -<% } else { -%> ] -<% } -%> ] <% if (project.arch !== 'legacy') { -%> },