Skip to content

Commit

Permalink
Also apply content hash for experimental files
Browse files Browse the repository at this point in the history
In #28582 I missed that experimental files have a copy of this build function setting the version strings.
  • Loading branch information
kassens committed Mar 19, 2024
1 parent cb076b5 commit f98f063
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/rollup/build-all-release-channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f98f063

Please sign in to comment.