Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function symlinkDependencyTo (alias: string, peripheralLocation: string, dest: string) {
const linkPath = path.join(dest, alias)
linkLogger.debug({ target: peripheralLocation, link: linkPath })
return symlinkDir(peripheralLocation, linkPath)
}
export default function symlinkDependency (
dependencyRealLocation: string,
destModulesDir: string,
importAs: string,
) {
const link = path.join(destModulesDir, importAs)
linkLogger.debug({ target: dependencyRealLocation, link })
return symlinkDir(dependencyRealLocation, link)
}