mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-05 06:28:47 -04:00
fix: don't pring warning when linked packages have no resolution
This commit is contained in:
@@ -124,7 +124,7 @@ function copyDependencySubTree (
|
||||
if (!shr.packages || !shr.packages[depRalativePath]) {
|
||||
// local dependencies don't need to be resolved in shrinkwrap.yaml
|
||||
// except local tarball dependencies
|
||||
if (depRalativePath.startsWith('file:') && !depRalativePath.endsWith('.tar.gz')) continue
|
||||
if (depRalativePath.startsWith('link:') || depRalativePath.startsWith('file:') && !depRalativePath.endsWith('.tar.gz')) continue
|
||||
|
||||
logger.warn(`Cannot find resolution of ${depRalativePath} in shrinkwrap file`)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user