@@ -31,24 +31,24 @@ export abstract class BaseLinkManager {
3131 if ( options . symlinkKind === SymlinkKind . Directory ) {
3232 // For directories, we use a Windows "junction". On Unix, this produces a regular symlink.
3333 FileSystem . createSymbolicLinkJunction ( {
34- linkPath : options . linkPath ,
35- linkTargetPath : options . linkTargetPath
36- } ) ;
34+ linkTargetPath : options . linkTargetPath ,
35+ linkPath : options . linkPath
36+ } ) ;
3737 } else {
3838 if ( process . platform === 'win32' ) {
3939 // For files, we use a Windows "hard link", because creating a symbolic link requires
4040 // administrator permission.
4141 FileSystem . createHardLink ( {
42- linkPath : options . linkPath ,
43- linkTargetPath : options . linkTargetPath
44- } ) ;
42+ linkTargetPath : options . linkTargetPath ,
43+ linkPath : options . linkPath
44+ } ) ;
4545 } else {
4646 // However hard links seem to cause build failures on Mac, so for all other operating systems
4747 // we use symbolic links for this case.
4848 FileSystem . createSymbolicLinkFile ( {
49- linkPath : options . linkPath ,
50- linkTargetPath : options . linkTargetPath
51- } ) ;
49+ linkTargetPath : options . linkTargetPath ,
50+ linkPath : options . linkPath
51+ } ) ;
5252 }
5353 }
5454 }
@@ -105,8 +105,8 @@ export abstract class BaseLinkManager {
105105 if ( localPackage . children . length === 0 ) {
106106 // If there are no children, then we can symlink the entire folder
107107 BaseLinkManager . _createSymlink ( {
108- linkPath : localPackage . symlinkTargetFolderPath ,
109- linkTargetPath : localPackage . folderPath ,
108+ linkTargetPath : localPackage . symlinkTargetFolderPath ,
109+ linkPath : localPackage . folderPath ,
110110 symlinkKind : SymlinkKind . Directory
111111 } ) ;
112112 } else {
@@ -141,8 +141,8 @@ export abstract class BaseLinkManager {
141141 }
142142
143143 BaseLinkManager . _createSymlink ( {
144- linkPath : linkSource ,
145144 linkTargetPath : linkTarget ,
145+ linkPath : linkSource ,
146146 symlinkKind
147147 } ) ;
148148 }
0 commit comments