Skip to content

Commit 4fd56d4

Browse files
committed
Run prettier on replace-rncore-version.js
1 parent 8c2618d commit 4fd56d4

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

packages/react-native/scripts/replace-rncore-version.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,21 @@ function replaceRNCoreConfiguration(
7575

7676
try {
7777
console.log('Extracting the tarball to temp dir', tarballURLPath);
78-
const result = spawnSync('tar', ['-xf', tarballURLPath, '-C', tmpExtractDir], {
79-
stdio: 'inherit',
80-
});
78+
const result = spawnSync(
79+
'tar',
80+
['-xf', tarballURLPath, '-C', tmpExtractDir],
81+
{
82+
stdio: 'inherit',
83+
},
84+
);
8185

8286
if (result.status !== 0) {
83-
throw new Error(
84-
`tar extraction failed with exit code ${result.status}`,
85-
);
87+
throw new Error(`tar extraction failed with exit code ${result.status}`);
8688
}
8789

8890
// Verify extraction produced the expected xcframework structure
8991
const xcfwPath = path.join(tmpExtractDir, 'React.xcframework');
90-
const modulemapPath = path.join(
91-
xcfwPath,
92-
'Modules',
93-
'module.modulemap',
94-
);
92+
const modulemapPath = path.join(xcfwPath, 'Modules', 'module.modulemap');
9593
if (!fs.existsSync(modulemapPath)) {
9694
throw new Error(
9795
`Extraction verification failed: ${modulemapPath} not found`,
@@ -119,9 +117,7 @@ function replaceRNCoreConfiguration(
119117
{stdio: 'inherit'},
120118
);
121119
if (cpResult.status !== 0) {
122-
throw new Error(
123-
`cp fallback failed with exit code ${cpResult.status}`,
124-
);
120+
throw new Error(`cp fallback failed with exit code ${cpResult.status}`);
125121
}
126122
}
127123
} finally {

0 commit comments

Comments
 (0)