mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Reorganise shared script utils (#52473)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52473 Shared utils that were located in the root of `scripts/` are now colocated closer to their dependencies or moved to `scripts/shared/` — simplifying the root directory layout. Changelog: [Internal] Reviewed By: robhogan Differential Revision: D77873875 fbshipit-source-id: e04dba41a1ef811d32793931033fdfa93afad0cd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6dfe59e1df
commit
fc5e33b582
@@ -11,8 +11,8 @@
|
||||
|
||||
import type {PluginObj} from '@babel/core';
|
||||
|
||||
const {PACKAGES_DIR, REACT_NATIVE_PACKAGE_DIR} = require('../../consts');
|
||||
const {isGitRepo} = require('../../scm-utils');
|
||||
const {PACKAGES_DIR, REACT_NATIVE_PACKAGE_DIR} = require('../../shared/consts');
|
||||
const isGitRepo = require('../../shared/isGitRepo');
|
||||
const {API_EXTRACTOR_CONFIG_FILE, TYPES_OUTPUT_DIR} = require('../config');
|
||||
const apiSnapshotTemplate = require('./templates/ReactNativeApi.d.ts-template.js');
|
||||
const applyBabelTransformsSeq = require('./utils/applyBabelTransformsSeq');
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
const {PACKAGES_DIR, REPO_ROOT} = require('../../consts');
|
||||
const {PACKAGES_DIR, REPO_ROOT} = require('../../shared/consts');
|
||||
const {ENTRY_POINT, IGNORE_PATTERNS, TYPES_OUTPUT_DIR} = require('../config');
|
||||
const getRequireStack = require('./resolution/getRequireStack');
|
||||
const translatedModuleTemplate = require('./templates/translatedModule.d.ts-template');
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
require('../../babel-register').registerForScript();
|
||||
require('../../shared/babelRegister').registerForScript();
|
||||
|
||||
const buildApiSnapshot = require('./buildApiSnapshot');
|
||||
const buildGeneratedTypes = require('./buildGeneratedTypes');
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
const {REPO_ROOT} = require('../../../consts');
|
||||
const {REPO_ROOT} = require('../../../shared/consts');
|
||||
const debug = require('debug')('build-types:resolution');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
const {PACKAGES_DIR} = require('../../../consts');
|
||||
const {getPackages} = require('../../../utils/monorepo');
|
||||
const {PACKAGES_DIR} = require('../../../shared/consts');
|
||||
const {getPackages} = require('../../../shared/monorepoUtils');
|
||||
const {existsSync} = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* @oncall react_native
|
||||
*/
|
||||
|
||||
require('../../babel-register').registerForScript();
|
||||
require('../../shared/babelRegister').registerForScript();
|
||||
|
||||
const {diffApiSnapshot} = require('./diffApiSnapshot');
|
||||
const fs = require('fs');
|
||||
|
||||
Reference in New Issue
Block a user