mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
6f6aaae73e
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43513 The previous `update_podfile_lock.sh` script would fail as executed from the repo root (could not locate RNTester dir). Delete this and replace with direct calls in `prepare-package-for-release.js`, which will fail script on error. {F1469216632} Changelog: [Internal] Reviewed By: cortinico Differential Revision: D54949214 fbshipit-source-id: 4f032069e803e84f835c279d01332d16787dfafc
55 lines
1.1 KiB
JavaScript
55 lines
1.1 KiB
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict
|
|
* @format
|
|
* @oncall react_native
|
|
*/
|
|
|
|
const path = require('path');
|
|
|
|
/**
|
|
* The absolute path to the repo root.
|
|
*/
|
|
const REPO_ROOT /*: string */ = path.resolve(__dirname, '..');
|
|
|
|
/**
|
|
* The absolute path to the packages directory (note: this directory alone may
|
|
* not match the "workspaces" config in package.json).
|
|
*/
|
|
const PACKAGES_DIR /*: string */ = path.join(REPO_ROOT, 'packages');
|
|
|
|
/**
|
|
* The absolute path to the repo scripts directory.
|
|
*/
|
|
const SCRIPTS_DIR /*: string */ = path.join(REPO_ROOT, 'scripts');
|
|
|
|
/**
|
|
* The absolute path to the react-native package.
|
|
*/
|
|
const REACT_NATIVE_PACKAGE_DIR /*: string */ = path.join(
|
|
REPO_ROOT,
|
|
'packages',
|
|
'react-native',
|
|
);
|
|
|
|
/**
|
|
* The absolute path to the rn-tester package.
|
|
*/
|
|
const RN_TESTER_DIR /*: string */ = path.join(
|
|
REPO_ROOT,
|
|
'packages',
|
|
'rn-tester',
|
|
);
|
|
|
|
module.exports = {
|
|
PACKAGES_DIR,
|
|
REACT_NATIVE_PACKAGE_DIR,
|
|
REPO_ROOT,
|
|
RN_TESTER_DIR,
|
|
SCRIPTS_DIR,
|
|
};
|