How to use the @pnpm/core-loggers.linkLogger.debug function in @pnpm/core-loggers

To help you get started, we’ve selected a few @pnpm/core-loggers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pnpm / pnpm / packages / supi / src / symlinkDependencyTo.ts View on Github external
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)
}
github pnpm / pnpm / packages / symlink-dependency / src / index.ts View on Github external
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)
}