Skip to content

Commit

Permalink
fix: use noSave when creating a lockfile entry
Browse files Browse the repository at this point in the history
Related: wclr#68
  • Loading branch information
aleclarson committed Jan 18, 2019
1 parent a7803ca commit 75c56cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 75c56cf

Please sign in to comment.