Skip to content

Commit 747ca97

Browse files
committed
[RN][Releases] Fix build codegen
1 parent 9010e69 commit 747ca97

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/release-testing/test-e2e-local.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,16 @@ async function testRNTester(
224224
ciArtifacts /*:Unwrap<ReturnType<typeof setupGHAArtifacts>> */,
225225
onReleaseBranch /*: boolean */,
226226
) {
227+
// Build Codegen as we're on a empty environment and metro needs it.
228+
// This can be removed once we have codegen hooked in the `yarn build` step.
229+
console.info('[Codegen] >>> Building react-native-codegen...');
230+
exec('./packages/react-native-codegen/scripts/oss/build.sh');
231+
227232
// FIXME: make sure that the commands retains colors
228233
// (--ansi) doesn't always work
229234
// see also https://github.com/shelljs/shelljs/issues/86
230235
pushd('packages/rn-tester');
231236

232-
// Build Codegen as we're on a empty environment and metro needs it.
233-
// This can be removed once we have codegen hooked in the `yarn build` step.
234-
exec(
235-
'../../gradlew :packages:react-native:ReactAndroid:buildCodegenCLI --quiet',
236-
);
237-
238237
if (argv.platform === 'ios') {
239238
await testRNTesterIOS(ciArtifacts, onReleaseBranch);
240239
} else {

0 commit comments

Comments
 (0)