diff --git a/packages/create-react-native-library/templates/common/$package.json b/packages/create-react-native-library/templates/common/$package.json index ff337d208..9bc61c533 100644 --- a/packages/create-react-native-library/templates/common/$package.json +++ b/packages/create-react-native-library/templates/common/$package.json @@ -180,10 +180,12 @@ { "project": "tsconfig.build.json" } +<% if (project.arch !== 'legacy') { -%> ], - <% if (project.arch !== 'legacy') { -%> "codegen" - <% } -%> +<% } else { -%> + ] +<% } -%> ] <% if (project.arch !== 'legacy') { -%> },