We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 317a665 commit 24f3880Copy full SHA for 24f3880
1 file changed
packages/react-native/scripts/replace-rncore-version.js
@@ -68,7 +68,9 @@ function replaceRNCoreConfiguration(
68
.readdirSync(finalLocation, {withFileTypes: true})
69
.filter(dirent => dirent.isDirectory());
70
for (const dirent of dirs) {
71
- const dirPath = `${finalLocation}/${dirent.name}`;
+ const direntName =
72
+ typeof dirent.name === 'string' ? dirent.name : dirent.name.toString();
73
+ const dirPath = `${finalLocation}/${direntName}`;
74
console.log('Removing directory', dirPath);
75
fs.rmSync(dirPath, {force: true, recursive: true});
76
}
0 commit comments