Skip to content

Commit cd01ecb

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Rename RNDEP_VERSION to RN_DEP_VERSION (#51537)
Summary: Pull Request resolved: #51537 To adhere more closely to our conventions, this change renames `RNDEP_VERSION` to `RN_DEP_VERSION` ## Changelog: [Internal] - Reviewed By: cortinico Differential Revision: D75223248 fbshipit-source-id: 7ba44d7b358981bfbabe71c9876e3c865bdf9f50
1 parent 66ec4b3 commit cd01ecb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-native/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import PackageDescription
1313
To build React Native, you need to follow these steps:
1414
1. inside the `react-native` root folder, run `yarn install`
1515
2. `cd packages/react-native`
16-
3. `RNDEP_VERSION=nightly HERMES_VERSION=nightly node scripts/prebuild-ios`
16+
3. `RN_DEP_VERSION=nightly HERMES_VERSION=nightly node scripts/prebuild-ios`
1717
4. `open Package.swift`
1818
5. Build in Xcode.
1919

packages/react-native/scripts/ios-prebuild/reactNativeDependencies.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const dependencyLog = createLogger('ReactNativeDependencies');
2020

2121
/**
2222
* Downloads ReactNativeDependencies artifacts from the specified version and build type. If you want to specify a specific
23-
* version of ReactNativeDependencies, use the RNDEP_VERSION environment variable. The path to the artifacts will be inside
23+
* version of ReactNativeDependencies, use the RN_DEP_VERSION environment variable. The path to the artifacts will be inside
2424
* the packages/react-native/third-party folder.
2525
*/
2626
async function prepareReactNativeDependenciesArtifactsAsync(
@@ -39,7 +39,7 @@ async function prepareReactNativeDependenciesArtifactsAsync(
3939
const versionFilePath = path.join(artifactsPath, 'version.txt');
4040

4141
// Resolve the version from the environment variable or use the default version
42-
let resolvedVersion = process.env.RNDEP_VERSION ?? version;
42+
let resolvedVersion = process.env.RN_DEP_VERSION ?? version;
4343

4444
if (resolvedVersion === 'nightly') {
4545
dependencyLog('Using latest nightly tarball');

0 commit comments

Comments
 (0)