mirror of
https://github.com/pnpm/pnpm.git
synced 2026-06-28 09:55:39 -04:00
Rename @pnpm/installing.resolve-dependencies to @pnpm/installing.deps-resolver for consistency with the <domain>.<leaf> naming convention.
13 lines
274 B
TypeScript
13 lines
274 B
TypeScript
export function depPathToRef (
|
|
depPath: string,
|
|
opts: {
|
|
alias: string
|
|
realName: string
|
|
}
|
|
): string {
|
|
if (opts.alias === opts.realName && depPath.startsWith(`${opts.realName}@`)) {
|
|
return depPath.substring(opts.realName.length + 1)
|
|
}
|
|
return depPath
|
|
}
|