From d0b1ad28a0a6c7e28b3ec58bea4ce5cf5f508efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Gu=CC=88ner?= Date: Fri, 5 Jul 2024 21:12:05 +0300 Subject: [PATCH] fix: JSON is why we cannot have good things --- .../templates/common/$package.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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') { -%> },