From f98f06327fa8b7e04c1de6a6e55528feb9277710 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Tue, 19 Mar 2024 17:22:31 -0400 Subject: [PATCH] Also apply content hash for experimental files In #28582 I missed that experimental files have a copy of this build function setting the version strings. --- scripts/rollup/build-all-release-channels.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/rollup/build-all-release-channels.js b/scripts/rollup/build-all-release-channels.js index fed1bb8c460ca..a365faa7e9323 100644 --- a/scripts/rollup/build-all-release-channels.js +++ b/scripts/rollup/build-all-release-channels.js @@ -239,6 +239,18 @@ function processExperimental(buildDir, version) { ); } + [ + buildDir + '/react-native/implementations/', + buildDir + '/facebook-react-native/', + ].forEach(reactNativeBuildDir => { + if (fs.existsSync(reactNativeBuildDir)) { + updatePlaceholderReactVersionInCompiledArtifacts( + reactNativeBuildDir, + ReactVersion + '-' + canaryChannelLabel + '-%FILEHASH%' + ); + } + }); + // Update remaining placeholders with canary channel version updatePlaceholderReactVersionInCompiledArtifacts( buildDir,