-
Notifications
You must be signed in to change notification settings - Fork 3.5k
shrinkwrap: no need to read package.json when read shrinkwrap #504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ function readShrinkwrap (child, next) { | |
// Don't read non-root lockfiles | ||
child.isTop && maybeReadFile('package-lock.json', child), | ||
child.isTop && maybeReadFile('package.json', child), | ||
(shrinkwrap, lockfile, pkgJson) => { | ||
(shrinkwrap, lockfile) => { | ||
if (shrinkwrap && lockfile) { | ||
log.warn('read-shrinkwrap', 'Ignoring package-lock.json because there is already an npm-shrinkwrap.json. Please use only one of the two.') | ||
} | ||
|
@@ -31,7 +31,7 @@ function readShrinkwrap (child, next) { | |
} | ||
child.package._shrinkwrap = parsed | ||
} | ||
).then(() => next(), next) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a functional change outside the scope of the intent of this PR. It means that a return value will be passed to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, I would undo this change. |
||
).then(next, next) | ||
} | ||
|
||
function maybeReadFile (name, child) { | ||
|
Uh oh!
There was an error while loading. Please reload this page.