From 766fceae551f06873ce3cef61bea5786aa650596 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 5 Mar 2018 10:26:17 +0200 Subject: [PATCH] fix: don't pring warning when linked packages have no resolution --- src/prune.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prune.ts b/src/prune.ts index 7ca6a5fcdf..bb2a916994 100644 --- a/src/prune.ts +++ b/src/prune.ts @@ -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