Skip to content

Commit

Permalink
Fix another snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii committed Jun 6, 2024
1 parent 1e1e5cd commit 883716d
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions scripts/rollup/build-all-release-channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,19 @@ function processStable(buildDir) {
);
}

const rnVersionString =
ReactVersion + '-native-fb-' + sha + '-' + dateString;
if (fs.existsSync(buildDir + '/facebook-react-native')) {
const versionString =
ReactVersion + '-native-fb-' + sha + '-' + dateString;
updatePlaceholderReactVersionInCompiledArtifacts(
buildDir + '/facebook-react-native',
versionString
rnVersionString
);
}

if (fs.existsSync(buildDir + '/react-native')) {
updatePlaceholderReactVersionInCompiledArtifacts(
buildDir + '/react-native/implementations/**.fb.js',
rnVersionString
);
}

Expand Down Expand Up @@ -265,17 +272,24 @@ function processExperimental(buildDir, version) {
fs.writeFileSync(buildDir + '/facebook-www/VERSION_MODERN', versionString);
}

const rnVersionString = ReactVersion + '-native-fb-' + sha + '-' + dateString;
if (fs.existsSync(buildDir + '/facebook-react-native')) {
const versionString = ReactVersion + '-native-fb-' + sha + '-' + dateString;
updatePlaceholderReactVersionInCompiledArtifacts(
buildDir + '/facebook-react-native',
versionString
rnVersionString
);

// Also save a file with the version number
fs.writeFileSync(
buildDir + '/facebook-react-native/VERSION_NATIVE_FB',
versionString
rnVersionString
);
}

if (fs.existsSync(buildDir + '/react-native')) {
updatePlaceholderReactVersionInCompiledArtifacts(
buildDir + '/react-native/implementations/**.fb.js',
rnVersionString
);
}

Expand Down

0 comments on commit 883716d

Please sign in to comment.