Skip to content

Commit 6814c4a

Browse files
committed
Link into flat frameworks
1 parent 6f6567f commit 6814c4a

File tree

1 file changed

+5
-5
lines changed
  • packages/react-native-node-api-modules/src/cli

1 file changed

+5
-5
lines changed

packages/react-native-node-api-modules/src/cli/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ program
115115
fs.mkdirSync(outputPath, { recursive: true });
116116
// Create symbolic links for each xcframework found in dependencies
117117
const linkedXcframeworkPaths = Object.entries(dependenciesByName).flatMap(
118-
([name, dependency]) => {
118+
([, dependency]) => {
119119
return dependency.xcframeworkPaths.map((xcframeworkPath) => {
120120
const fromPath = path.join(dependency.path, xcframeworkPath);
121-
const linkedPath = path.join(outputPath, name, xcframeworkPath);
122-
fs.mkdirSync(path.dirname(linkedPath), { recursive: true });
123-
fs.symlinkSync(fromPath, linkedPath, "dir");
124-
return linkedPath;
121+
const toPath = path.join(outputPath, path.basename(xcframeworkPath));
122+
// TODO: Handle collisions
123+
fs.symlinkSync(fromPath, toPath, "dir");
124+
return toPath;
125125
});
126126
}
127127
);

0 commit comments

Comments
 (0)