diff options
author | Michael Perrotte <mike@npmjs.com> | 2019-10-29 13:03:29 -0400 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2019-10-30 16:20:34 -0400 |
commit | efe31e791d0f71cf7d7964f89f249aafca025cde (patch) | |
tree | 1bf722c3921816b6cf548dc8144a587273077d27 /deps/npm/lib/install/inflate-shrinkwrap.js | |
parent | af2a9a45a54eef456829b9e045688b6eeeef4af0 (diff) | |
download | android-node-v8-efe31e791d0f71cf7d7964f89f249aafca025cde.tar.gz android-node-v8-efe31e791d0f71cf7d7964f89f249aafca025cde.tar.bz2 android-node-v8-efe31e791d0f71cf7d7964f89f249aafca025cde.zip |
deps: update npm to 6.12.1
PR-URL: https://github.com/nodejs/node/pull/30164
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'deps/npm/lib/install/inflate-shrinkwrap.js')
-rw-r--r-- | deps/npm/lib/install/inflate-shrinkwrap.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/npm/lib/install/inflate-shrinkwrap.js b/deps/npm/lib/install/inflate-shrinkwrap.js index b0b71ef6b1..1ec4f9ba6d 100644 --- a/deps/npm/lib/install/inflate-shrinkwrap.js +++ b/deps/npm/lib/install/inflate-shrinkwrap.js @@ -141,6 +141,7 @@ function isGit (sw) { } function makeFakeChild (name, topPath, tree, sw, requested) { + const isDirectory = requested.type === 'directory' const from = sw.from || requested.raw const pkg = { name: name, @@ -167,16 +168,16 @@ function makeFakeChild (name, topPath, tree, sw, requested) { } const child = createChild({ package: pkg, - loaded: true, + loaded: isDirectory, parent: tree, children: [], fromShrinkwrap: requested, fakeChild: sw, fromBundle: sw.bundled ? tree.fromBundle || tree : null, path: childPath(tree.path, pkg), - realpath: requested.type === 'directory' ? requested.fetchSpec : childPath(tree.realpath, pkg), + realpath: isDirectory ? requested.fetchSpec : childPath(tree.realpath, pkg), location: (tree.location === '/' ? '' : tree.location + '/') + pkg.name, - isLink: requested.type === 'directory', + isLink: isDirectory, isInLink: tree.isLink || tree.isInLink, swRequires: sw.requires }) |