Skip to content

Commit

Permalink
Use path.resolve for symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jan 28, 2022
1 parent baf56eb commit 85562f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion products/jbrowse-cli/src/commands/add-assembly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ custom Either a JSON file location or inline JSON that defines a custom
return undefined
}
return symlink(
filePath,
path.resolve(filePath),
path.join(path.dirname(destination), path.basename(filePath)),
)
}),
Expand Down
2 changes: 1 addition & 1 deletion products/jbrowse-cli/src/commands/add-track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default class AddTrack extends JBrowseCommand {
const callbacks = {
copy: (src: string, dest: string) => copyFile(src, dest, COPYFILE_EXCL),
move: (src: string, dest: string) => rename(src, dest),
symlink: (src: string, dest: string) => symlink(src, dest),
symlink: (src: string, dest: string) => symlink(path.resolve(src), dest),
}

await Promise.all(
Expand Down

0 comments on commit 85562f4

Please sign in to comment.