diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-05-17 06:19:17 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-05-26 04:55:24 +0300 |
commit | 7d495b433fe93f1e73e2b38750461b25f0101e9e (patch) | |
tree | 92e5cf2456aeddc4924e40e7a8b907e06a23e952 /lib | |
parent | 98851f0dd0f3ce0fedbc4ab50ab8db2f38b43fc9 (diff) |
shrinkwrap: more changes to package lock fields
Diffstat (limited to 'lib')
-rw-r--r-- | lib/shrinkwrap.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/shrinkwrap.js b/lib/shrinkwrap.js index 52035f7c2..85e0b81db 100644 --- a/lib/shrinkwrap.js +++ b/lib/shrinkwrap.js @@ -223,16 +223,9 @@ function updateLockfileMetadata (pkginfo, pkgJson) { writeMetainfo(newPkg) } function writeMetainfo (pkginfo) { - pkginfo.createdWith = { - installer: `${npm.name}@${npm.version}`, - runtime: `${process.release.name}@${ - process.version.slice(process.version[0] === 'v' ? 1 : 0) - }`, - platform: process.platform, - arch: process.arch - } pkginfo.lockfileVersion = PKGLOCK_VERSION pkginfo.packageIntegrity = pkgJson && pkgSri.hash(pkgJson) + pkginfo.preserveSymlinks = process.env.NODE_PRESERVE_SYMLINKS metainfoWritten = true } return newPkg |