Skip to content

Commit

Permalink
Also apply content hash for experimental files (#28590)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kassens authored Mar 19, 2024
1 parent 83409a1 commit 37676ab
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 37676ab

Please sign in to comment.