Skip to content

Commit 67bb783

Browse files
committed
[LOCAL]0.79 fix ci
1 parent 76f3d5c commit 67bb783

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

packages/react-native/scripts/codegen/generate-artifacts-executor.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function findLibrariesFromReactNativeConfig(projectRoot, rnConfig) {
360360
*
361361
* This is needed when selectively disabling libraries in react-native.config.js since codegen should exclude those libraries as well.
362362
*/
363-
function findDisabledLibrariesByPlatform(reactNativeConfig, platform) {
363+
function findDisabledLibrariesByPlatform(reactNativeConfig, platform) {
364364
const dependencies = reactNativeConfig.dependencies ?? {};
365365

366366
return Object.keys(dependencies).filter(
@@ -610,7 +610,7 @@ function findCodegenEnabledLibraries(pkgJson, projectRoot, reactNativeConfig) {
610610
}
611611

612612
function readReactNativeConfig(projectRoot) {
613-
const rnConfigFilePath = path.resolve(projectRoot, 'react-native.config.js');Add commentMore actions
613+
const rnConfigFilePath = path.resolve(projectRoot, 'react-native.config.js');
614614

615615
if (!fs.existsSync(rnConfigFilePath)) {
616616
return {};
@@ -1071,7 +1071,11 @@ function execute(projectRoot, targetPlatform, baseOutputPath, source) {
10711071
buildCodegenIfNeeded();
10721072

10731073
const reactNativeConfig = readReactNativeConfig(projectRoot);
1074-
const codegenEnabledLibraries = findCodegenEnabledLibraries(pkgJson, projectRoot, reactNativeConfig);
1074+
const codegenEnabledLibraries = findCodegenEnabledLibraries(
1075+
pkgJson,
1076+
projectRoot,
1077+
reactNativeConfig,
1078+
);
10751079

10761080
if (codegenEnabledLibraries.length === 0) {
10771081
codegenLog('No codegen-enabled libraries found.', true);
@@ -1082,7 +1086,7 @@ function execute(projectRoot, targetPlatform, baseOutputPath, source) {
10821086
targetPlatform === 'all' ? supportedPlatforms : [targetPlatform];
10831087

10841088
for (const platform of platforms) {
1085-
const disabledLibraries = findDisabledLibrariesByPlatform(Add commentMore actions
1089+
const disabledLibraries = findDisabledLibrariesByPlatform(
10861090
reactNativeConfig,
10871091
platform,
10881092
);

packages/react-native/types/index.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,9 @@
6868
/// <reference path="modules/BatchedBridge.d.ts" />
6969
/// <reference path="modules/Codegen.d.ts" />
7070
/// <reference path="modules/Devtools.d.ts" />
71-
/// <reference path="../src/types/globals.d.ts" />
71+
/// <reference types="../src/types/globals.d.ts" />
7272
/// <reference path="modules/LaunchScreen.d.ts" />
7373

74-
7574
export * from '../Libraries/ActionSheetIOS/ActionSheetIOS';
7675
export * from '../Libraries/Alert/Alert';
7776
export * from '../Libraries/Animated/Animated';

0 commit comments

Comments
 (0)