File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/react-native-node-api-modules/src/cli Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments