-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,9 +255,11 @@ class Shrinkwrap { | |
if (val) | ||
meta[key.replace(/^_/, '')] = val | ||
}) | ||
// we only include name if different from the node path name | ||
// we only include name if different from the node path name, and for the | ||
// root to help prevent churn based on the name of the directory the | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nlf
Author
Contributor
|
||
// project is in | ||
const pname = node.packageName | ||
if (pname && pname !== node.name) | ||
if (pname && (node === node.root || pname !== node.name)) | ||
meta.name = pname | ||
|
||
if (node.isTop && node.package.devDependencies) | ||
|
ideally it wouldn't depend on the directory name at all, since that often varies across machines