From fde5d00a98ee19a3075e5a844e9019007ec78d9a Mon Sep 17 00:00:00 2001 From: aleclarson Date: Fri, 18 Jan 2019 16:17:42 -0500 Subject: [PATCH] fix: use noSave when creating a lockfile entry Related: https://github.com/whitecolor/yalc/pull/68 --- src/add.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/add.ts b/src/add.ts index 1033d44..f557058 100644 --- a/src/add.ts +++ b/src/add.ts @@ -217,14 +217,15 @@ export const addPackages = async ( writePackage(workingDir, localPkg) } + const saved = !doPure && !options.noSave addPackageToLockfile( addedInstalls.map(i => ({ name: i!.name, version: i!.version, replaced: i!.replaced, pure: doPure, - file: !options.link && !doPure, - link: options.link && !doPure, + file: saved && !options.link, + link: saved && options.link, signature: i.signature })), { workingDir }